| cacheGetOptionCachePkgDir | R Documentation |
Require.cachePkgDir (deprecated)Deprecated. Use cachePkgDir() instead – it is now the single
getter for the package-tarball cache and wraps
pak::cache_summary()$cachepath under usePak = TRUE (the default).
This function is kept for one release cycle as a functional shim. It
still resolves a user-supplied path from options("Require.cachePkgDir")
or the R_REQUIRE_PKG_CACHE environment variable when set, but those
two knobs are themselves deprecated and ignored under usePak = TRUE.
To redirect pak's package cache to a shared location, set
R_USER_CACHE_DIR in .Renviron (pak's standard env var). See
cacheDir() for the full migration table.
Resolution order (legacy path):
If R_REQUIRE_PKG_CACHE is set, return it.
Else if options("Require.cachePkgDir") is character, return it.
Else if the option is TRUE, return cachePkgDir(FALSE).
Else if the option is FALSE, return NULL.
Otherwise, return cachePkgDir(FALSE).
cacheGetOptionCachePkgDir()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.