diff --git a/com.oracle.truffle.r.test.packages/r/install.packages.R b/com.oracle.truffle.r.test.packages/r/install.packages.R index 3319ca852664959c0152057cdf4734899be5a892..95736d4761ccd59263a8e2513862d071e7fce6e8 100644 --- a/com.oracle.truffle.r.test.packages/r/install.packages.R +++ b/com.oracle.truffle.r.test.packages/r/install.packages.R @@ -810,7 +810,7 @@ system.test <- function(pkgname) { # we want to stop tests that hang, but some packages have many tests # each of which spawns a sub-process (over which we have no control) # so we time out the entire set after 20 minutes. - rc <- system2(rscript, args, env="FASTR_PROCESS_TIMEOUT=20") + rc <- system2(rscript, args, env=c("FASTR_PROCESS_TIMEOUT=20", paste0("R_LIBS_USER=",shQuote(lib.install)),"R_LIBS=")) rc }