JGR
About JGR GIT access Download/Files News Check results Package R docs FAQ Screenshots JGR on Linux Snow Leopard
|
JGR on Linux
Although we do not provide JGR binaries for Linux distributions, we are testing some of them. This page shows hints and tips for the most common distributions.
In general installing JGR on any unix system is simple, you need
- R with shared library (libR.so) and developer files
- JDK 1.4 or higher (>=1.5 recommended)
Then simply run as root:
R CMD javareconf
R
install.packages('JGR')
library(JGR)
JGR()
Debian (etch)
- Install the most recent R version
Follow instruction from CRAN Debian page, in a nutshell add:
deb http://cran.r-project.org/bin/linux/debian etch/
to the file /etc/apt/source.list (if it's not there already) and run
apt-get update
apt-get install r-base-dev r-recommended
- Install Java Development Kit
This one is quite easy (make sure you have enabled non-free package in Debian):
apt-get install sun-java5-jdk
If you have more than one Java version installed, set the Sun version as default, e.g.:
update-java-alternatives -s java-1.5.0-sun
- Enable Java support in R
As root run:
R CMD javareconf
- Install JGR
In R as root (e.g. via sudo R) type:
install.packages('JGR')
library(JGR)
JGR()
Ubuntu Dapper (6.x)
The instructions are pretty much the same as for Debian etch, except that in step 1) you have to add the following line to sources.list instead:
deb http://cran.r-project.org/bin/linux/ubuntu dapper/
and also make sure your main deb entry for ubuntu contains multiverse (do NOT uncomment the backport list, just add one more word in the main ubuntu line - see Ubuntu Java page for details).
Ubuntu Feisty Fawn (7.x)
- Install the most recent R version
Follow instruction from CRAN Ubuntu page, in a nutshell add:
deb http://cran.r-project.org/bin/linux/ubuntu feisty/
to the file /etc/apt/source.list (if it's not there already) and add multiverse to the main ubuntu faisty deb line (NOT the backports!). Then run
sudo apt-get update
sudo apt-get install r-base-dev r-recommended
- Install Java Development Kit
Make sure you have enabled the multiverse above (run sudo apt-get update if necessary) and run:
sudo apt-get install sun-java6-jdk
If you have more than one Java version installed, set the Sun version as default, e.g.:
sudo update-java-alternatives -s java-1.6.0-sun
- Enable Java support in R
Run:
sudo R CMD javareconf
- Install JGR
Run R as root via sudo R and type:
install.packages('JGR')
library(JGR)
JGR()
Open SuSE 10.2
The package management system in SuSE is really .. let's say suboptimal, so the installation is quite complicated compared to Debian-based systems, but this should guide you through it:
JGR Version 1.5 was successfully tested with all the distributions above exactly as shown.
|