@@ -169,6 +169,16 @@ local({
169169 if (quiet )
170170 return (invisible ())
171171
172+ # also check for config environment variables that should suppress messages
173+ # https://github.com/rstudio/renv/issues/2214
174+ enabled <- Sys.getenv(" RENV_CONFIG_STARTUP_QUIET" , unset = NA )
175+ if (! is.na(enabled ) && tolower(enabled ) %in% c(" true" , " 1" ))
176+ return (invisible ())
177+
178+ enabled <- Sys.getenv(" RENV_CONFIG_SYNCHRONIZED_CHECK" , unset = NA )
179+ if (! is.na(enabled ) && tolower(enabled ) %in% c(" false" , " 0" ))
180+ return (invisible ())
181+
172182 msg <- sprintf(fmt , ... )
173183 cat(msg , file = stdout(), sep = if (appendLF ) " \n " else " " )
174184
@@ -266,22 +276,22 @@ local({
266276 # check for repos override
267277 repos <- Sys.getenv(" RENV_CONFIG_REPOS_OVERRIDE" , unset = NA )
268278 if (! is.na(repos )) {
269-
279+
270280 # split on ';' if present
271281 parts <- strsplit(repos , " ;" , fixed = TRUE )[[1L ]]
272-
282+
273283 # split into named repositories if present
274284 idx <- regexpr(" =" , parts , fixed = TRUE )
275285 keys <- substring(parts , 1L , idx - 1L )
276286 vals <- substring(parts , idx + 1L )
277287 names(vals ) <- keys
278-
288+
279289 # if we have a single unnamed repository, call it CRAN
280290 if (length(vals ) == 1L && identical(keys , " " ))
281291 names(vals ) <- " CRAN"
282-
292+
283293 return (vals )
284-
294+
285295 }
286296
287297 # check for lockfile repositories
@@ -547,6 +557,12 @@ local({
547557
548558 # infer path to renv cache
549559 cache <- Sys.getenv(" RENV_PATHS_CACHE" , unset = " " )
560+ if (! nzchar(cache )) {
561+ root <- Sys.getenv(" RENV_PATHS_ROOT" , unset = NA )
562+ if (! is.na(root ))
563+ cache <- file.path(root , " cache" )
564+ }
565+
550566 if (! nzchar(cache )) {
551567 tools <- asNamespace(" tools" )
552568 if (is.function(tools $ R_user_dir )) {
@@ -1036,7 +1052,7 @@ local({
10361052
10371053 renv_bootstrap_validate_version_release <- function (version , description ) {
10381054 expected <- description [[" Version" ]]
1039- is.character(expected ) && identical(expected , version )
1055+ is.character(expected ) && identical(c( expected ), c( version ) )
10401056 }
10411057
10421058 renv_bootstrap_hash_text <- function (text ) {
0 commit comments