Learn R Programming

odfWeave (version 0.8.4)

pkgVersions: List packages currently used

Description

Creates a string, matrix or data frame that shows the packages and their versions currently used (i.e in the search path).

Usage

pkgVersions(type = "string", ncol = 4)

Arguments

type
a string designating the type of output object: "string", "matrix" or "data frame"
ncol
integer specification for the number of columns in the output when type = "matrix"

Value

a string, character matrix or a data frame with columns "Package" and "Version"

Examples

Run this code
pkgVersions()
pkgVersions("matrix")
pkgVersions("data frame")

Run the code above in your browser using DataLab