# Will only run if GRASS is running
# You should load rdwplus and initialise GRASS with initGRASS
if(check_running()){
# Load data set
dem <- system.file("extdata", "dem.tif", package = "rdwplus")
# Set environment
set_envir(dem)
}
Run the code above in your browser using DataLab