-
Notifications
You must be signed in to change notification settings - Fork 154
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
Optionally install packages during snapshot()
#1370
Conversation
R/snapshot.R
Outdated
@@ -971,6 +971,9 @@ renv_snapshot_filter_impl <- function(project, records, packages, type) { | |||
} | |||
|
|||
renv_snapshot_filter_report_missing <- function(missing, type) { | |||
if (!interactive() || !renv_verbose()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This logic is wrong — still need to show the message even if not interactive.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM; I can't think of a better solution other than finding a way to pull out renv_snapshot_filter_report_missing
but that seems tough to untangle.
#Conflicts: # NEWS.md # tests/testthat/_snaps/snapshot.md # tests/testthat/test-snapshot.R
#Conflicts: # NEWS.md # R/utils.R
#Conflicts: # tests/testthat/helper-snapshot.R
@kevinushey would you mind taking a look in your windows VM to figure out what's wrong with https://github.com/rstudio/renv/actions/runs/5164075054/jobs/9302761838?pr=1370#step:6:225? |
Looks like it might be due to path separators?
Maybe renv/tests/testthat/helper-snapshot.R Line 13 in 055735d
getwd() before checking?
|
I have tried like 7 different ways of normalizing the path, but it's totally possible I screwed it up every time 😄 |
I'm relieved that this wasn't simple 😆 |
Fixes #1198