Skip to content

cran2deb for Ubuntu?

2 messages · Etienne Laliberté, Dirk Eddelbuettel

#
Sorry if this has been answered somewhere else (didn't see it), but is
cran2deb fully compatible with Ubuntu?

Novice question: I use install.packages() within R. The pros of using
sudo apt-get instead seem obvious, but are there any cons I should
know about?

Thanks
#
On 11 November 2009 at 08:38, Etienne Lalibert? wrote:
| Sorry if this has been answered somewhere else (didn't see it), but is
| cran2deb fully compatible with Ubuntu?

To the best of my knowledge, nobody ever claimed it was. I have seen people
state that they use the packages [ that are built for Debian in a Debian
chroot ] on Ubuntu; I myself have not attempted that and am unlikely to do it.

| Novice question: I use install.packages() within R. The pros of using
| sudo apt-get instead seem obvious, but are there any cons I should
| know about?

Mixing the two can be confusing, but given how the library path is set up _in
the packaged version_ (as opposed to builds from raw R upstream sources) you
get a clean split of

    /usr/local/lib/R/site-library/        used by install.packages()

    /usr/lib/R/site-library		  used by r-cran-* packages
    /usr/lib/R/library			  used by 'core' r-cran-* packages

so apt-get will never install where install.packages() installs and vice versa.

One day we hope to have cran2deb for Ubuntu but the ETA is unknown.

Dirk