Closed boshek closed 1 year ago
Unfortunately, you will need to add library
statements to your tester.qmd
file in order for the dependencies to be detected. For your example, you will need:
library(datasets)
library(ggplot2)
I'm including both packages here because the target config is assigned on the server, not on the client.
We originally filed this as a packrat
issue (https://github.com/rstudio/packrat/issues/510), but this type of discovery also looks to be missing in renv
.
CC @kevinushey - should renv
look into config.yml
files when the config
package is in use?
I've created https://github.com/rstudio/renv/issues/1140 for renv
tracking and discussion; if we do add this capability to renv
, we will subsequently need to update packrat
to use that new version.
Thanks! I am using that workaround to explicitly load packages. I just know that that added manual steps will frequently be forgotten ;).
And oops yes {datasets} wasn't really a good default example here. Thanks for seeing what I meant.
Closed as we're tracking in renv.
:wave: thanks for such a helpful utility for working with Connect.
I've been starting to use the {config} package more lately to manage different behaviour between Connect and locally. So if we have an example config file like this:
config.yml
I can call a quarto doc (using both states for illustration)"
tester.qmd
Is there anyway add that dependency to the manifest or am I just overloading the
config.yml
?