r_home: The R home directory

Description Usage Arguments Value Note See Also Examples

Description

Return a path to a file in the R home directory. A vectorized, standardized version of R.home.

Usage

1
r_home(component = "home", ..., sep = c("/", "\\"))

Arguments

component

"home" for the root of the R installation directory, or the name of a subdirectory.

...

Further subdirectories passed to file.path.

sep

String separator between directory levels in the output.

Value

A character vector of paths inside the R installation dir.

Note

The component argument has special behaviour for the values "home", "bin", "doc", "etc", "include", "modules", and "share". See the help page for R.home.

See Also

R.home

Examples

1
2
3
r_home()
r_home("etc", "Rprofile.site")
r_home(c("home", "bin", "share"), c("", "i386", "zoneinfo"))

pathological documentation built on May 1, 2019, 10:22 p.m.