Skip to content
Prev 25089 / 29559 Next

rgrass7 : Error in parseGRASS

Thanks for replying

Here is a reproducible example (change your GRASS directory of course) :

library(rgrass7)
library(sp)
initGRASS("C:/OSGeo4W64/apps/grass/grass-7.0.5", home = tempdir(),
override = TRUE)
data(meuse)
coordinates(meuse) <- ~x+y
writeVECT(meuse, "meuse")
execGRASS("v.db.addcolumn", map = "meuse", columns = "area_m2 double
precision")

I get :
Error : XML content does not seem to be XML: 'The specified path was not
found.'
In addition: Warning message:
running command 'v.db.addcolumn.bat --interface-description' had status 1
Error in parseGRASS(cmd, legacyExec = legacyExec) :
  v.db.addcolumn not parsed

Other execGRASS commands (like r.neighbors, r.mapcalc,..)  work fine,
but some other (r.mask) fail with a similar XML error.

All commands work fine when used from the GRASS shell...

What is this XML error ?
Thanks

Le 22/11/2016 09:34, Roger Bivand a ?crit :