lib.is_basepackage: Check if a package belongs to the standard R (base) packages.

View source: R/package_version_management.R

lib.is_basepackageR Documentation

Check if a package belongs to the standard R (base) packages.

Description

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")).

Usage

lib.is_basepackage(packageName)

Arguments

packageName

The package name to check.

Value

Returns logical indicating if the provided package name is a base package or not.


multiversion documentation built on March 22, 2022, 1:07 a.m.