我在无法上网的机器上安装了R.是否可以从本地源存档更新特定包?什么是正确的方法呢?
答案 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