Closed aronatkins closed 1 year ago
@kevinushey What's our best option to have a setting from the R console apply in the R deployment session? Is an environment variable more likely to work than an R option? Are only certain options / environment variables propagated?
Environment variables would be the most reliable, since those should be propagated automatically -- AFAIK we don't try to propagate any specific options (except maybe repos).
Note: ?rsconnect::appDependencies
metions options(rsconnect.packrat = TRUE)
but there is no mention of the environment variable approach.
From a project that does not use renv (a very simple Shiny application will suffice):
Deploy the project using push-button deployment. The "Deploy" pane will show:
Deploying the same project using the console:
we see the output:
It appears that not all R options make their way to the deploy R session.