Skip to content

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
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.

3 participants