Skip to content
Prev 13028 / 29559 Next

spgrass6 and InitGrass

On Thu, 6 Oct 2011, Tomislav Hengl wrote:

            
No, that wouldn't help, I'm afraid. Until I research/fix this, can I ask 
anyone else using Windows and spgrass6 to email me off-list with the 
output of:

R.version
.Platform$OS.type
Sys.getenv("OSTYPE")

and your informal description (Windows 7, 64-bit ... or whatever) It looks 
as though the "OSTYPE" environment variable is now being set, and is 
carrying locale, Windoes version, and architecture codes.

A work-around is to set the cached variable directly:

get("SYS", envir=spgrass6:::.GRASS_CACHE)
assign("SYS", "WinNat", envir=spgrass6:::.GRASS_CACHE)
get("SYS", envir=spgrass6:::.GRASS_CACHE)

immediately after loading spgrass6. Then initGRASS() will branch 
correctly, and should put things in the correct place.

Roger