rstudio / rsconnect

Publish Shiny Applications, RMarkdown Documents, Jupyter Notebooks, Plumber APIs, and more
http://rstudio.github.io/rsconnect/
131 stars 80 forks source link

rsconnect.packrat does not apply to push-button deployment #935

Closed aronatkins closed 1 year ago

aronatkins commented 1 year ago

From a project that does not use renv (a very simple Shiny application will suffice):

options(rsconnect.packrat = TRUE)

Deploy the project using push-button deployment. The "Deploy" pane will show:

ℹ Capturing R dependencies with renv

Deploying the same project using the console:

reconnect::deployApp()

we see the output:

ℹ Capturing R dependencies with packrat

It appears that not all R options make their way to the deploy R session.

aronatkins commented 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?

kevinushey commented 1 year ago

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

tyner commented 5 months ago

Note: ?rsconnect::appDependencies metions options(rsconnect.packrat = TRUE) but there is no mention of the environment variable approach.