Learn R Programming

bazar (version 1.0.11)

sessionPackages: Shows packages attached to the current R session

Description

The function sessionPackages prints the list of packages attached to the current R session.

Usage

sessionPackages(package = NULL)

Arguments

package

a character vector naming installed packages, or NULL (the default) meaning all attached packages.

Value

A list with the following components:

  • basePkgs: a character vector of base packages which are attached.

  • otherPkgs (not always present): a character vector of other attached packages.

Details

This function reuses part of the code from sessionInfo.

See Also

sessionInfo from package utils, R.version from package base.

Examples

Run this code
# NOT RUN {
sessionPackages()

# }

Run the code above in your browser using DataLab