Display installed locations of a packageSource:
Display installed locations of a package
pkg_status(pkg, lib = .libPaths())
Name of one or more installed packages to display status for.
One or more library paths to lookup packages status in. By default all libraries are used.
Data frame with data about installations of
It has always has columns:
biocviews: the corresponding field from
DESCRIPTION, it must be present for all Bioconductor packages, other packages typically don't have it.
enhances: the corresponding fields from the
deps: A list or data frames, the dependencies of the package. It has columns:
type(dependency type in lowercase),
package(dependent package, or
version, for last two are for version requirement.
<=, although the only the first one is common in practice.
library: path to the package library containing the package.
NA, except on Windows.
DESCRIPTION, this column is logical.
package: package name.
platform: from the
DESCRIPTION, the current platform if missing from
recommended, or missing.
ref: the corresponding
DESCRIPTION. For packages from a CRAN repository this is
CRAN, some other repositories, e.g. R-universe adds the repository URL here.
rversion: from the
Builtfield. If no such field, then the current R version.
title: package title.
version: package version (as string).
DESCRIPTION, but pak also adds a couple.
In addition, it also has all
config/needs/*entries from the
DESCRIPTIONfiles. (Case insensitive.)
All columns are of type
character, except for
needscompilation, which is logical and
deps, which is a list columns.
If an entry is missing for a package, it is set to
Note that column names are lowercase, even if the corresponding entries are not in
The order of the columns is not deterministic, so don't assume any order.
Additional columns might be present, these are internal for pak and should not be used in user code.
#> # A data frame: 2 × 39 #> library package title version depends repos…¹ license needs…² built #> * <chr> <chr> <chr> <chr> <chr> <chr> <chr> <lgl> <chr> #> 1 /Users/ga… MASS Supp… 7.3-58… R (>= … CRAN GPL-2 … TRUE R 4.… #> 2 /Library/… MASS Supp… 7.3-58… R (>= … CRAN GPL-2 … TRUE R 4.… #> # … with 30 more variables: remotetype <chr>, remotepkgref <chr>, #> # remoteref <chr>, remoterepos <chr>, remotepkgplatform <chr>, #> # remotesha <chr>, imports <chr>, suggests <chr>, linkingto <chr>, #> # remotes <chr>, remotehost <chr>, remoterepo <chr>, #> # remoteusername <chr>, enhances <chr>, biocviews <chr>, #> # remoteurl <chr>, remotesubdir <chr>, priority <chr>, #> # remoteetag <chr>, remotepackaged <chr>, md5sum <chr>, …
Other package functions: