Rhome(base)
Rhome()所属R语言包:base
Return the R Home Directory
返回的R主目录
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Return the R home directory.
返回的R主目录。
用法----------Usage----------
R.home(component="home")
参数----------Arguments----------
参数:component
As well as "home" which gives the R home directory, other known values are "bin", "doc", "etc", "modules" and "share" giving the paths to the corresponding parts of an R installation.
以及"home"赋予的R主目录,其他已知的值是"bin","doc","etc","modules"和"share"给予R安装相应部位的路径。
Details
详情----------Details----------
The R home directory is the top-level directory of the R installation being run.
在R的主目录是正在运行的R安装的顶级目录。
The R home directory is often referred to as <VAR>R_HOME</VAR>, and is the value of an environment variable of that name in an R session.
通常被称为<VAR> R_HOME的R主目录</ VAR的,并且是在R会话的名称的环境变量的值。
值----------Value----------
A character string giving the 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.
一个字符串,给人的R主目录或路径到一个特定的组件。通常情况下,组件的R主目录下的所有子目录,但是,这未必是一个类Unix安装的情况下。
The return value for "modules" and on Windows "bin" is to a sub-architecture-specific location.
"modules"“在Windows"bin"返回值是一个子结构的具体位置。
The function R.home() bases the constructed paths on the current value of the environment variable R_HOME which is normally set on startup.
函数R.home()立足于构建路径R_HOME这通常是在启动时设置的环境变量的当前值。
On Windows the values of R.home() and R_HOME are guaranteed not to contain spaces, switching to the 8.3 short form of path elements if required. From R 2.13.0 the value of R_HOME is set on startup to use forward slashes (since many package maintainers pass it unquoted to shells, for example in Makefiles).
在Windows的值R.home()和R_HOME保证不包含空格,如果需要切换到8.3短路径元素的形式。 2.13.0从R的值R_HOME设置在启动时使用斜线(因为很多软件包维护者传递给它加引号以贝壳,例如,Makefile中)。
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|