Menemukan nama file lengkap dari file dalam paket dll.
system.file(…, package = "base", lib.loc = NULL,
mustWork = FALSE)
| Parameter | Deskripsi |
|---|---|
… |
character vectors, specifying subdirectory and file(s) within some package. The default, none, returns the root of the package. Wildcards are not supported. |
package |
a character string with the name of a single package. An error occurs if more than one package name is given. |
lib.loc |
a character vector with path names of R libraries. See ‘Details’ for the meaning of the default value of NULL. |
mustWork |
logical. If TRUE, an error is given if there are no matching files. |
# NOT RUN {
system.file() # The root of the 'base' package
system.file(package = "stats") # The root of package 'stats'
system.file("INDEX")
system.file("help", "AnIndex", package = "splines")
# }