PackageSum2 {RSiteSearch}R Documentation

Add Info from Installed Packages to PackageSummary

Description

Given a data.frame with a column Packages, add other columns from attributes of packageDescription.

Usage

PackageSum2(x,
        fields=c("Title", "Version", "Author", "Maintainer", "Packaged"),
            lib.loc=NULL )

Arguments

x a data.frame with columns Package and Score.
fields character vector of names to look for in components of packageDescription(x$Package[i]) and return as additional columns of x if found.
Component 'Packaged' receives special treatment. If present, only the portion preceding ';' will be retained. This seems to be a time stamp automatically generated by something like R CMD build. It is absent for packages automatically loaded when R is started. In such cases, the third component of strsplit( packageDescription( x$Package[i])$Built, ..., ';') will be stored as 'Packaged'. This seems to be a time stamp automatically generated by something like R CMD INSTALL --build.
lib.loc an optional lib.loc argument passed to packageDescription.

Value

a data.frame with additional fields columns appended to x.

See Also

RSiteSearch.function PackageSummary

Examples

tstdf <- data.frame(Package=c('fda', 'base'))
PackageSum2(tstdf)

[Package RSiteSearch version 1.0-3 Index]