[R-sig-Geo] spgrass6 and InitGrass

Tomislav Hengl hengl at spatial-analyst.net
Thu Oct 6 14:46:00 CEST 2011


I'm having problems using GRASS 6.4.1 from R under windows 7. I've 
installed GRASS and then loaded spgrass6 and tried:

 > library(spgrass6)
Loading required package: XML
GRASS GIS interface loaded with GRASS version: (GRASS not running)
 > GRASS <- 
shortPathName(utils::readRegistry("SOFTWARE\\WOW6432NODE\\GRASS 
6.4.1")$InstallPath)
  > GRASS
[1] "C:\\PROGRA~2\\GRASS6~1.1"
  > initGRASS(gisBase=GRASS, home=tempdir())
Error in initGRASS(gisBase = GRASS, home = tempdir()) :
    Platform variant  not supported

  > paste(R.version$version.string, Sys.info()[["sysname"]], 
Sys.info()[["release"]])
[1] "R version 2.12.2 (2011-02-25) Windows 7 x64"
 > sessionInfo()[["otherPkgs"]][["spgrass6"]][["Version"]]
[1] "0.7-4"

(sorry Roger, it probably means that you have to update the package :(

T. Hengl
http://www.wewur.wur.nl/popups/vcard.aspx?id=HENGL001



More information about the R-sig-Geo mailing list