Usage
package.dir(package='base', lib.loc=NULL,
exclude=c('chtml', 'data', 'help', 'html', 'latex', 'libs',
'man', 'Meta', 'po', 'R', 'R-ex', 'src'),
include=NULL, pattern=NULL, recursive=FALSE)Arguments
package
character string naming a locally installed package. If 'package'
is not locally installed, it is an error.
lib.loc
a character vector with path 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.
exclude
either NULL or a character vector naming subdirectories of 'package'
to exclude from the list. If 'include' is not NULL, 'exclude' is
ignored.
include
either NULL or a character vector naming subdirectories of 'package'
to exclude from the list. If 'include' is not NULL, 'exclude is
ignored.
pattern
an optional regular expression passed with the results of
system.file to dir. Only file names which match the
regular expression will be returned. This is ignored if 'recu recursive
logical. Should the listing recurse into subdirectories?