On 25 May 2012 at 17:20, Marius Hofert wrote: | I recently switched from Mac OS X (after 7 years) to Xubuntu 12.04 and I am | quite happy with it so far. I first installed R from source but I was somehow | missing certain things and I thus decided (after a new Xubuntu installation | which I had to make due to other reasons) to install R the "Ubuntu way":
Right. | ,----[ R installation: ] | | 1) sudo emacs /etc/apt/sources.list | | 2) add: | | deb http://stat.ethz.ch/CRAN/bin/linux/ubuntu precise/ | | 3) in a terminal: | | gpg --keyserver keyserver.ubuntu.com --recv-key E084DAB9 | | gpg -a --export E084DAB9 | sudo apt-key add - | | 4) the "standard way": | | sudo apt-get update | | sudo apt-get install r-base | | sudo apt-get install r-base-dev | | sudo apt-get build-dep r-base-dev | `---- 'r-base-dev' should give you everything you need to use CRAN; the build-dep are only needed if you build R from source, which you should not have to. | I realized that the TeXLive Version which can be installed via the Ubuntu Software | Center is quite outdated (2009) for my needs. I therefore installed TeXLive 2011 | like this: "Doctor, doctor: it hurts when I do this." "Well then don't do it." Well this is your problem. On stock Debian and Ubuntu system with the disto's versions of R and TeX, Sweave "just works". If you choose to go another route, you get to pick up the pieces yourself. For the record: edd@max:~$ dpkg -L r-base-core | grep Sweave.sty /usr/share/R/share/texmf/tex/latex/Sweave.sty edd@max:~$ dpkg -L r-base-core | grep "tex/latex" /usr/share/texmf/tex/latex /usr/share/R/share/texmf/tex/latex /usr/share/R/share/texmf/tex/latex/Sweave.sty /usr/share/R/share/texmf/tex/latex/ts1aer.fd /usr/share/R/share/texmf/tex/latex/omscmtt.fd /usr/share/R/share/texmf/tex/latex/omsaett.fd /usr/share/R/share/texmf/tex/latex/ts1aett.fd /usr/share/R/share/texmf/tex/latex/omsaer.fd /usr/share/R/share/texmf/tex/latex/jss.cls /usr/share/R/share/texmf/tex/latex/Rd.sty /usr/share/R/share/texmf/tex/latex/upquote.sty /usr/share/texmf/tex/latex/R edd@max:~$ ls -l /usr/share/texmf/tex/latex total 36 drwxr-xr-x 4 root root 4096 2011-11-18 11:39 beamer drwxr-xr-x 2 root root 12288 2010-05-09 19:35 lm drwxr-xr-x 9 root root 4096 2011-11-18 11:39 pgf drwxr-xr-x 2 root root 4096 2011-05-14 09:06 preview drwxr-xr-x 2 root root 4096 2010-05-06 23:26 prosper lrwxrwxrwx 1 root root 22 2009-10-13 20:56 R -> ../../../R/share/texmf drwxr-xr-x 2 root root 4096 2010-05-06 23:34 tipa drwxr-xr-x 2 root root 4096 2010-05-06 23:26 xcolor edd@max:~$ ls -ld /usr/share/texmf/tex/latex and that symlink which places the 'R' directory into texlive's default search path is added by the R package I maintain. Dirk -- Dirk Eddelbuettel | [email protected] | http://dirk.eddelbuettel.com _______________________________________________ R-SIG-Debian mailing list [email protected] https://stat.ethz.ch/mailman/listinfo/r-sig-debian

