setup {Require} | R Documentation |
Setup a project library, cache, options
Description
setup
and setupOff
are currently deprecated.
These may be re-created in a future version.
In its place, a user can simply put .libPaths(libs, include.site = FALSE)
in their .Rprofile
file, where libs
is the directory where the packages
should be installed and should be a folder with the R version number, e.g.,
derived by using checkLibPaths(libs)
.
Usage
setup(
newLibPaths,
RPackageFolders,
RPackageCache = cacheGetOptionCachePkgDir(),
standAlone = getOption("Require.standAlone", TRUE),
verbose = getOption("Require.verbose")
)
setupOff(removePackages = FALSE, verbose = getOption("Require.verbose"))
Arguments
newLibPaths |
Same as |
RPackageFolders |
One or more folders where R packages are installed to and loaded from. In the case of more than one folder provided, installation will only happen in the first one. |
RPackageCache |
See |
standAlone |
Logical. If |
verbose |
Numeric or logical indicating how verbose should the function
be. If -1 or -2, then as little verbosity as possible. If 0 or FALSE,
then minimal outputs; if |
removePackages |
Deprecated. Please remove packages manually from the .libPaths() |