从本地源更新特定的R包

时间:2016-03-16 07:22:38

标签: r

我在无法上网的机器上安装了R.是否可以从本地源存档更新特定包?什么是正确的方法呢?

1 个答案:

答案 0 :(得分:2)

install.packages(pkgs, lib, repos = getOption("repos"),
                 contriburl = contrib.url(repos, type),
                 method, available = NULL, destdir = NULL,
                 dependencies = NA, type = getOption("pkgType"),
                 configure.args = getOption("configure.args"),
                 configure.vars = getOption("configure.vars"),
                 clean = FALSE, Ncpus = getOption("Ncpus", 1L),
                 verbose = getOption("verbose"),
                 libs_only = FALSE, INSTALL_opts, quiet = FALSE,
                 keep_outputs = FALSE, ...)

使用上述命令。有关更多帮助,请参阅https://stat.ethz.ch/R-manual/R-devel/library/utils/html/install.packages.html

更新:https://stat.ethz.ch/R-manual/R-devel/library/utils/html/update.packages.html