Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP feat: Allow for packages to be dynamically loaded in app #402

Draft
wants to merge 20 commits into
base: main
Choose a base branch
from

Conversation

schloerke
Copy link
Collaborator

@schloerke schloerke commented Feb 10, 2025

The magic bits of this PR can be found at https://github.com/rstudio/shinytest2/pull/402/files#diff-1e9839b0ee9b578e1094ebabe21a38467f417789f5b3e17fec51556b6706a851R86-R95 where we use {pkgload} to load a local R package similar to how {testthat} will load a local R package when testing.

HOWEVER, the local R package will not be attached. The searchpaths() will be updated to include the local R package when accessed like a normal package. This is to mimic how Shiny will use the package when the app is run regularly. (Whereas when testing a local R package, it is fair to want the entire namespace to be available without a library() call.)

TODO:

  • Test local R package
  • Test golem app
  • Test rhino app

schloerke and others added 4 commits September 24, 2024 13:43
R/app-driver-start.R Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants