Hi,
I get an error message (see below) when trying to install the sp package
in R version 2.15.2 running under Ubuntu 12.04 LTS.
I have run sudo apt-get build-dep r-base, but to no help.
Any help will be greatly appreciated.
Terje
> install.packages("sp")
Installing package(s) into ?/home/terjej/R/x86_64-pc-linux-gnu-library/2.15?
(as ?lib? is unspecified)
trying URL 'http://cran.rstudio.com/src/contrib/sp_1.0-12.tar.gz'
Content type 'application/x-gzip' length 1226781 bytes (1.2 Mb)
opened URL
=================================================downloaded 1.2 Mb
* installing *source* package ?sp? ...
** package ?sp? successfully unpacked and MD5 sums checked
** libs
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -O3 -pipe
-g -c Rcentroid.c -o Rcentroid.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -O3 -pipe
-g -c gcdist.c -o gcdist.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -O3 -pipe
-g -c init.c -o init.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -O3 -pipe
-g -c pip.c -o pip.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -O3 -pipe
-g -c pip2.c -o pip2.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -O3 -pipe
-g -c sp_xports.c -o sp_xports.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -O3 -pipe
-g -c surfaceArea.c -o surfaceArea.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -O3 -pipe
-g -c zerodist.c -o zerodist.o
gcc -std=gnu99 -shared -o sp.so Rcentroid.o gcdist.o init.o pip.o pip2.o
sp_xports.o surfaceArea.o zerodist.o -L/usr/lib/R/lib -lR
installing to /home/terjej/R/x86_64-pc-linux-gnu-library/2.15/sp/libs
** R
** data
** demo
** inst
** preparing package for lazy loading
Error in setClass("CRS", slots = c(projargs = "character"),
prototype =
list(projargs = character(1)), :
unused argument(s) (slots = c(projargs = "character"))
Error : unable to load R code in package ?sp?
ERROR: lazy loading failed for package ?sp?
* removing ?/home/terjej/R/x86_64-pc-linux-gnu-library/2.15/sp?
Warning in install.packages :
installation of package ?sp? had non-zero exit status
The downloaded source packages are in
?/tmp/RtmpVJ95Je/downloaded_packages?
On 09/05/2013 05:45 AM, Terje J?rgensen wrote:> Hi, > > I get an error message (see below) when trying to install the sp package > in R version 2.15.2 running under Ubuntu 12.04 LTS. > I have run sudo apt-get build-dep r-base, but to no help. > Any help will be greatly appreciated. > > Terje >Terje, I am able to build sp for the c2d4u PPA on launchpad. If you want to upgrade to R 3.0, you can just use the PPA located here: https://launchpad.net/~marutter/+archive/c2d4u If you still need R 2.15, the build-depends for the package on c2d4u are: r-base-dev, r-cran-lattice, xvfb, xauth, xfonts-base, r-base-core, debhelper (>> 4.1.0), cdbs Hope this helps, Michael -- Dr. Michael A. Rutter Associate Professor of Statistics Program Coordinator, Mathematics Penn State Erie, The Behrend College 4205 College Drive Erie, PA 16563 http://math.bd.psu.edu/faculty/rutter mar36 at psu.edu
On 5 September 2013 at 11:45, Terje J?rgensen wrote: | I get an error message (see below) when trying to install the sp package | in R version 2.15.2 running under Ubuntu 12.04 LTS. It installs without a hitch on my Ubuntu 13.04 system -- eg I just upgraded to sp 1.0-13. Dirk -- Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com
Reasonably Related Threads
- 0 exit status on packages update try
- Problems installing tibble (ggplot2) in R running Ubuntu 14.04
- Problems installing tibble (ggplot2) in R running Ubuntu 14.04
- Problems installing tibble (ggplot2) in R running Ubuntu 14.04
- Importing data from text file with mixed format