rattle http://journal.r-project.org/archive/2009-2/RJournal_2009-2_Williams.pdf has a lot of dependencies, which can give difficulty in its installation. The instructions below may become outdated as changes occur in any of the components, so updates / corrections are welcome.

Here are some notes (J C Nash) that describe some attempts. These are not the only approach. I have not put the rattle or library versions here, but it does appear that for some environments/distributions, this may be important and notes are welcomed.

For information, wajig is a package installer (by Graham Williams, author of rattle) for debian packages. Preferred by some. (JN: I tend to forget and use apt-get.) The text-based (terminal) editor ‘joe’ uses conventions similar to the old Turbo Pascal editor http://joe-editor.sourceforge.net/. Some of us find this very useful for quick and dirty changes.

Tcl/tk does not seem necessary; however, its libraries are used in install.packages as a comfortable convenience to interactively choose repos.

Ubuntu 9.10 Karmic

Below is how I got a clean Ubuntu Karmic VM to start rattle. I didn’t actually try calculations. This is a mixture of advice received on r-sig-debian from various contributors.

  1. I changed /etc/apt/sources to use the CRAN debian repository for Ubuntu Karmic, i.e.,
    deb http://probability.ca/cran/bin/linux/ubuntu karmic/
  2. I did NOT use cran2deb.
  3. Installed (via apt-get) tk-dev and tcl-dev and r-base
  4. started R as root (but kept a second root terminal open for apt-get etc.)
         install.packages("XML") complained of no xml2-config, so installed
         libxml2-dev via apt
         XML then installs in R
         An alternative here is
         $ sudo apt-get install r-cran-xml
         pmml also installs
         rattle "installs", but when started wants RGtk2. I chose to install
         via apt (r-cran-rgtk2)
         rattle then starts in R, but complains it wants cairodevice
         via apt installed r-cran-cairodevice
         Same process got a complaint about colorspace
         via apt installed r-cran-colorspace.

This gave a clean startup.


Ubuntu 9.10 Karmic (alternative installation instructions)

The following instructions will install rattle including all dependencies. R should already be installed.

Change your /etc/apt/sources to include one of the following repositories (depending on your architecture):

   deb http://debian.cran.r-project.org/cran2deb/debian-i386 testing/
   deb http://debian.cran.r-project.org/cran2deb/debian-amd64 testing/

Open a terminal and run the following command:

   sudo aptitude install r-cran-rattle r-cran-rgtk2 r-cran-ada r-cran-amap r-cran-arules r-cran-cairodevice r-cran-car r-cran-cba r-cran-colorspace r-cran-doby r-cran-e1071 r-cran-ellipse r-cran-fecofin r-cran-fbasics r-cran-foreign r-cran-fpc r-cran-gdata r-cran-gtools r-cran-gplots r-cran-gwidgetsrgtk2 r-cran-hmisc r-cran-kernlab r-cran-latticist r-cran-matrix r-cran-mice r-cran-network r-cran-nnet r-cran-odfweave r-cran-party r-cran-playwith r-cran-psych r-cran-randomforest r-cran-reshape r-cran-rggobi r-cran-rocr r-cran-rodbc r-cran-rpart r-cran-rsvgdevice r-cran-survival r-cran-timedate r-cran-xml


Debian testing netinst iso (2010-02-03)

  This was possibly the easiest setup. 
  - downloaded the iso and installed debian testing VM on VirtualBox
    username=user, password=password
  - modified /etc/apt/sources.list to have 
     deb http://probabilty.ca/cran/bin/linux/debian lenny-cran/
     deb-src http://probability.ca/cran/bin/linux/debian lenny-cran/
     deb http://debian.cran.r-project.org/cran2deb/debian-i386 testing/ 
  - installed gpg keys for these repositories 
    download http://debian.cran.r-project.org/key.asc to /home/user
    sudo apt-key add key.asc
    gpg --keyserver subkeys.pgp.net --recv-key 381BA480
    gpg -a --export 381BA480 > jranke_cran.asc
    sudo apt-key add jranke_cran.asc
  - apt-get update
    apt-get -t unstable install r-base r-base-dev
  - apt-get install r-cran-rattle r-cran-colorspace r-cran-cairodevice

Ubuntu 8.04 Hardy

   The following script worked on a Hardy virtual machine (but was executed in pieces). Tests welcome.
   # setup rattle on Hardy
   echo "hardyrattle -- set up R rattle on Ubuntu Hardy"
   set USER = `whoami`
   if [! $USER = "root" ] ;
   echo "STOP STOP STOP"
   echo "You must be root to run this script"
   exit 1
   set PWD = `pwd`
   if [ ! $PWD = "/home/ubuntu" ];
   echo "You shoult be in the default user's home directory to run this script"
   exit 2
   # do the rest
   echo "Install joe"
   apt-get install joe
   echo "OK?"
   read tt
   echo "deb http://probability.ca/cran/bin/linux/ubuntu hardy/" >tfile1
   cat /etc/apt/sources.list ./tfile1 >tfile2
   mv /etc/apt/sources.list /etc/apt/sources.list.old
   mv tfile2 /etc/apt/sources.list
   echo "Check sources.list"
   ls -l /etc/apt/sources.list
   read tt
   joe /etc/apt/sources.list
   # ?? permissions
   echo "Hit Enter if it was OK"
   read tt
   gpg --keyserver subkeys.pgp.net --recv-key 381BA480
   gpg -a --export 381BA480 > jranke_cran.asc
   apt-key add jranke_cran.asc
   # not essential, but nice
   apt-get install wajig
   apt-get install r-base r-base-dev libglade2-dev r-cran-rgtk2
   echo "#! /usr/bin/Rscript --vanilla" >tfile1
   echo "rm(list=ls())" >>tfile1
   echo "# install.packages('RGtk2',repos='http://probability.ca/cran')" >>tfile1
   echo "# install.packages('colorspace',repos='http://probability.ca/cran')" >>tfile1
   echo "install.packages('cairoDevice',repos='http://probability.ca/cran')" >>tfile1
   echo "# install.packages('rattle',repos='http://probability.ca/cran')" >>tfile1
   echo "library(rattle)" >>tfile1
   echo "rattle()" >>tfile1
   echo "q()" >>tfile1
   echo "## end" >>tfile1
   mv tfile1 insrattle.sh
   chmod 755 insrattle.sh
   joe insrattle.R
   echo "Hit Enter if it was OK"
   read tt

Debian Stable (Lenny)

Ubuntu 9.04 Jaunty

   The script suggested for Ubuntu Hardy should work once the minor modification to provide the correct
   debian repository is made. 
                                     J C Nash 2010-2-7

Sabayon 5.0 live DVD

Sabayon http://www.sabayonlinux.org/mod/mirrors/ is mostly multimedia oriented, but it comes with gcc, gfortran and, except for Tcl/Tk, everything (library headers *.h) one needs to build R and rattle from source. It can be installed on a hard disk or used (by means of unetbootin if one only boots from USB) as a live DVD. The command line is necessary then and can be accessed with a right click, then execute command, then typing “konsole”...

In this case, care must be taken to keep the data one installed; this was managed by creating a disk image and mounting it as /usr/local -it is the easiest- (details on the elaboration of the disk image can be found in http://rwiki.sciviews.org/doku.php?id=getting-started:installation:fedora_core -> R on a live USB stick with Scientific Linux ->adding a newer version of R). The following sequence as root (password root on the live DVD...) might help:

   5  mount /dev/sde1  /usb # mounts the USB stick where everything I thought needed has been downloaded
 # /media/volntfs is an external disk which has been mounted : its name must be, of course, adapted.
# the virtual disk is in sabaimg/sabausrlocal
# the gap between numbers in this history is linked with some man consultation and browsing....  
   14    mount /media/volntfs/sabaimg/sabausrlocal /usr/local -o loop
   15  chmod +x  /usr/local
   16  history > /usb/sbroothistory # for this howto...

Nota : line 14 must be retyped everytime one has rebooted (with sudo, if one does not want to use root access) Then, everything one needs can be put in /usr/local and wonot vanish once the session stops ; if one makes errors, one can retry with other versions of /usr/local images.... Then R , rattles dependencies, rattle itself and some of rattles improvements can be installed the traditional way; just notice that sudo works with Sabayon liveDVD, and was used many times, and that it could be put in a for loop... (this has been tried with bashcompletion, which is activated on its life CD)

    1  which gcc # as stated, gcc exists...
    5  cd /media/volntfs/sabaimg/
   13  tar xvf /usb/R-2.10.1.tar.gz
   14  cd tempo
   15  ../R-2.10.1/configure # everything is OK, except for tcl/tk which is not used by rattle... this has been fixed with a fresh install of tcl/tk and R from source (specifying Tcl/Tk's install tree when configuring R)
   16  make
   17  make install #needed root permissions..
   18  sudo make install 
   19  R --vanilla
   20  R  CMD INSTALL /usb/r/r/XML_2.6-0.tar.gz # forgot root permissions...
   21  sudo R  CMD INSTALL /usb/r/r/XML_2.6-0.tar.gz 
   22  sudo R  CMD INSTALL /usb/r/r/pmml_1.2.21.tar.gz 
   # extra dependencies (party -cmd 36 - is used by rattle, but is not compulsory)
   23  sudo R  CMD INSTALL /usb/r/r/coin_1.0-10.tar.gz 
   24  sudo R  CMD INSTALL /usb/r/r/mvtnorm_0.9-9.tar.gz 
   26  sudo R  CMD INSTALL /usb/r/r/modeltools_0.2-16.tar.gz 
   27  sudo R  CMD INSTALL /usb/r/r/coin_1.0-10.tar.gz # this time, 'coin' has averything it needs)
   28  sudo R  CMD INSTALL /usb/r/r/zoo_1.6-2.tar.gz 
   30  sudo R  CMD INSTALL /usb/r/r/sandwich_2.2-5.tar.gz 
   31  sudo R  CMD INSTALL /usb/r/r/strucchange_1.4-0.tar.gz 
   34  sudo R  CMD INSTALL /usb/r/r/colorspace_1.0-1.tar.gz 
   35  sudo R  CMD INSTALL /usb/r/r/vcd_1.2-8.tar.gz 
   36  sudo R  CMD INSTALL /usb/r/r/party_0.9-9991.tar.gz 
   37  sudo R  CMD INSTALL /usb/r/r/cairoDevice_2.10.tar.gz 
   38  sudo R  CMD INSTALL /usb/r/r/RGtk2_2.12.18.tar.gz
   39  sudo R  CMD INSTALL /usb/r/r/rattle_2.5.22.tar.gz 
   40  R --vanilla # first test, to know which is missing
   41  sudo R  CMD INSTALL /usb/r/r/ellipse_0.3-5.tar.gz 
   44  sudo R  CMD INSTALL /usb/r/r/RColorBrewer_1.0-2.tar.gz 
   45  sudo R  CMD INSTALL /usb/r/r/latticeExtra_0.6-6.tar.gz 
   47  sudo R  CMD INSTALL /usb/r/r/gWidgets_0.0-39.tar.gz 
   49  sudo R  CMD INSTALL /usb/r/r/gWidgetsRGtk2_0.0-59.tar.gz 
   50  sudo R  CMD INSTALL /usb/r/r/latticist_0.9-42.tar.gz 
   51  R --vanilla
   53  sudo R  CMD INSTALL /usb/r/r/Hmisc_3.7-0.tar.gz 
   54  sudo R  CMD INSTALL /usb/r/r/doBy_4.0.5.tar.gz 
   55  sudo R  CMD INSTALL /usb/r/r/timeDate_2110.87.tar.gz 
   56  sudo R  CMD INSTALL /usb/r/r/timeSeries_2110.87.tar.gz 
   57  R --vanilla
   59  sudo R  CMD INSTALL /usb/r/r/gtools_2.6.1.tar.gz 
   60  sudo R  CMD INSTALL /usb/r/r/gdata_2.7.1.tar.gz 
   64  sudo R  CMD INSTALL /usb/r/r/caTools_1.10.tar.gz 
   65  sudo R  CMD INSTALL /usb/r/r/bitops_1.0-4.1.tar.gz 
   66  sudo R  CMD INSTALL /usb/r/r/gplots_2.7.4.tar.gz 
   67  R --vanilla
   69  sudo R  CMD INSTALL /usb/r/r/gridBase_0.4-3.tar.gz 
   70  sudo R  CMD INSTALL /usb/r/r/playwith_0.9-45.tar.gz 
   71  sudo R  CMD INSTALL /usb/r/r/fBasics_2110.79.tar.gz 
   72  R --vanilla
   73  sudo R  CMD INSTALL /usb/r/r/ada_2.0-1.tar.gz 
   74  sudo R  CMD INSTALL /usb/r/r/kernlab_0.9-9.tar.gz 
   75  history > /usb/sbmaison

Some packages may still be missing, but rattle is quite satisfactory at this step, at least with quick tests using rattle’s audit database (mainly exploratory statistics) ..... However, rggobi is not installed (used for interactive data visualisation) and it needs ggobi which was installed by trial and errors (another way of installing rggobi can be found at http://www.ggobi.org/rggobi/ : once ggobi is installed {line 38 in the following history} , set PKG_CONFIG_PATH to /usr/local/lib/pkgconfig)

# this was another session and before I had verified R still existed (!) and rattle was working
 # the usb stick where I keep everything I need was automagically named /media/KINGSTON (mounting it manually was unuseful)
   13  cd /media/volntfs/sabaimg
   34  tar vxf /media/KINGSTON/ggobi-2.1.8.tar.bz2
   35  cd ggobi-2.1.8
   36  ./configure
   37  make 
   38  sudo make install
   39  sudo R CMD INSTALL /media/volntfs/wdpassport/r/r/rggobi_2.1.14.tar.gz
# it could not find ggobi, and it was tedious to find some of its dependencies
   63   man pkg-config 
   64   which pkg-config 
   65  find /usr/bin -iname \*pc #no packages found
   66  find /usr/lib -iname \*pc # packages pkg-config supports are in /usr/lib/pkgconfig
   68  pkg-config --modversion xp # verified pkg-config worked
   69  sudo cp *pc /usr/lib/pkgconfig/.
#line 69 added to the list of packages pkg-config supports ggobi : this is a volatile modification on a live DVD, 
#as /usr/lib is not writable
   71  sudo R CMD INSTALL /media/volntfs/wdpassport/r/r/rggobi_2.1.14.tar.gz 2>&1 | less # seems to work.....
   72  sudo R CMD INSTALL /media/volntfs/wdpassport/r/r/rggobi_2.1.14.tar.gz 
   73  R --vanilla # verified rattle cound launch rggobi on the audit database.....
   74  df
   76  history > /media/KINGSTON/sabbarattleggobi

Nota : on eeePCs, MSIwinds and other “net”“books”, Sabayon (at least as a live DVD) is a little uncomfortable if one has a non US keymap: the workaround is, at boot, to modify the grub’s command (by hitting tab within 10 seconds!) and

* changing vga=791 into vga=789

* adding keymap=fr ( or ..... at least, it should read like this on the screen...) before booting; else, command lines might be very uncomfortable (but rattle, once installed, is so user friendly it does not need a keyboard).

There is another issue with spreadsheets and exotic languages : rattle (2.5.22) can read comma separated values, with a dot as a decimal separator, but some spreadsheet can export semi colon separated values, with a comma as a decimal separator (ex: “3,1415;2,71” instead of “3.1415,2.71”) “read.csv2” under R can read. A sequence of such spreadsheet outputs was created the following way

    # donnees.dat is a data file, a mixture of spaces and tab is used as separator (database output).
  196  cat donnees.dat | tr  "\t" " " | sed -e "s/ [ ]*/,/g" > donnees.csv  #gets comma separated
  197  less donnees.csv # looks like a traditional csv.
  201  cat donnees.csv | sed -e "s/,/;/g" -e "s/\./,/g" > donnees2.csv # looks like French exports of Excel
  202  less donnees2.csv # looks like a French csv; "\" in the former command is very .... important....
  205  R --vanilla # tests
  206  history>/media/KINGSTON/rattlecsv # makes this piece of R wiki

To be able to read “donnees2.csv”, two steps are required, once R is launched : a) fake rattle to “believe” read.csv is read.csv2 (from a previous log, read.csv is the only function to modify)

oread.csv <- read.csv
read.csv<- read.csv2

and specify the field separator is a semicolon once rattle is launched.

NOTA : this feature was implemented in a much cleaner way in rattle versions (>5.24): one can choose the field and the decimal separator, thus leading to a broader range of Excel exports one can read...

When one has no direct Internet access, “install.packages” cannot work recursively, and one has to find the dependencies by trials and errors (or by knowing that rattle needs only pmmg (which needs XML) and Rgtk2 as mandatory dependencies, the other ones giving more options but many of them have very deep dependencies). If one has successfully installed rattle and most of its dependencies (if an install of XXXX fails, /usr/local/lib/R/library/XXXX wonot exist ) the chronological order of the subdirectories in /usr/local/lib/R/library gives the sequence of installation (at least if there were no updates).

A sequence of installation can therefore be obtained with

ls -lrt /usr/local/lib/R/library > listepourrattle

and part of the list of dependencies to enhance rattle is the following:

drwxr-xr-x 13 root root 4096 2010-02-21 00:01 XML/
drwxr-xr-x  6 root root 4096 2010-02-21 00:01 pmml/
drwxr-xr-x  8 root root 4096 2010-02-21 00:03 zoo/
drwxr-xr-x  8 root root 4096 2010-02-21 00:02 mvtnorm/
drwxr-xr-x  6 root root 4096 2010-02-21 00:03 modeltools/
drwxr-xr-x 11 root root 4096 2010-02-21 00:03 coin/
drwxr-xr-x  8 root root 4096 2010-02-21 00:04 sandwich/
drwxr-xr-x  9 root root 4096 2010-02-21 00:04 strucchange/
drwxr-xr-x  8 root root 4096 2010-02-21 00:05 colorspace/
drwxr-xr-x  9 root root 4096 2010-02-21 00:05 vcd/
drwxr-xr-x 10 root root 4096 2010-02-21 00:06 party/
drwxr-xr-x  8 root root 4096 2010-02-21 00:06 cairoDevice/
drwxr-xr-x 14 root root 4096 2010-02-21 00:16 RGtk2/
drwxr-xr-x  6 root root 4096 2010-02-21 00:18 ellipse/
drwxr-xr-x  6 root root 4096 2010-02-21 00:19 RColorBrewer/
drwxr-xr-x  8 root root 4096 2010-02-21 00:19 latticeExtra/
drwxr-xr-x 10 root root 4096 2010-02-21 00:20 gWidgets/
drwxr-xr-x  8 root root 4096 2010-02-21 00:22 gWidgetsRGtk2/
drwxr-xr-x  8 root root 4096 2010-02-21 00:22 latticist/
drwxr-xr-x  7 root root 4096 2010-02-21 00:25 Hmisc/
drwxr-xr-x  8 root root 4096 2010-02-21 00:25 doBy/
drwxr-xr-x  8 root root 4096 2010-02-21 00:26 timeDate/
drwxr-xr-x  9 root root 4096 2010-02-21 00:26 timeSeries/
drwxr-xr-x  8 root root 4096 2010-02-21 00:29 gtools/
drwxr-xr-x 13 root root 4096 2010-02-21 00:30 gdata/
drwxr-xr-x  7 root root 4096 2010-02-21 00:31 caTools/
drwxr-xr-x  7 root root 4096 2010-02-21 00:31 bitops/
drwxr-xr-x  8 root root 4096 2010-02-21 00:31 gplots/
drwxr-xr-x  8 root root 4096 2010-02-21 00:36 gridBase/
drwxr-xr-x  9 root root 4096 2010-02-21 00:37 playwith/
drwxr-xr-x  8 root root 4096 2010-02-21 00:37 fBasics/
drwxr-xr-x  7 root root 4096 2010-02-21 00:41 ada/
drwxr-xr-x  9 root root 4096 2010-02-21 00:42 kernlab/
drwxr-xr-x  9 root root 4096 2010-02-21 14:45 rggobi/
drwxr-xr-x 12 root root 4096 2010-02-26 19:32 amap/
drwxr-xr-x  7 root root 4096 2010-02-26 21:34 car/
drwxr-xr-x  8 root root 4096 2010-02-26 21:36 proxy/
drwxr-xr-x  8 root root 4096 2010-02-26 21:36 cba/
drwxr-xr-x  7 root root 4096 2010-02-26 21:37 fpc/
drwxr-xr-x  8 root root 4096 2010-02-26 21:38 fEcofin/
drwxr-xr-x  8 root root 4096 2010-02-26 21:39 mice/
drwxr-xr-x  9 root root 4096 2010-02-26 21:39 network/
drwxr-xr-x  8 root root 4096 2010-02-26 21:40 nnet/
drwxr-xr-x  8 root root 4096 2010-02-26 21:40 odfWeave/
drwxr-xr-x  8 root root 4096 2010-02-26 21:41 psych/
drwxr-xr-x  8 root root 4096 2010-02-26 21:41 plyr/
drwxr-xr-x  7 root root 4096 2010-02-26 21:41 reshape/
this seems neded, too : xtable
drwxr-xr-x  8 root root 4096 2010-02-26 21:41 ROCR/
drwxr-xr-x  7 root root 4096 2010-02-26 21:42 RSvgDevice/
drwxr-xr-x  9 root root 4096 2010-02-27 21:58 RODBC/
drwxr-xr-x  7 1000 root 4096 2010-02-28 20:50 acepack/
drwxr-xr-x  8 1000 root 4096 2010-02-28 20:51 shape/
drwxr-xr-x  8 1000 root 4096 2010-02-28 21:02 akima/
another suggested package was recently added : descr
drwxr-xr-x 11 1000 root 4096 2010-02-28 21:05 tm/
drwxr-xr-x  7 1000 root 4096 2010-02-28 21:05 tm.plugin.mail/
drwxr-xr-x  7 1000 root 4096 2010-02-28 21:05 tau/

Nota : some lines were added or swapped manually to handle updates.

If one wants to install rattle (or any sequence of complicated R libraries)on another GNULinux distribution (or with another version of R) , the following script, once adapted, might help:

#nota : to be used ad an ordinary user, /usr/local/lib/R/library should be writeable by anyone -as root, chmod 777 was enough-
laliste=/media/KINGSTON/listepourrattle # this should point  to the place one has put all the dependencies and is specific to anyones external (USB) storage.
rcommande="/usr/local/bin/R CMD INSTALL"
rremove="/usr/local/bin/R CMD REMOVE"
freshen=zzzz # these lines could be swapped in order to chose between full update and completing
set -vx #only for debugging
# only the last field of "$laliste" is selected as a potential package name, thus allowing for "ls -lrt"
for fic in `cat ${laliste} | awk '{print $NF}' | sed -e "s:/::"`
	echo $fic
#       the latest version one has downloaded will be installed....
	paquet=`ls -rt  ${dirpaquets}/${fic}_*tar.gz | tail -1`
	echo $paquet
	if [ x${freshen} == x ]
# installs only if the package is misssing=> is very quick
            [ -d ${RLIBS}/${fic} ]  || ${rcommande} ${paquet}
# systematically removes packages
            if [ -d ${RLIBS}/${fic} ] 
		  echo "removed $fic" 
		  ${rremove} $fic
		  ${rcommande} ${paquet}
	# exit
#just to remind how to install ggobi
# PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ /usr/local/bin/R CMD INSTALL /media/KINGSTON-1/r/r/rggobi_2.1.14.tar.gz
echo 'PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ /usr/local/bin/R CMD INSTALL /media/KINGSTON/r/r/rggobi_2.1.14.tar.gz'

If some dependencies are not in the right order, relaunching this bash script can cure it, at least when the system libraries (*.so) and headers (*.h) are found in the GNUlinux distribution (or installed by compiling).

Wolvix live CD

Though it is meant for multimedia, wolvix http://wolvix.org/ has everything needed to build R from source and all the headers used by RGtk2 (it is shipped with glade and every header file corresponding to the existing*.so), except gfortran ; this was cured by building the gcc suite from source (thus gcc, g++, gfortran and gcj are substitued to the gcc-4.2.4 (which seems old) original compiler. As a live CD, only a root access (password “toor”) is given, making installation very easy.

Then, using the former script (which was called , installing rattle was straightforward. This leads to the following sequence:

    2  cd /mnt/hda3/wolvix/ # an portion of the internal HD
    3  ls
    4  tar xf  /mnt/sdc2/gcc-4.4.3.tar.bz2 
    5  cd build/
    8  ../gcc-4.4.3/configure
    9  make # takes hours...
#   A 2Gbytes virtual disk, named wxusrlocal has been made and is ready to use, on the USB drive
   11  mount /mnt/sda1/wxusrlocal /usr/local -oloop,rw
   12  make install
   19  rm -rf * # cleans the build directory, to be reused by R...
   25  cd ../ggobi-2.1.8/
   26  make distclean # has already been compiled, with other options
   27  ./configure
   28  make && make install
# R install
   29  cd ..
   30  tar xf /media/KINGSTON/R-latest.tar.gz # R-2.11.0 on 03/28/2010
   31  sync
   32  cd build
   33  ../R-alpha/configure
# keeps a track of R's configure
   34  echo "R is now configured for i686-pc-linux-gnu
  Source directory:          ../R-alpha
  Installation directory:    /usr/local
  C compiler:                gcc -std=gnu99  -g -O2
  Fortran 77 compiler:       gfortran  -g -O2
  C++ compiler:              g++  -g -O2
  Fortran 90/95 compiler:    gfortran -g -O2
  Obj-C compiler:     gcc -g -O2
  Interfaces supported:      X11
  External libraries:        readline, ICU
  Additional capabilities:   PNG, JPEG, TIFF, NLS, cairo
  Options enabled:           shared BLAS, R profiling, Java
  Recommended packages:      yes
" > ../Rconf
# tcltk interface is not supported
   35  make && make install
   36  cp  /media/KINGSTON/installationderattle.sh .
   37  vi installationderattle.sh # minor adaptations
   39  ./installationderattle.sh 
   42  cat installationderattle.sh 
   43  PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ /usr/local/bin/R CMD INSTALL \
   44  ls -l /usr/local/lib/R/library/
   45  sync
   46  history > /media/KINGSTON/wolvixrattle.txt
   47  cat  /media/KINGSTON/wolvixrattle.txt
   48  R --version >> /media/KINGSTON/wolvixrattle.txt
# Now, everythig is finished, but tcltk support is missing : the folloging lines fix it. If one doesn't need tcltk, they may be skipped....
   49  rm -rf *
   50  sync
   51  tar xf /media/KINGSTON/tcl8.5.8-src.tar.gz 
   52  tar xf /media/KINGSTON/tk8.5.8-src.tar.gz 
   53  cd  tcl8.5.8/
   54  ls
   55  cd unix/
   56  ./configure && make
   57  make install
   58  cd ../../tk8.5.8/unix/
   59  ./configure
   60  make 
   61  make install
   62  cd ../..
   63  rm -rf *
   64  ../R-alpha/configure
   65  make && make install 
   66  R --vanilla # quick test
   67  R --version >> /media/KINGSTON/wolvixrattle2.txt
   72  history
   73  history > /media/KINGSTON/wolvixrattle2.txt

Nota : the wolvix B54 development version was downloaded from ftp://ftp.slackware.org.uk/wolvix/development/iso/wolvix-2.0.0/; though R and wolvix were not in a stable state, rattle could be very quickly tested on its audit database and the log rattle generates (R code, vith detailed commands) could be pasted and cut into scite (a text editor shipped with wolvix : it has R syntax hignlighting).

Mandriva 2010.0

from http://rwiki.sciviews.org/doku.php?id=getting-started:installation:gentoo -> Mandriva (!), one can know that Mandriva 2009 had support of R and rattle, at least for old versions ; now, in their repositories, one can find R-2.9.0 and an old version of rattle packaged for Mandriva 2010.0; To get the latest rattle and R versions, the following steps were taken, from a fresh install (not to forget packages which were added when needed : one concentrated on R and Rattle):

As root, with the live dvd (Mandriva Free 2010) online -but without internet connections : Mandrivas package manager, urpmi, can function in a recursive way for the packages that are available), the interactive commands were used, in order to be able to compile a very recent R version and the lasts version of rattle:

   3  urpmi /media/FREE-2010-i586/i586/media/main/gcc-gfortran-4.4.1-4mnb2.i586.rpm  /media/FREE-2010-i586/i586/media/main/make-3.81-4mdv2010.0.i586.rpm  automake 
# as the live Cd is configured as a repository, this might simplify into 
# urpmi gcc-gfortran make automake tcl tk 
# as perl-devel is used to install gdata (a rattle recommanded dependency), one should add
# urpmi perl-devel
    5  urpmi gcc-c++ gcc-cpp gcc-java glade3 libglade2.0_0 libglade2.0_0-devel # At this step, all the necessary dependencies of R and rattles were satisfied, though R could only be configured to work without readline and tcl/tk was missing.
    6  urpmi tk 
    7  urpmi tcl
    8  urpmi readline-devel #readline-devel must be downloadeed from the repo
    9  urpmi readline
   10  urpmi curs # gives the list of the packages cwith curs in them
   11  urpmi libncurses-devel libncursesw-devel libncurses5 # installs curses and its header files...
   12  urpmi jpeg # jpeg was already installed as a library, but headers (jpeg-dev-***) were missing
   13  urpmi jpeg-dev
   14  urpmi jpeg-pro png-de
   15  urpmi pnm-de
   16  urpmi pmg-de
   17  history > /media/win_d/mndvhis1 # A first compilation of R appened here
   18  ls /usr/local/
   19  ls /usr/local/bin
   20  chmod --recursive 777 /usr/local/ # an ordinary user can install R without su in /usr/local
   21  ls -al /usr/local
   22  urpmi pmg-de
   23  urpmi xterm joe kate # added a light terminal, and two editors...
   24  urpmi cream # cream is missing in the live DVD and must be separately downloaded -or a complete list of repositories mus be used, if one has an IT connection; then urpmi ${PATH_TO}cream***rpm works,
   25  urpmi gvim xvim vim
   26  urpmi vim
   27  sync
   28  urpmi diff
   29  urpmi diffuti diffstat unixODBC-dev # to have RODBC compiled later, for rattle
   30  df
   31  umount /media/FREE-2010-i586
   32  df
   33  history > /media/win_d/mndvhist

Then R could be compiled from source as in the other distributions, and rattle could be installed using Sabayon’s (and Wolvix ) bash script....

Mac OSX (Leopard)

Installing rattle on mac is relatively easy:

  1. Download R-2.11-branch pkg file and install
  2. Scroll to bottom of page and download GTK+ Framework and install
  3. Open /Applications/R.app
  4. in R run the following commands to install the packages needed:

To run rattle do the following:

  1. Open /Applications/R.app
  2. in R run the following commands:

At this point you should have a rattle gui up, and you can start using rattle!

getting-started/installation/rattle.txt · Last modified: 2010/05/05 by saml
Recent changes RSS feed R Wiki powered by Driven by DokuWiki and optimized for Firefox Creative Commons License