packageStatus(utils)
packageStatus()所属R语言包:utils
Package Management Tools
软件包管理工具
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Summarize information about installed packages and packages available at various repositories, and automatically upgrade outdated packages.
总结安装包和包在不同的仓库信息,并自动升级过时的包。
用法----------Usage----------
packageStatus(lib.loc = NULL, repositories = NULL, method,
type = getOption("pkgType"))
## S3 method for class 'packageStatus'
summary(object, ...)
## S3 method for class 'packageStatus'
update(object, lib.loc = levels(object$inst$LibPath),
repositories = levels(object$avail$Repository), ...)
## S3 method for class 'packageStatus'
upgrade(object, ask = TRUE, ...)
参数----------Arguments----------
参数:lib.loc
a character vector describing the location of R library trees to search through, or NULL. The default value of NULL corresponds to all libraries currently known.
字符向量描述R库树的位置,通过搜索,或NULL。默认值的NULL对应于目前已知的所有库。
参数:repositories
a character vector of URLs describing the location of R package repositories on the Internet or on the local machine.
特征向量的描述在互联网上或在本地机器上的位置的R包库的网址。
参数:method
Download method, see download.file.
下载方法,请参阅download.file。
参数:type
type of package distribution: see install.packages.
包分配类型:install.packages。
参数:object
an object of class "packageStatus" as returned by packageStatus.
类对象"packageStatus"返回packageStatus的。
参数:ask
if TRUE, the user is prompted which packages should be upgraded and which not.
如果TRUE,则提示用户升级包应该,哪些不。
参数:...
currently not used.
目前没有使用。
Details
详情----------Details----------
The URLs in repositories should be full paths to the appropriate contrib sections of the repositories. The default is contrib.url(getOption("repos")).
在repositories的网址应该是适当的库的contrib部分的完整路径。默认contrib.url(getOption("repos"))。
There are print and summary methods for the "packageStatus" objects: the print method gives a brief tabular summary and the summary method prints the results.
有print和summary"packageStatus"对象的方法:print方法给出了一个简短的表格总结和summary方法的输出结果。
The update method updates the "packageStatus" object. The upgrade method is similar to update.packages: it offers to install the current versions of those packages which are not currently up-to-date.
update方法更新"packageStatus"对象。类似upgradeupdate.packages方法是:它提供了安装这些软件包,这是目前没有最新的当前版本。
值----------Value----------
An object of class "packageStatus". This is a list with two components
对象类"packageStatus"。这是一个带有两个组件的列表
参数:inst
a data frame with columns as the matrix returned by installed.packages plus "Status", a factor with levels c("ok", "upgrade"). Only the newest version of each package is reported, in the first repository in which it appears.
与矩阵的列的数据框返回installed.packages加"Status",与水平的一个因素c("ok", "upgrade")。只有每个软件包的最新版本,据悉,它出现在第一库。
参数:avail
a data frame with columns as the matrix returned by available.packages plus "Status", a factor with levels c("installed", "not installed", "unavailable")..
available.packages加"Status"返回一个矩阵的列的数据框,与水平的一个因素c("installed", "not installed", "unavailable")..
For the summary method the result is also of class "summary.packageStatus" with additional components
结果为summary方法也是类"summary.packageStatus"附加组件
参数:Libs
a list with one element for each library
为每个库的一个元素的列表
参数:Repos
a list with one element for each repository
每个仓库的一个元素列表
with the elements being lists of character vectors of package name for each status.
元素包名称为每个状态的特征向量名单。
参见----------See Also----------
installed.packages, available.packages
installed.packages,available.packages
举例----------Examples----------
## Not run: [#无法运行:]
x <- packageStatus()
print(x)
summary(x)
upgrade(x)
x <- update(x)
print(x)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|