Skip to content

Commit ae6ba35

Browse files
committed
Use callr::r_safe(env =)
1 parent f880223 commit ae6ba35

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

R/build-readme.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,11 @@ build_qmd_readme <- function(readme_path, path = ".", quiet = TRUE) {
149149
lib_paths <- paste(.libPaths(), collapse = .Platform$path.sep)
150150

151151
callr::r_safe(
152-
function(input, quiet, lib_paths) {
153-
withr::local_envvar(R_LIBS_USER = lib_paths)
152+
function(input, quiet) {
154153
quarto::quarto_render(input = input, quiet = quiet)
155154
},
156-
args = list(input = readme_path, quiet = quiet, lib_paths = lib_paths),
155+
args = list(input = readme_path, quiet = quiet),
156+
env = c(callr::rcmd_safe_env(), R_LIBS_USER = lib_paths),
157157
show = TRUE,
158158
spinner = FALSE,
159159
stderr = "2>&1"

0 commit comments

Comments
 (0)