Tuesday, February 1, 2011

Installing R package and R-Commander GUI in OpenSUSE 11.3 Linux desktop for statistical computing and graphics


"R is a language and environment for statistical computing and graphics."
http://www.r-project.org/about.html


1. Add the openSUSE 11.3 repo to Yast
http://download.opensuse.org/repositories/devel:/languages:/R:/patched/openSUSE_11.3/

For other versions:
http://cran.r-project.org/bin/linux/suse/README.html

2. Search for 'R-patched' and 'R-develop' in Yast and install

Now you can type 'R' in terminal to run the program

3. Install R commander (GUI)
http://socserv.mcmaster.ca/jfox/Misc/Rcmdr/installation-notes.html

a) Run R as root
b) Type "install.packages("Rcmdr", dependencies=TRUE)" without quotes
c) Choose a mirror
d) Installation and compilation would take several minutes based on your system config

Check for warnings in compilation. If you did not select 'R-develop', there would be lot of dependency errors.

3. To run R-commander GUI:
a) Type R in terminal
b) Issue this command: "library(Rcmdr)" without quotes. The GUI should pop-up now.



OTHER LINKS:
Another GUI
http://www.sciviews.org/SciViews-R/index.html


R and Python
http://rpy.sourceforge.net/rpy2_download.html
http://www.omegahat.org/RSPython/



1 comment:

  1. thanks! i was getting desperate not being able to install packages in R

    ReplyDelete