Find Names of R System Files

Usage

system.file(file = "", pkg = .packages(), lib = .lib.loc)

Arguments

file a character string, specifying subdirectory and file(s). The default, "" returns the root of the base package.
pkg a character vector with package names.
lib a character vector with path names of R{} package libraries, see .lib.loc for the default.

Description

system.file returns a character vector of positive length, containing the file names that matched file, or the empty string, "", if none matched.

Examples

system.file("")            # The root of the `base' package
system.file("INDEX")
system.file("demo/*")      # nothing
system.file("help/AnIndex", pkg = c("stepfun", "mva"))
system.file("data/w*")


[Package Contents]