pathological (version 0.1-1)

r_home: The R home directory

Description

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

Usage

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.

See Also

R.home

Examples

Run this code
r_home()
r_home("etc", "Rprofile.site")
r_home(c("home", "bin", "share"), c("", "i386", "zoneinfo"))

Run the code above in your browser using DataLab