[R] R on an Asus Eee PC (step-by-step guide)
John C Frain
frainj at gmail.com
Mon Apr 28 16:33:31 CEST 2008
Thanks for the step by step guide. It installs a base R and some
libraries very well. I tries to load some of the Rmetrics libraries,
using install.packages() nu ran into problems. I used apt-get install
to install make and gcc from the Xandros repository. gcc also included
binutils, gcc-4.1 and libsspo. Is there an easy answer to the
question what I need to install to get the install process working.
The R Installation and Administration guide says that I just need the
compilers and tools. Installing robustbase gives the following
messages. (If it is as simple as R not being able to find the header
files how do I tell R where to find them?).
Best Regards
John
Warning in install.packages() :
argument 'lib' is missing: using '/home/user/R/i486-pc-linux-gnu-library/2.7'
trying URL 'http://cran.uk.r-project.org/src/contrib/robustbase_0.2-8.tar.gz'
Content type 'application/x-gzip' length 372375 bytes (363 Kb)
opened URL
==================================================
downloaded 363 Kb
* Installing *source* package 'robustbase' ...
** libs
gcc -std=gnu99 -I/usr/share/R/include -fpic -g -O2 -c init.c -o init.o
In file included from init.c:1:
/usr/share/R/include/R.h:28:20: error: stdlib.h: No such file or directory
/usr/share/R/include/R.h:29:19: error: stdio.h: No such file or directory
In file included from /usr/lib/gcc/i486-linux-gnu/4.1.2/include/syslimits.h:7,
from /usr/lib/gcc/i486-linux-gnu/4.1.2/include/limits.h:11,
from /usr/share/R/include/R.h:30,
from init.c:1:
/usr/lib/gcc/i486-linux-gnu/4.1.2/include/limits.h:122:61: error:
limits.h: No such file or directory
In file included from init.c:1:
/usr/share/R/include/R.h:32:18: error: math.h: No such file or directory
/usr/share/R/include/R.h:33:19: error: errno.h: No such file or directory
In file included from /usr/share/R/include/R.h:50,
from init.c:1:
/usr/share/R/include/R_ext/RS.h:24:39: error: string.h: No such file
or directory
In file included from init.c:2:
/usr/share/R/include/Rinternals.h:770: error: expected declaration
specifiers or '...' before 'FILE'
/usr/share/R/include/Rinternals.h:773: error: expected declaration
specifiers or '...' before 'FILE'
make: *** [init.o] Error 1
ERROR: compilation failed for package 'robustbase'
** Removing '/home/user/R/i486-pc-linux-gnu-library/2.7/robustbase'
The downloaded packages are in
/tmp/RtmposkvoD/downloaded_packages
Warning message:
In install.packages() :
installation of package 'robustbase' had non-zero exit status
2008/4/28 Viechtbauer Wolfgang (STAT) <Wolfgang.Viechtbauer at stat.unimaas.nl>:
> Dear All,
>
> A while back, the question was raised whether R would run on an Eee PC:
>
> http://tolstoy.newcastle.edu.au/R/e3/help/07/12/6564.html
>
> There were some positive responses and some suggestions for getting this to work:
>
> http://tolstoy.newcastle.edu.au/R/e3/help/07/12/7244.html
>
> For those who would like a step-by-step guide, here it is. I hope somebody might find this useful.
>
> 1) open up a terminal window (Ctrl-Alt-t)
> 2) get root access (su, then enter password)
> 3) cd /etc/apt/
> 4) pico sources.list (to edit the software repositories list)
> 5) at the bottom, add the following line:
>
> deb http://xnv4.xandros.com/xs2.0/upkg-srv2 etch main contrib non-free
>
> 6) save and exit with Ctrl-O and Ctrl-X
> 7) get connected to the internet (I assume you know how to do that)
> 8) apt-get update (to update the package index files)
>
> (you may get a warning about a missing public key; you can ignore this)
>
> 9) apt-get install libgfortran1
> 10) apt-get install tk8.4
>
> (both of these packages are needed before you can install r-base)
>
> You could, at this point, also install r-base from the xandros repository. However, it is version 2.4 or something like that, so let's not do that and instead get an up-to-date version.
>
> 11) again, go to /etc/apt/ (if you are not there anymore) and edit sources.list
> 12) remove the line you added under (5) and add the following line:
>
> deb http://cran.r-project.org/bin/linux/debian/ stable/
>
> (the "cran.r-project.org" could be replaced with your favorite mirror).
>
> 13) apt-get update (again, missing public key error can be ignored)
> 14) apt-get install r-base
>
> This may take a minute, depending on the speed of your connection. That's it. Now type "exit" to become a regular user again and you should be able to start R by just typing R. You may also remove the line you added under (12) from the sources.list file.
>
> Best,
>
> --
> Wolfgang Viechtbauer
> Department of Methodology and Statistics
> University of Maastricht, The Netherlands
> http://www.wvbauer.com/
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
--
John C Frain
Trinity College Dublin
Dublin 2
Ireland
www.tcd.ie/Economics/staff/frainj/home.html
mailto:frainj at tcd.ie
mailto:frainj at gmail.com
More information about the R-help
mailing list