I'm using R on my MSc thesis, which is about a new clustering algorithm, and I found out that I was unable to install it via Adept.
It may be my fault, but there's other things I seem not to find in Adept.
So, I had to do it "manually". It was easy to find the official information, and it was also easy to install and use it.
To get R, just update the repositories and the get r-base:
$ sudo apt-get update
$ sudo apt-get install r-base
I'm not sure that I really need it, but since I'm going to develop a package, I've also installed the development stuff:
$ sudo apt-get install r-base-dev r-recommended
I've also wanted an R editor, so I've used JGR. In order to use it, I've followed the official installation under Linux.
Java is required, so when there's none, Sun's Java should be installed:
$ sudo apt-get install sun-java6-jdk
To install JGR, it's necessary to enable Java support in R:
$ sudo R CMD javareconf
And then install the JGR library:
$ sudo R
> install.packages('JGR')
After installed, run it:
> library(JGR)
> JGR()
JGR It has a small problem though, it has been installed as root and I seem unable to use it with any other user, so root will be.
So, I've automated the startup of R with JGR with a simple shell script, named runr.sh:
sudo R -f /home/m6/msc/jgr.r
While the jgr.r file contains the JGR start commands
library(JGR)
JGR()
Now, running ./runr.sh starts R and JGR all in one. It's still necessary to login as root, though.
There are alternatives to JGR that require a lot less stress. Tinn-R and R Commander are alternatives, in fact Tinn-R is the editor I elected for R in Windows environment.
For know I'll just stick with JGR because I like to explore alternatives in order to decide which is best.
./M6