R.home {base}R Documentation

Return the R Home Directory

Description

Return the R home directory.

Usage

R.home(component="home")

Arguments

component As well as "home" which gives the R home directory, other known values are "bin", "doc", "etc" and "share" giving the paths to the corresponding parts of an R installation.

Value

A character string giving the current R home directory or path to a particular component. Normally the components are all subdirectories of the R home directory, but this may not be the case in a Unix-like installation.


[Package base version 2.2.1 Index]