# NOT RUN {
# path to GRASS
if(.Platform$OS.type == "windows"){
  gisbase = "c:/Program Files/GRASS GIS 7.6"
  } else {
  gisbase = "/usr/lib/grass78/"
  }
# path to the dem   
dem_path <- system.file("extdata", "nc", "elev_ned_30m.tif", package = "openSTARS")
setup_grass_environment(dem = dem_path, 
                        gisBase = gisbase, 
                        location = "nc_example_location",
                        override = TRUE)
gmeta()
# }
Run the code above in your browser using DataLab