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_CACHEis set, return it.Else if
options("Require.cachePkgDir")is character, return it.Else if the option is
TRUE, returncachePkgDir(FALSE).Else if the option is
FALSE, returnNULL.Otherwise, return
cachePkgDir(FALSE).