package.contents {utils} | R Documentation |
Parses and returns the ‘CONTENTS’ file of a package.
package.contents(pkg, lib.loc = NULL)
pkg |
a character string with the package name. |
lib.loc |
a character vector of directory names of R libraries,
or NULL . The default value of NULL corresponds to all
libraries currently known. If the default is used, the loaded
packages are searched before the libraries. |
package.contents
returns NA
if there is no
‘CONTENTS’ file for the given package; otherwise, a character
matrix with column names c("Entry", "Keywords", "Description")
and rows giving the corresponding entries in the CONTENTS data base
for each Rd file in the package.
package.contents("splines") package.contents("splines")[, c("Entry", "Description")]