找回密码
 注册
查看: 2434|回复: 0

R语言:libPaths()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-2-16 20:40:44 | 显示全部楼层 |阅读模式
libPaths(base)
libPaths()所属R语言包:base

                                        Search Paths for Packages
                                         软件包的搜索路径

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

.libPaths gets/sets the library trees within which packages are looked for.
.libPaths获取/设置库,包内寻找树木。


用法----------Usage----------


.libPaths(new)

.Library
.Library.site



参数----------Arguments----------

参数:new
a character vector with the locations of R library trees.  Tilde expansion (path.expand) is done, and if any element contains one of *?[, globbing is done where supported by the platform: see Sys.glob.
R库树的位置与特征向量。 (path.expand)波浪线扩建完成,如果任何元素包含一个*?[,做平台支持通配符:看到Sys.glob。


Details

详情----------Details----------

.Library is a character string giving the location of the default library, the "library" subdirectory of R_HOME.
.Library是一个字符串,默认库的位置,library子目录R_HOME中。

.Library.site is a (possibly empty) character vector giving the locations of the site libraries, by default the "site-library" subdirectory of R_HOME (which may not exist).
.Library.site(可能为空)的特征向量,由默认的站点库的位置,site-libraryR_HOME(可能不存在)的子目录。

.libPaths is used for getting or setting the library trees that R knows about (and hence uses when looking for packages).  If called with argument new, the library search path is set to the existing directories in unique(c(new, .Library.site, .Library)) and this is returned.  If given no argument, a character vector with the currently active library trees is returned.
.libPaths用于获取或设置库树的R知道(并因此寻找包时使用)。如果参数new称为,unique(c(new, .Library.site, .Library)),这是返回的现有目录库搜索路径设置。如果没有参数,与目前活跃的库树的特征向量,则返回。

The library search path is initialized at startup from the environment variable R_LIBS (which should be a semicolon-separated list of directories at which R library trees are rooted) followed by those in environment variable R_LIBS_USER.  Only directories which exist at the time will be included.
库搜索路径是在启动时从环境变量初始化R_LIBS(这应该是一个分号分隔的列表)R库树扎根在目录环境变量R_LIBS_USER。这在当时只存在目录将包括在内。

By default R_LIBS is unset, and R_LIBS_USER is set to subdirectory "R/win-library/<VAR>x.y</VAR>" of the home directory, for R <VAR>x.y.z</VAR>.
由默认的R_LIBS设置,R_LIBS_USER设置为子目录R/win-library/<VAR>x.y</VAR>主目录,为R <VAR> XYZ </ VAR的。

.Library.site can be set via the environment variable R_LIBS_SITE (as a semicolon-separated list of library trees).
.Library.site可以通过设置环境变量R_LIBS_SITE(作为图书馆树分号分隔的列表)。

Both R_LIBS_USER and R_LIBS_SITE feature possible expansion of specifiers for R version specific information as part of the startup process.  The possible conversion specifiers all start with a % and are followed by a single letter (use %% to obtain %), with currently available conversion specifications as follows:
既R_LIBS_USER和R_LIBS_SITE具有规范可能扩大R版本的具体信息作为启动过程的一部分。所有可能转换说明开始1 %和一个字母(使用%%获得%),与目前可用的转换规格如下:




%V R version number including the patchlevel (e.g.,
%VR版本号包括PATCHLEVEL(例如,




%v R version number excluding the patchlevel (e.g.,
%vR版本的PATCHLEVEL除外(例如,




%p the platform for which R was built, the value of
%p其中R是搭建平台,价值




%o the underlying operating system, the value of
%o底层的操作系统,价值




%a the architecture (CPU) R was built on/for, the
%a架构(CPU)/ R的建,

(See version for details on R version information.)
(见version R版本信息的详细信息。)

Function .libPaths always uses the values of .Library and .Library.site in the base namespace.  .Library.site can be set by the site in "Rprofile.site", which should be followed by a call to .libPaths(.libPaths()) to make use of the updated value.
功能.libPaths总是使用.Library和.Library.site基地命名空间的值。 .Library.site可以设置的网站,该网站应调用Rprofile.site使用更新后的值由.libPaths(.libPaths())。

For consistency, the paths are always normalized by normalizePath(winslash="/").
为了保持一致性,路径总是normalizePath(winslash="/")正常化。


值----------Value----------

A character vector of file paths.
文件路径的一个特征向量。


参考文献----------References----------

The New S Language. Wadsworth &amp; Brooks/Cole.

参见----------See Also----------

library
library


举例----------Examples----------


.libPaths()                 # all library trees R knows about[&#345;知道所有的库树]

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-2-3 11:17 , Processed in 0.029054 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表