Skip to content

Commit

Permalink
Merge pull request #536 from r-lib/fix/renv-crash
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborcsardi authored Sep 6, 2023
2 parents 3fb0d65 + da71e04 commit f7b0dba
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion R/subprocess.R
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,11 @@ new_remote_session <- function() {
load_private_packages()
callr <- pkg_data$ns$callr
cli <- pkg_data$ns$cli
opts <- callr$r_session_options(stderr = NULL, stdout = NULL)
opts <- callr$r_session_options(
stderr = NULL,
stdout = NULL,
user_profile = if (Sys.getenv("RENV_PROJECT") != "") FALSE else "project"
)
opts$env <- c(
opts$env,
R_PKG_SHOW_PROGRESS = is_verbose(),
Expand Down

0 comments on commit f7b0dba

Please sign in to comment.