tests/test_XML_xml2.R

library(rgrass)
old <- readRDS(system.file("etc/XML.r.out.gdal.rds", package = "rgrass"))
if (nchar(Sys.getenv("GISRC")) > 0) {
  new <- parseGRASS("r.out.gdal")
  all.equal(old, new)
}
old <- readRDS(system.file("etc/res_r.water.outlet.rds", package = "rgrass"))
if (nchar(Sys.getenv("GISRC")) > 0) {
  new <- parseGRASS("r.water.outlet")
  all.equal(old, new)
}

Try the rgrass package in your browser

Any scripts or data that you put into this service are public.

rgrass documentation built on June 22, 2024, 9:48 a.m.