Learn R Programming

reproducible (version 1.1.1)

installedVersions: Determine versions all installed packages

Description

This code is adapted from installed.versions. It will be anywhere from 2x to 10x faster than the installed.versions function. This is also many times faster than utils::installed.packages, especially if only a subset of "all" packages in libPath are desired (1000x ? for the 1 package case).

Usage

installedVersions(packages, libPath)

Arguments

packages

Character vector of packages to determine which version is installed in the libPath.

libPath

The library path where all packages should be installed, and looked for to load (i.e., call library)

Examples

Run this code
# NOT RUN {
installedVersions("reproducible", .libPaths()[1])

# }

Run the code above in your browser using DataLab