Ubuntu10.10配置R环境的方法

华军新闻网 2017-05-19 17:48:46

  在Ubuntu10.10系统中,有的用户因工作需要得进行配置R环境,但还不清楚该如何配置。今天华军小编给大家展示的是Ubuntu10.10配置R环境的方法,精心挑选的内容希望大家多多支持、多多分享,喜欢就赶紧get哦!

61-15051Q13114624.jpg

  方法如下:

  向 /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-recommended 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

本文相关软件

Ubuntu 32bit16.10 官方版

  Ubuntu是一个完全基于Linux 的操作系统,它不但免费,而且有专业人员和业余爱好者共同...

更多


'); })();