pkgInfo-class {reposTools}R Documentation

A class to hold package information

Description

This class contains some succinct information about a package, including its name and version

Objects from the Class

Objects can be created by calls of the form new("pkgInfo", ...). The helper function 'buildPkgInfo' is also provided.

Slots

pkgName:
Object of class "character" A string representing the name of the package
pkgVersion:
Object of class "VersionNumber" A VersionNumber object representing the version number of the package
pkgPath:
Object of class "character" A string reprsenting the path of the installed package
pkgRelLevel:
Object of class "character" A string reprsenting the release level of the installed package
pkgContains:
Object of class "character" If this is a package bundle, a character vector describing any packages contained in the bundle

Methods

pkgName
(pkgInfo): The name of the package
pkgPath
(pkgInfo): The path to the installed copy of the package
pkgVersion
(pkgInfo): The version number of the package
pkgRelLevel
(pkgInfo): The release level of the package.
pkgContains
(pkgInfo): Any packages contained, if this is a bundle
show
(pkgInfo): Displays in the form <pkgName>: <pkgVersion>

Author(s)

Jeff Gentry

See Also

buildPkgInfo

Examples

 a <- buildPkgInfo("Foo","1.2.3")

[Package reposTools version 1.8.0 Index]