每次我使用自制软件升级R时,我都需要重新安装大多数软件包 [英] Everytime I upgrade R using homebrew I need to install most packages again
问题描述
R软件包已安装到/usr/local/Cellar/r/3.1.2_1/R.framework/Versions/3.1/Resources/library
每当我运行brew upgrade r
并且R的版本发生更改时,随着安装路径的更改,我都需要再次安装大多数库.
Whenever I run brew upgrade r
and the version of R changes I need to install most of the libraries again as the path of installation changes.
如何升级而不必重新安装所有内容?
How do I upgrade without having to install everything back again?
我认为这回答了我的问题http://stackoverflow.com/questions/1401904/painless-way-to-install-a-new-version-of-r-on-windows
I think this answers my question http://stackoverflow.com/questions/1401904/painless-way-to-install-a-new-version-of-r-on-windows
推荐答案
我将.libPaths("/Users/tim/.R/packages")
放在了~/.Rprofile
中,以便将软件包安装到在版本颠簸后不会消失的路径.
I put .libPaths("/Users/tim/.R/packages")
in my ~/.Rprofile
so that packages are installed to a path that doesn't disappear after a version bump.
这篇关于每次我使用自制软件升级R时,我都需要重新安装大多数软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!