设为首页收藏本站获取积分奖励

R语言中文网

 找回密码
 立即注册
查看: 877|回复: 0

R语言比较已安装的软件包和类似CRAN的存储库new.packages()函数-中英文对照帮助文档

[复制链接]
发表于 2020-8-21 08:07:37 | 显示全部楼层 |阅读模式
        R语言比较已安装的软件包和类似CRAN的存储库new.packages()函数-中英文对照帮助文档

                                         By MicroRbt Martinez PhD

R语言函数名:new.packages()
R语言函数功能:比较已安装的软件包和类似CRAN的存储库
来自资源库:基础库(R语言自带)
new.packages()函数所属R语言包:所在R包具体名称、包功能的中英文双语描述见正文后面'--所在R语言包信息--'部分。

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

old.packages indicates packages which have a (suitable) later version on the repositories whereas update.packages offers to download and install such packages.
old.packages表示存储库上具有(合适)更高版本的软件包,而update.packages表示下载并安装此类软件包。

new.packages looks for (suitable) packages on the repositories that are not already installed, and optionally offers them for installation.
new.packages在尚未安装的存储库中查找(合适的)软件包,并有选择地提供它们进行安装。


使用方法-----Usage-----

update.packages(lib.loc = NULL, repos = getOption("repos"),
contriburl = contrib.url(repos, type),
method, instlib = NULL,
ask = TRUE, available = NULL,
oldPkgs = NULL, ..., checkBuilt = FALSE,
type = getOption("pkgType"))
old.packages(lib.loc = NULL, repos = getOption("repos"),
contriburl = contrib.url(repos, type),
instPkgs = installed.packages(lib.loc = lib.loc, ...),
method, available = NULL, checkBuilt = FALSE, ...,
type = getOption("pkgType"))
new.packages(lib.loc = NULL, repos = getOption("repos"),
contriburl = contrib.url(repos, type),
instPkgs = installed.packages(lib.loc = lib.loc, ...),
method, available = NULL, ask = FALSE, ...,
type = getOption("pkgType"))

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

参数lib.loc介绍: character vector describing the location of R library trees to search through (and update packages therein), or NULL for all known trees (see .libPaths).
字符向量,用于描述R库树的位置以进行搜索(并更新其中的程序包),或者NULL查找所有已知树(请参阅.libPaths)。

参数repos介绍: character vector, the base URL(s) of the repositories to use, e.g., the URL of a CRAN mirror such as "https://cloud.r-project.org".
字符向量,要使用的存储库的基本URL,例如CRAN镜像的URL,例如"https://cloud.r-project.org"。

参数contriburl介绍: URL(s) of the contrib sections of the repositories. Use this argument if your repository is incomplete. Overrides argument repos. Incompatible with type = "both".
存储库的contrib部分的URL。如果您的存储库不完整,请使用此参数。覆盖参数repos。与type = "both"不兼容。

参数method介绍: Download method, see download.file. Unused if a non-NULL available is supplied.
下载方法,请参阅download.file。如果提供了非NULL available,则不使用。


参数instlib介绍: character string giving the library directory where to install the packages.
字符串,给出库目录的安装目录。

参数ask介绍: logical indicating whether to ask the user to select packages before they are downloaded and installed, or the c
-----未完,待续-----,↓↓↓展开剩余72%↓↓↓
购买主题 前行需要您的支持,请赞助作者 【15 金钱】 就能浏览全部100%内容啦!(本贴一次赞助、永久可读)
回复

使用道具 举报

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

本版积分规则

手机版|小黑屋|Archiver|R语言中文网    

GMT+8, 2024-5-21 01:09 , Processed in 0.027496 second(s), 21 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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