R/path_package.R
path_package.Rd
path_package
differs from system.file()
in that it always returns an
error if the package does not exist. It also returns a different error if
the file within the package does not exist.
path_package(package, ...)
package | Name of the package to in which to search |
---|---|
... | Additional paths appended to the package path by |
path_package()
also automatically works with packages loaded with devtools
even if the path_package()
call comes from a different package.
path_package("base")#> /tmp/RtmpBEaVBn/renv-system-library/basepath_package("stats")#> /tmp/RtmpBEaVBn/renv-system-library/statspath_package("base", "INDEX")#> /tmp/RtmpBEaVBn/renv-system-library/base/INDEXpath_package("splines", "help", "AnIndex")#> /tmp/RtmpBEaVBn/renv-system-library/splines/help/AnIndex