PackageSum2 {RSiteSearch} | R Documentation |
Given a data.frame
with a column Packages
, add other
columns from attributes
of packageDescription
.
PackageSum2(x, fields=c("Title", "Version", "Author", "Maintainer", "Packaged"), lib.loc=NULL )
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 .
|
a data.frame with additional fields
columns appended to
x
.
RSiteSearch.function
PackageSummary
tstdf <- data.frame(Package=c('fda', 'base')) PackageSum2(tstdf)