packageInfo: Extract Package Info

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Extracts package names and versions from the sessionInfo object.

Usage

1

Arguments

sessionInfo

sessionInfo object from a call to sessionInfo or sessionSummary

Details

This method is intended to be used to get a listing of optional packages that are loaded in the current session. Packages listed in the "otherPackages" component are optional packages that were attached to the search path using a call to library. Packges listed in the "loadedOnly" component were imported into the namespace of one of the "otherPackages", but are not attached to the search path.

Value

A list containing the following elements:

loadedOnly

packages loaded via a namespace

otherPackages

packages attached by a call to library

Each element of the list contains a named list where the name is the package name and the value is the package version.

Author(s)

Matthew D. Furia matt.furia@sagebase.org

https://github.com/MattNapsAlot

See Also

sessionInfo, sessionSummary

Examples

1
2
3
4
5
info <- sessionInfo()
pkg.info <- packageInfo(info)

info <- sessionSummary()
pkg.info <- packageInfo(info)

Sage-Bionetworks/sessionTools documentation built on May 9, 2019, 12:13 p.m.