## Need to ensure this comes late enough ... ## Perhaps even merge it into the common profile? .dynLibs <- local({ ## ## Versions of R prior to 1.4.0 had .Dyn.libs in .AutoloadEnv ## (and did not always ensure getting it from there). ## Until 1.6.0, we consistently used the base environment. ## Now we have a dynamic variable instead. ## .Dyn.libs <- character(0) function(new) { if(!missing(new)) .Dyn.libs <<- new else .Dyn.libs } }) .libPaths <- local({ .lib.loc <- character(0) # Profiles need to set this. function(new) { if(!missing(new)) { paths <- unique(c(new, .Library)) .lib.loc <<- paths[file.exists(paths)] } else .lib.loc } })