Open achubaty opened 1 year ago
This works now, as expected (with updated function names that start with cache...
> getOption("Require.RPackageCache")
NULL
> cachePkgDir(FALSE)
/home/emcintir/.cache/R/Require/packages/4.3
"/home/emcintir/.cache/R/Require/packages/4.3"
> cacheGetOptionCachePkgDir()
/home/emcintir/.cache/R/Require/packages/4.3
"/home/emcintir/.cache/R/Require/packages/4.3"
Not working with Require 1.0.1
# ~/.Renviron
R_REQUIRE_PKG_CACHE=/mnt/shared_cache/Require/packages
> Require::cacheGetOptionCachePkgDir()
[1] "/mnt/shared_cache/Require/packages"
Setting env var
R_REQUIRE_PKG_CACHE=/mnt/shared_cache/Require/packages
does not properly create the directory structure of the default package cache directory. Specifically, I would expect that the R version (4.3 here) would be automatically appended to the path, rather than relying on the user to actively maintain and update their~/.Renviron
file to manually specify the R version (which also prevents multiple versions of R being used on the same machine).