Closed nteetor closed 10 months ago
As a workaround, you can add a line like library(devtools)
to a file called _dependencies.R
in the project. (You may need to include it in .Rbuildignore
to make sure it doesn't get built with the package.)
True, thank you for pointing that out. I'd resigned myself to always using renv::settings$snapshot.type("all")
.
I think the workaround above is sufficient for this particular issue, so I'm going to close -- please let me know if you're still having trouble.
Within a package development environment, {renv} does not typically snapshot a package like {devtools}. Unfortunately, this seems to break RStudio's
devtools::load_all()
keyboard shortcut (i.e. nothing happens). I was able to fix the problem with the following steps,renv::settings$snapshot.type("all")
renv::snapshot()
A month or so ago I opened a related issue under the rstudio/rstudio repo, https://github.com/rstudio/rstudio/issues/13727.