No Installer Yet
Due to limited resources we do not yet have a functioning Linux installer or installation bundle. For a discussion on installing Red-R on Linux please see here. Note that most of this forum was begun before good Linux versions were available.
General Notes
The Linux installation is not nearly as simple as the Win or Mac versions. That said, I really like the way Red-R works on Linux and use the Linux version myself (). The main hassles are installing the prerequisites which are listed on the main download page. Be sure that you install the R version that comes from the R repositories as they are compiled in a way that allows rpy2 to access it. Typically this involves editing the sources-list to add the R repository (Ubuntu systems).
Installation
By installing Red-R you agree to all licences and copywrite notifications within the copywrite file in the download.
Simply resolve the following dependencies and then unpack the .zip file into the python dist-packages or site-packages directory.
r-base, python-rpy, numpy, g++, python-dev, python-numpy-ext, python-numeric-ext, python-matplotlib, python-imaging, python-qt4-dev, libqwt5-qt4-dev, pyqt4-dev-tools, sip4, python-qwt5-qt4, and docutils (http://docutils.sourceforge.net/)
This can generally be done using the following command:
sudo apt-get install python-rpy python-dev python-numarray-ext
python-numeric-ext python-matplotlib python-qt4-dev libqwt5-qt4-dev
pyqt4-dev-tools sip4 python-qwt5-qt4
and then installing docutils as specified in their documentation.
(many thanks to Chris Miller for helping with this)
You should be able to use sudo apt-get install
to resolve these (Ubuntu systems).
Once all dependencies are resolved you should be able to run:
python /usr/lib/python2.6/dist-packages/RedR/canvas/red-RCanvas.pyw
To have a desktop icon you should make an icon using your file browser and setting the icon to run the above command.
Once you have Red-R installed it might also be a good idea to place a script in your /usr/bin directory named RedR that looks like this;
#!/bin/bash
python /usr/lib/python2.6/dist-packages/Red-R/canvas/red-RCanvas.pyw
And then running the following command;
sudo chmod +x /usr/bin/RedR
Then you should be able to run Red-R by typing the command RedR
Does python-numarray-ext still exist
I believe python-numarray-ext is now called python-numpy-ext, Lucid and subsequent systems. Could be wrong, but I can verify python-numarray-ext does not exist anymore.
Edited 25 Aug 2011
Thanks for the update, I removed the python-numarray-ext from the list of dependencies.
Kyle
Error on installing Red R in Ubuntu Linux 10.10 , R 2.11
I get this on Ubuntu I followed your instructions as above
$ python /usr/lib/python2.6/dist-packages/Red-R/canvas/red-RCanvas.pyw
Importing redREnviron.py
Importing in redRGUI
Cant find windows environ varuable RPATH, you are not using a win32 machine.
Traceback (most recent call last):
File "/usr/lib/python2.6/dist-packages/Red-R/canvas/red-RCanvas.pyw", line 11, in
import orngOutput
File "/usr/lib/python2.6/dist-packages/Red-R/canvas/orngOutput.py", line 11, in
import os.path, os, redRGUI, redREnviron
File "/usr/lib/python2.6/dist-packages/Red-R/canvas/redRGUI.py", line 69, in
qtwidget = imp.load_source('base' + guiClass,filename)
File "/usr/lib/python2.6/dist-packages/Red-R/libraries/base/qtWidgets/Rtable.py", line 2, in
from RSession import Rcommand
File "/usr/lib/python2.6/dist-packages/Red-R/canvas/RSession.py", line 18, in
import rpy
File "/usr/lib/python2.6/dist-packages/rpy.py", line 134, in
""" % RVERSION)
RuntimeError: No module named _rpy2111
RPy module can not be imported. Please check if your rpy
installation supports R 2.11.1. If you have multiple R versions
installed, you may need to set RHOME before importing rpy. For
example:
>>> from rpy_options import set_options
>>> set_options(RHOME='c:/progra~1/r/rw2011/')
>>> from rpy import *