R.home(component = "home")"home" which gives the R home
directory, other known values are "bin", "doc",
"etc", "include", "modules" and "share"
giving the paths to the corresponding parts of an R installation. The value for "modules" and on Windows "bin" is a
sub-architecture-specific location.
On a Unix-alike, the constructed paths are based on the current
values of the environment variables
On Windows the values of R.home() and
The Rhome directory is often referred to as R_HOME,
and is the value of an environment variable of that name in an Rsession.
It can be found outside an Rsession by R RHOME.