楼主: mengqinqing
7981 12

[问答] 关于R升级 [推广有奖]

11
coddz 发表于 2013-4-18 07:05:15
可以通过在其他目录下安装R ,再将旧版本保留
的library 目录下的文件拷贝至新版本library 目录下或卸载R ,把R 装到旧的目录下,最后使
用如下命令更新:
update.packages(checkBuilt=TRUE, ask=FALSE)
or
install.packages(.packages(all=TRUE))

参见刘思喆的《153分钟学会R》

《R语言实战》中也有描述

12
fakye 发表于 2013-11-7 09:28:41
That's a matter of taste. For most people the best thing to do is to uninstall R (see the previous Q), install the new version, copy any installed packages to the library folder in the new installation, run update.packages(checkBuilt=TRUE, ask=FALSE) in the new R and then delete anything left of the old installation. Different versions of R are quite deliberately installed in parallel folders so you can keep old versions around if you wish.

For those with a personal library (folder R\win-library\x.y of your home directory, R\win64-library\x.y on 64-bit builds), you will need to update that too when the minor version of R changes (e.g. from 3.0.2 to 3.1.0). A simple way to do so is to copy (say) R\win-library\3.0 to R\win-library\3.1 before running update.packages(checkBuilt=TRUE, ask=FALSE).
中南大学欢迎您!

13
铁锷未残 学生认证  发表于 2015-5-21 17:51:21
coddz 发表于 2013-4-18 07:05
可以通过在其他目录下安装R ,再将旧版本保留
的library 目录下的文件拷贝至新版本library 目录下或卸载R  ...
谢谢分享

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

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-30 02:57