find.package(base)
find.package()所属R语言包:base
Find Packages
找到软件包
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Find the paths to one or more packages.
寻找到一个或多个包的路径。
用法----------Usage----------
find.package(package, lib.loc = NULL, quiet = FALSE,
verbose = getOption("verbose"))
path.package(package, quiet = FALSE)
参数----------Arguments----------
参数:package
character vector: the names of packages.
特征向量:包的名称。
参数:lib.loc
a character vector describing the location of R library trees to search through, or NULL. The default value of NULL corresponds to checking the attached packages, then all libraries currently known in .libPaths().
字符向量描述R库树的位置,通过搜索,或NULL。默认值NULL对应检查的附加软件包,然后在目前已知的所有库.libPaths()。
参数:quiet
logical. Should this not give warnings or an error if the package is not found?
逻辑。这不应该给予警告或错误,如果没有找到包吗?
参数:verbose
a logical. If TRUE, additional diagnostics are printed.
一个逻辑。如果TRUE,印有额外的诊断。
Details
详情----------Details----------
find.package returns path to the locations where the given packages are found. If lib.loc is NULL, then attached packages are searched before the libraries. If a package is found more than once, the first match is used. Unless quiet = TRUE a warning will be given about the named packages which are not found, and an error if none are. If verbose is true, warnings about packages found more than once are given. For a package to be returned it must contain a either a "Meta" subdirectory or a "DESCRIPTION" file containing a valid version field, but it need not be installed.
find.package返回路径在给定的包被发现的地点。 lib.loc如果是NULL,然后连接的包库前搜索。如果一个包被发现一次以上,第一场比赛。除非quiet = TRUE警告将被命名的包都没有发现,如果没有错误。 verbose如果是真实的,关于包的警告发现不止一次给出。对于要返回的包,它必须包含1无论是Meta子目录或“DESCRIPTION文件,其中包含一个有效的version领域,但它不需要安装。
path.package returns the paths from which the named packages were loaded, or if none were named, for all currently attached packages. Unless quiet = TRUE it will warn if some of the packages named are not attached, and given an error if none are.
path.package返回命名的包被加载,或者如果没有被命名,目前所有附加软件包的路径。除非quiet = TRUE“,它会发出警告如果没有命名的包被重视,并给予一个错误,如果没有。”
值----------Value----------
A character vector of paths of package directories.
包目录路径的一个特征向量。
注意----------Note----------
.find.package and .path.package were internal-only versions prior to R 2.13.0, and are now wrappers for these public versions.
.find.package和.path.package内部版本之前ŕ2.13.0,现在这些公共版本的包装。
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|