View source: R/package_version_management.R
lib.is_basepackage | R Documentation |
To check if the package is a base package, we look it up among all packages
in the .Library
directory (list.dirs(.Library, full.names = FALSE, recursive = FALSE)
).
We cannot version control packages which are located in this library since
the .Library
will always be added to the .libPaths
.
For base packages, this is acceptable, but it appears that this directory
is not always as clean as we would wish. Because of this reason, we do not
check the more widely accepted rownames(installed.packages(priority="base"))
.
lib.is_basepackage(packageName)
packageName |
The package name to check. |
Returns logical indicating if the provided package name is a base package or not.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.