buildRepDepGraph(graph)
buildRepDepGraph()所属R语言包:graph
Functionality to manage repository dependency graphs
功能来管理库的依赖关系图
译者:生物统计家园网 机器人LoveR
描述----------Description----------
These functions can be used to represent and manipulate dependency graphs for a specified package repository.
这些功能可以用来表示和操作指定的包库的依赖关系图。
用法----------Usage----------
buildRepDepGraph(repository, depLevel = c("Depends", "Suggests"))
pkgInstOrder(pkg, repGraph)
参数----------Arguments----------
参数:repository
A URL to a CRAN style repository
CRAN风格库的URL
参数:depLevel
One of Depends or Suggests, detailing the level of dependencies to search. The Suggests value includes everything in Depends.
Depends或Suggests详细搜索的依赖程度,之一。 Suggests值包括一切Depends。
参数:pkg
The package to get the installation order for
包的安装顺序
参数:repGraph
A graph object representing a repository, as from buildRepDepGraph
一个graph对象代表一个仓库,从buildRepDepGraph
值----------Value----------
For buildRepDepGraph, a graph representing the dependency structure of the specified repository, where an edge from node A to node B represents a dependency on B by A.
buildRepDepGraph,代表指定仓库的依赖结构图,从节点的边缘A节点B上BA依赖 。
For pkgInstOrder, a vector is returned, listing the appropriate order one would take to install all of the necessary packages to install the specified package. That is, it makes sure that at every step, any package being installed does not depend on one that has not yet been installed. This order can then be used with functions such as install.packages.
pkgInstOrder,返回向量,列出将采取适当的顺序安装所有必要的软件包,安装指定的包。也就是说,它可以确保正在安装任何包,每一步,不取决于尚未安装。这条命令,然后可以用功能,如install.packages。
作者(S)----------Author(s)----------
Jeff Gentry
举例----------Examples----------
if("FIXME"=="Jeff, we can't assume that we're always online - wh") {
repos <- getOption("repositories")["BIOC"] ## Get BIOC repos[#获取BIOC回购。]
buildRepDepGraph(repos)
}
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|