Hi!
The following works:
>
doGRASS("r.grow.distance",flags=c("overwrite"),parameters=list(distance="dummyd",input="dummy"))
[1] "r.grow.distance --overwrite distance=dummyd input=dummy"
But using "o" instead of "overwrite" does not
>
doGRASS("r.grow.distance",flags=c("o"),parameters=list(distance="dummyd",input="dummy"))
Error in doGRASS("r.grow.distance", flags = c("o"), parameters = list(distance =
"dummyd", :
Invalid flag value: o
despite the fact that the grass manual states:
> r.grow.distance --help
...(stuff deleted)
Usage:
r.grow.distance input=name [distance=name] [value=name]
[metric=string] [--overwrite] [--verbose] [--quiet]
Flags:
--o Allow output files to overwrite existing files
--v Verbose module output
--q Quiet module output
...(stuff deleted)
Could it be possible that execGRASS accept both forms for consistency with the
grass command? If this is not possible or appropriate, could a note be added to
the execGRASS manual page?
Thanks
Agus
_______________________________________________
R-sig-Geo mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-geo