Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rsconnect.packrat does not bypass renv.lock use #936

Closed
aronatkins opened this issue Jul 26, 2023 · 0 comments · Fixed by #937
Closed

rsconnect.packrat does not bypass renv.lock use #936

aronatkins opened this issue Jul 26, 2023 · 0 comments · Fixed by #937
Assignees

Comments

@aronatkins
Copy link
Contributor

When deploying from an renv project, the rsconnect.packrat option does not bypass use of the renv.lock.

options(rsconnect.packrat = TRUE)
rsconnect::deployApp()
#> ...
#> ℹ Capturing R dependencies from renv.lock

The rsconnect.packrat option is used as a feature-switch only when the deployment does not include an renv.lock.

@aronatkins aronatkins assigned hadley and aronatkins and unassigned hadley Jul 26, 2023
aronatkins added a commit that referenced this issue Jul 27, 2023
Environment variables are visible in the RStudio IDE R session used for
push-button deployment. Not all R options are mirrored into that session.

Fixes #935
Fixes #936
aronatkins added a commit that referenced this issue Jul 27, 2023
Environment variables are visible in the RStudio IDE R session used for
push-button deployment. Not all R options are mirrored into that session.

These settings indicate that packrat should be used, even in the presence
of an renv.lock. When using packrat, the renv directory and renv.lock file
are removed from the bundle directory, as would happen prior to rsconnect 1.0.0.

Fixes #935
Fixes #936
aronatkins added a commit that referenced this issue Jul 28, 2023
* prefer RSCONNECT_PACKRAT over rsconnect.packrat

Environment variables are visible in the RStudio IDE R session used for
push-button deployment. Not all R options are mirrored into that session.

These settings indicate that packrat should be used, even in the presence
of an renv.lock. When using packrat, the renv directory and renv.lock file
are removed from the bundle directory, as would happen prior to rsconnect 1.0.0.

Fixes #935
Fixes #936

* spelling

* trailing whitespace lint

* feedback
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 a pull request may close this issue.

2 participants