⑴在Ubuntu.系统中,有的用户因工作需要得进行配置R环境,但还不清楚该如何配置。在这,小编就分享给大家配置R环境的方法。
⑵向 /etc/apt/sources.list 中加入:
⑶deb maverick/
⑷Secure apt
⑸The Ubuntu archives on CRAN are signed with the key of "Michael Rutter " with key ID EDAB. You can fetch this key with
⑹gpg --keyserver keyserver.ubuntu. --recv-key EDAB
⑺and then feed it to apt-key with
⑻gpg -a --export EDAB | sudo apt-key add -
⑼安装完整的R system, 使用
⑽sudo apt-get update
⑾sudo apt-get install r-base
⑿The R packages part of the Ubuntu r-base and r-remended 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