[GRASS-user] rgrass7 syntax for passing a command
Veronica Andreo
veroandreo at gmail.com
Thu Apr 28 10:37:53 PDT 2016
Hello Jim,
Maybe you should write to grass-stats mailing list, too. Perhaps someone
there can provide useful insights/suggestions for your case
Best,
Vero
2016-04-28 12:53 GMT-03:00 Jim Maas <j.maas at uea.ac.uk>:
> Using GRASS 7.0.3 on Ubuntu Linux,
>
> I'm attempting to recreate the example of r.stream.distance shown at
> https://grass.osgeo.org/grass70/manuals/addons/r.stream.distance.html
>
> by passing these comands to GRASS from within an R session. I can't
> figure out the correct syntax to pass this command to the system and also
> GRASS, any suggestions ?
>
> The original code for GRASS command line in the example is
>
> # Create outlet
> echo "636645,218835" | v.in.ascii -n input=- output=outlet separator=","
>
>
> I've tried lots of combinations of both system() and execGRASS() including
> this
>
> system(message ("327500.00,523896.55") | "v.in.ascii", input="-",
> output="outlet", separator=",", flags=c("n", "overwrite"))
>
>
>
>
> but have been unsuccessful.
>
> Any suggestions?
>
> Thanks, J
>
> --
> Dr. Jim Maas
> Norwich Medical School
>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20160428/bceafa19/attachment.html>
More information about the grass-user
mailing list