正在Ubuntu10.10体系外,有的用户果事情须要失停止设置R环境,但借没有分明该若何设置。正在那,小编便分享给各人设置R环境的要领。
要领以下:
背 /etc/apt/sources.list 外参加:
deb http://ftp.ctex.org/mirrors/CRAN/bin/linux/Ubuntu maverick/
Secure apt
The Ubuntu archives on CRAN are signed with the key of "Michael Rutter " with key ID E084DAB9. You can fetch this key with
gpg --keyserver keyserver.ubuntu.com --recv-key E084DAB9
and then feed it to apt-key with
gpg -a --export E084DAB9 | sudo apt-key add -
装置完好的R system, 运用
sudo apt-get update
sudo apt-get install r-base
办理战维护R包
The R packages part of the Ubuntu r-base and r-reco妹妹ended packages are installed into the directory /usr/lib/R/library.
The other r-cran-* packages shipped with Ubuntu are installed into the directory /usr/lib/R/site-library.
These can be updated using apt-get with
sudo apt-get update
sudo apt-get upgrade
相关文章