r_home

0th

Percentile

The R home directory

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.

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

Aliases
  • r_home
Examples
r_home()
r_home("etc", "Rprofile.site")
r_home(c("home", "bin", "share"), c("", "i386", "zoneinfo"))
Documentation reproduced from package pathological, version 0.1-1, License: Unlimited

Community examples

Looks like there are no examples yet.