Dear list members.

I am trying to interface GRASS and R with spgras6. I am on Windows 7 64 bit,
and I have R 3.02, GRASS 6.4 and I am running things from RStudio. 

I installed spgrass6, but when I am loading it, I get this message:

> library("spgrass6", lib.loc="C:/Program Files/R/R-3.0.2/library")

Loading required package: sp

Loading required package: XML

Error : .onAttach failed in attachNamespace() for 'spgrass6', details:

  call: system(paste("g.version", get("addEXE", envir = .GRASS_CACHE), 

  error: 'g.version.exe' not found

Error: package or namespace load failed for 'spgrass6'

 

I googled a little, and I set some environmental variables on my comuter
according one www:

GISBASE to C:\GRASS64   (where I have it)

GISRC to C:\Users\Cisty\AppData\Roaming\GRASS6  (where I have file grassrc6.
In my Windows it is grassrc6, not .grassrc6)

And I added to path variable this two paths: C:\GRASS64\bin;
C:\GRASS64\scripts;

 

One thing - on GRASS download page I read that i tis for 64 and 32 bit
systems, but during instalation it never asks, if I want to instal 64-bit or
32-bit version of GRASS, so I am not sure which version I have. All other
software I have for 64-bit architecture. Because of this I tryed to load
spgrass6 also from pure 32 bit R 3.02, but it produced exactly the same
error. I do not know if spgrass6 needs to be reinstaled for using in 32-bit
R.

Thanks for any advice,

Milan

 


	[[alternative HTML version deleted]]

