I am trying to run GRASS GIS version 7.0.3 from R version 3.2.3 using Windows 7. I installed the R package rgrass7
(which provides the interface between GRASS GIS 7 and R) from the CRAN repository. In R running as Administrator, I tried to initialize GRASS GIS like this (after loading rgrass7
library):
initGRASS("C:/OSGeo4W64/apps/grass/grass-7.0.3", d, override = TRUE)
This is the correct path for my system and I have also added following paths of GRASS GIS and R in windows system path:
C:\OSGeo4W64\apps\grass\grass-7.0.3
C\Program Files\R-3.2.3\bin
I am getting following error:
Error in system(paste("g.dirseps.exe -g", shQuote(Sys.getenv("WINGISRC"))), : 'g.dirseps.exe' not found Called from: system(paste("g.dirseps.exe -g", shQuote(Sys.getenv("WINGISRC"))), intern = TRUE)
Can any one help me find out what is wrong in the path or any other relevant ambiguity?