Skip to content

Installing R Packages on ubuntus

3 messages · Ogbos Okike, Liviu Andronic, Michael Rutter

#
Hello,
On 8/27/09, ogbos okike <ogbos.okike at gmail.com> wrote:
If you're running an amd64 Ubuntu Jackalope (something you didn't
quite specify), the following might work. Add
deb http://debian.cran.r-project.org/cran2deb/debian-amd64/ testing/

in
/etc/apt/sources.list

These binaries are built for Debian testing, but they seem to be
compatible with Jackalope. Reload Synaptic, and install
r-cran-<whatever>.
Liviu
#
Ogbos,

This is a tricky install since you need some ubuntu packages and R 
packages from different locations (cran and R-forge).  Also note that 
there was an error in your install.packages command.  This is what I 
used on my 64bit jaunty machine.

sudo apt-get install gdal-bin libgdal1-dev
sudo R
# Following commands in R
install.packages("sp")
install.packages("rgdal")
install.packages("raster",repos="http://R-Forge.R-project.org")

I can't grantee raster works, but this installed the packages and I was 
able to load the library.

Hope this helps,
Michael
ogbos okike wrote: