makeDepGraph(pkgDepTools)
makeDepGraph()所属R语言包:pkgDepTools
Create a graph representing R package dependencies
创建一个图形代表R包依赖关系
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Given a list of CRAN-style repository URLs, this function creates a graph instance representing dependencies between packages in the repositories.
鉴于CRAN的风格的版本库URL的列表,这个函数创建一个graph实例,表示在仓库包之间的依赖关系。
用法----------Usage----------
makeDepGraph(repList, suggests.only = FALSE, type =
getOption("pkgType"), keep.builtin = FALSE, dosize = TRUE)
参数----------Arguments----------
参数:repList
a character vector of URLs pointing to CRAN-style repositories.
特征向量的URL指向CRAN的风格库。
参数:suggests.only
logical value indicating whether only the "Suggests" field should be used. The default (FALSE) means that DESCRIPTION fields "Depends" and "Imports" are used. Note that "Suggests" is special in that its use is less regulated and the resulting graph is less likely to be a DAG (packages sometimes suggest each other).
逻辑值,指出只有"Suggests"领域是否应该使用。默认(FALSE)意味着DESCRIPTION领域"Depends"和"Imports"用于。注意"Suggests"的特殊之处在于它的使用较少的监管和由此产生的图是不太可能是一个DAG(包有时会建议对方)。
参数:type
a character vector specifying the type of packages to search for in the repositories. Must be one of "source", "win.binary", or "mac.binary".
指定一个字符向量包类型中搜索库。必须之一"source","win.binary"或"mac.binary"。
参数:keep.builtin
logical value indicating whether or not packages that come with a default R installation should be included in the nodes of the dependency graph. The default, FALSE, is to remove these packages from the return result.
应包括逻辑值指示是否包,默认R安装在依赖图的节点。默认情况下,FALSE,是从返回的结果中删除这些软件包。
参数:dosize
logical value. When TRUE, the function will attempt to estimate the download size of each package (requires the RCurl package). The size of each package is added as a node attribute to the graph.
逻辑值。当TRUE,函数将尝试估计每个包的下载大小(需要的RCurl的包)。每个包的大小,增加一条,作为节点的属性图。
值----------Value----------
A graphNEL-class instance. If the dosize argument was set to TRUE, then an estimate of the download size of each package is stored as a node attribute of the graph. A missing value is used when the download size was not able to be determined as well as when the RCurl package is not available.
一个graphNEL-class实例。如果dosize参数设置为TRUE,然后估计每个包的下载大小存储作为图形的节点属性。使用时下载的大小无法确定以及时RCurl包不可缺少的值。
作者(S)----------Author(s)----------
Seth Falcon
举例----------Examples----------
## Not run: [#无法运行:]
deps <- makeDepGraph("http://cran.fhcrc.org", type="source")
## End(Not run)[#结束(不运行)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|