Learn R Programming

SweaveListingUtils (version 0.7.7)

readPkgVersion: readPkgVersion

Description

reads the package version out of the DESCRIPTION file

Usage

readPkgVersion(package, lib.loc = NULL)

Arguments

package
character; name of the package
lib.loc
location of a local library in which the described package resides

Value

package version as character if existing else ""

Examples

Run this code
readPkgVersion(package = "distr")

Run the code above in your browser using DataLab