[GRASS-stats] multiple grass installations and spgrass6()

S. Koukoulas (lists) sotkouklistes at gmail.com
Mon Jan 21 11:36:53 PST 2013


How can I get around a possible error with multiple grass installations,
when I use spgrass6?
(preferably without uninstalling grass!)

Here a description of the problem:
when I try to import data  into R (running R within GRASS 7 (revision 
54609) environment), I get the following error:

> nomoi=readVECT6("nomoi_okxe")
Loading required package: rgdal
rgdal: version: 0.8-4, (SVN revision Unversioned directory)
Geospatial Data Abstraction Library extensions to R successfully loaded
Loaded GDAL runtime: GDAL 1.9.2, released 2012/10/08
Path to GDAL shared files: /usr/share/gdal
Loaded PROJ.4 runtime: Rel. 4.8.0, 6 March 2012, [PJ_VERSION: 480]
Path to PROJ.4 shared files: (autodetected)
ERROR: Incompatible library version for module. You need to rebuild
GRASS   <--------------------ERROR--------------
       or untangle multiple installations.

and then R crashes and I am out of its environment.

"nomoi_okxe" data can be downloaded from
 http://geodata.gov.gr/geodata/index.php?option=com_sobi2&sobi2Task=sobi2Details&catid=16&sobi2Id=21&Itemid= 

and then choose SHP (EPSG:2100)

In my PC I have grass6.4.3svn and grass 7 svn (revision  54609) on an
OpenSuse 12.2 laptop

My sessionInfo() output:
> sessionInfo()
R version 2.15.2 (2012-10-26)
Platform: i586-suse-linux-gnu (32-bit)

locale:
[1] C

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base    

other attached packages:
[1] spgrass6_0.7-14 XML_3.95-0.1    sp_1.0-5      

loaded via a namespace (and not attached):
[1] Matrix_1.0-9    grid_2.15.2     lattice_0.20-10 mgcv_1.7-22   
[5] nlme_3.1-105  
>

> execGRASS("g.version")
GRASS 7.0.svn (2012)

I have installed spgrass6 using  install.packages("spgrass6",
repos="http://R-Forge.R-project.org")

many thanks,
sotiris




More information about the grass-stats mailing list