[STATSGRASS] problem installing spgrass6 with R 2.5.1

Roger Bivand Roger.Bivand at nhh.no
Mon Sep 24 17:44:36 EDT 2007


On Mon, 24 Sep 2007, Mauricio Zambrano wrote:

> Hi,
> I had R 2.4.1 with spgrass6 library running OK in my machine, but
> after an upgrade from 2.4.1 to 2.5.1 problems have started.
>
> When I loaded the SPGRASS6 library, I got the following:
>
>> library(spgrass6)
> Loading required package: sp
> Loading required package: maptools
> Loading required package: foreign
> Loading required package: rgdal
> Error in .Internal(putenv(x)) : no hay ninguna función interna "putenv"
> Error : .onLoad failed in 'loadNamespace' for 'rgdal'
> Error: package 'rgdal' could not be loaded
>
> When I tried to re-install the SPGRASS6 library I got this:
>
>> install.packages("spgrass6", dependencies=TRUE)
> Aviso en install.packages("spgrass6", dependencies = TRUE) :
>         argument 'lib' is missing: using
> '/home/hzambran/R/i486-pc-linux-gnu-library/2.5'
> probando la URL 'http://cran.fhcrc.org/src/contrib/spgrass6_0.4-2.tar.gz'
> Content type 'application/x-gzip' length 319712 bytes
> URL abierta
> ==================================================
> downloaded 312Kb
>
> * Installing *source* package 'spgrass6' ...
> ** R
> ** inst
> ** preparing package for lazy loading
> Loading required package: sp
> Loading required package: maptools
> Loading required package: foreign
> Loading required package: rgdal
> Error in .Internal(putenv(x)) : no internal function "putenv"
> Error : .onLoad failed in 'loadNamespace' for 'rgdal'
> Error: package 'rgdal' could not be loaded
> Execution halted
> ERROR: lazy loading failed for package 'spgrass6'
> ** Removing '/home/hzambran/R/i486-pc-linux-gnu-library/2.5/spgrass6'
>
> The downloaded packages are in
>        /tmp/RtmptdSn7W/downloaded_packages
> Warning message:
> installation of package 'spgrass6' had non-zero exit status in:
> install.packages("spgrass6", dependencies = TRUE)
>
>
> Somebody has an idea about how to solve it ?.

update.packages()

to update rgdal - it is the outdated version of rgdal which is causing the 
problem.

Roger

>
> Thanks in advance
>
> Mauricio
>
> _______________________________________________
> statsgrass mailing list
> statsgrass at grass.itc.it
> http://grass.itc.it/mailman/listinfo/statsgrass
>

-- 
Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Helleveien 30, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: Roger.Bivand at nhh.no


More information about the grass-stats mailing list