Skip to content

Commit

Permalink
No .Rprofile if in renv
Browse files Browse the repository at this point in the history
Fixes rstudio/renv#1628
Fixes #325.
  • Loading branch information
gaborcsardi committed Sep 6, 2023
1 parent 3fb0d65 commit da71e04
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 da71e04

Please sign in to comment.