`
yaojingguo
  • 浏览: 202732 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

R on Ubuntu

阅读更多

 

I have been using R recently. R is statistics programming language. R has attracted more and more attention as analytics in cloud gets more and more hot.

 

Don't install R in default ubuntu source which only contains a older version. Update apt source according to http://ftp.ctex.org/mirrors/CRAN/. For example, I added the following line to /etc/apt/source.list

 

deb http://bibs.snu.ac.kr/R/bin/linux/ubuntu jaunty/

 

Install R

sudo apt-get install r-base-dev

 

Install rJava

sudo R CMD javareconf

sudo R to launch RTerm. Issue install.packages('rJava', dependencies=TRUE) to install rJava.

(Installation of rJava needs root permission so sudo it is needed. sudo R is also needed whenever you want to use rJava in Rterm)

sudo R to launch RTern whenever rJava library needs to be used.

 

There is another way to install rJava. First run `sudo chmod -R 777 /etc/R`. The do all the operations in the previous text without `sudo`.

 

InstallO Other Packages

Use sudo R to launch RTerm

install.packages('RWeka', dependencies=TRUE)

install.packages('kernlab', dependencies=TRUE)

install.packages('ISwR', dependencies=TRUE)

 

Install dependencies packages:

 

- sudo apt-get install libx11-dev

- sudo apt-get install libglu1-mesa-dev

- sudo apt-get install libgl1-mesa-dev

 

In R console, run

 

install.packages('Rcmdr', dependencies=TRUE)

 

To install ggplot2 and caret, don't use dependencies=TRUE. Otherwise, a lot of dependent packages

will be installed. Installation for some of them may fails since some depends on something outside of

R (some ubuntu pacages).

 

 

 

 

 

 

0
0
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics