0
我已將R安裝在沒有互聯網訪問的機器上。是否可以從本地源檔案更新特定的軟件包?什麼是正確的做法?從本地源更新特定的R軟件包
我已將R安裝在沒有互聯網訪問的機器上。是否可以從本地源檔案更新特定的軟件包?什麼是正確的做法?從本地源更新特定的R軟件包
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
感謝您的答覆。這個命令是否適合更新?我必須卸載以前版本的軟件包嗎? – facha
'update.packages()'命令肯定有助於在不卸載以前版本的軟件包的情況下進行安裝。 – Vikas