R: Information about the currently loaded packages, or about a...

package_info {sessioninfo} | R Documentation

## Information about the currently loaded packages, or about a chosen set

### Description

Information about the currently loaded packages, or about a chosen set

### Usage

    package_info(pkgs = NULL, include_base = FALSE)

### Arguments

`pkgs` | Either a vector of package names or NULL. If `NULL`, displays all loaded packages. If a character vector, also, includes all dependencies of the package.
`include_base` | Include base packages in summary? By default this is false since base packages should always match the R version.

### Value

A data frame with columns: * 'package': package name. * 'loadedversion': package version. This is the version of the loaded namespace if 'pkgs' is 'NULL', and it is the version of the package on disk otherwise. The two of them are almost always the same, though. * 'ondiskversion': package version (on the disk, which is sometimes not the same as the loaded version). * 'path': path to the package on disk. * 'attached': logical, whether the package is attached to the search path. * 'is_base': logical, whether the package is a base package. * 'date': the date the package was installed or built. * 'source': where the package was installed from. E.g. 'CRAN', 'GitHub', 'local' (from the local machine), etc.

See [session_info()] for the description of the *printed* columns by 'package_info' (as opposed to the *returned* columns).

### Examples

    package_info()
    package_info("sessioninfo")

[Package sessioninfo version 1.0.0 Index]