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

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

[复制链接]
发表于 2012-2-16 17:35:07 | 显示全部楼层 |阅读模式
getDepList(tools)
getDepList()所属R语言包:tools

                                        Functions to Retrieve Dependency Information
                                         依赖信息检索功能

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

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

Given a dependency matrix, will create a DependsList object for that package which will include the dependencies for that matrix, which ones are installed, which unresolved dependencies were found online, which unresolved dependencies were not found online, and any R dependencies.
由于依赖关系矩阵,将创建一个DependsList为对象,包,其中将包括该矩阵,哪些是安装,未解决的依赖,在网上找到,未解决的依赖,没有在网上找到的,和任何R依赖的依赖 。


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


getDepList(depMtrx, instPkgs, recursive = TRUE, local = TRUE,
           reduce = TRUE, lib.loc = NULL)

pkgDepends(pkg, recursive = TRUE, local = TRUE, reduce = TRUE,
           lib.loc = NULL)



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

参数:depMtrx
A dependency matrix as from package.dependencies
一个依赖从package.dependencies矩阵


参数:pkg
The name of the package
包的名称


参数:instPkgs
A matrix specifying all packages installed on the local system, as from installed.packages
A矩阵,指定安装在本地系统上的所有软件包,从installed.packages


参数:recursive
Whether or not to include indirect dependencies
是否包括间接依赖


参数:local
Whether or not to search only locally
是否只能在本地搜索


参数:reduce
Whether or not to collapse all sets of dependencies to a minimal value
是否折叠所有依赖极小值


参数:lib.loc
What libraries to use when looking for installed packages.  NULL indicates all library directories in the user's .libPaths().
安装的软件包时,使用什么库。 NULL表示所有用户的.libPaths()库目录。


Details

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

The function pkgDepends is a convenience function which wraps getDepList and takes as input a package name.  It will then query installed.packages and also generate a dependency matrix, calling getDepList with this information and returning the result.
功能pkgDepends包装getDepList“作为输入需要包的名称是一个方便的功能。然后,它会查询installed.packages“也产生了依赖矩阵,调用getDepList此信息,并返回结果。

These functions will retrieve information about the dependencies of the matrix, resulting in a DependsList object.  This is a list with four elements:
这些功能将检索有关矩阵依赖的信息,在DependsList对象。这是一个有四个元素的列表:




Depends A vector of the dependencies for this package.
在很大程度上取决于这个软件包的依赖关系的向量。




Installed A vector of the dependencies which have been
安装了一个已经依赖的向量




Found A list representing the dependencies which are not in Installed but were found online.  This list has element names which are the URLs for the repositories in which packages were found and the elements themselves are vectors of package names which were found in the respective repositories.  If
找到了一个名单,代表的依赖,这是不是在Installed但在网上找到了。此列表的元素名称是包在被发现的元素本身是包名在各自的仓库中发现的向量库的URL。如果




R Any R version dependencies.
ř任何R版本依赖性。

If recursive is TRUE, any package that is specified as a dependency will in turn have its dependencies included (and so on), these are known as indirect dependencies.  If recursive is  FALSE, only the dependencies directly stated by the package will  be used.
如果recursive是TRUE,任何被指定为一个依赖包会反过来有它的依赖(等),这些被称为间接依赖。如果recursive是FALSE,只有直接包中所述的依赖将可以使用。

If local is TRUE, the system will only look at the user's local install and not online to find unresolved dependencies.
如果local是TRUE,系统只会看用户的本地安装,而不是网上找到未解决的依赖。

If reduce is TRUE, the system will collapse the fields in the DependsList object such that a minimal set of dependencies are specified (for instance if there was foo, foo (>= 1.0.0), foo (>= 1.3.0), it would only return foo (>= 1.3.0)).
如果reduce是TRUE,系统就会崩溃在DependsList对象领域的依赖最少的一组被指定(例如,如果有foo, foo (>= 1.0.0), foo (>= 1.3.0),它将只返回foo (>= 1.3.0))。


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

An object of class "DependsList".
对象类"DependsList"。


作者(S)----------Author(s)----------


Jeff Gentry



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

installFoundDepends
installFoundDepends


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


pkgDepends("tools", local = FALSE)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-1-23 01:04 , Processed in 0.021102 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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