2016-03-16 89 views

回答

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

+0

感謝您的答覆。這個命令是否適合更新?我必須卸載以前版本的軟件包嗎? – facha

+0

'update.packages()'命令肯定有助於在不卸載以前版本的軟件包的情況下進行安裝。 – Vikas