<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="NO-BOK" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Hi Jim,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Although this does not solve you pipe issue (you might need to use pipe or fifo (run: help(pipe) in R for more info) :<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">If you just want to create a map with one point you could also use “v.edit» in non interactive mode (I guess), meaning,
 create a map and add a point.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Or you write your coordinates to a temporary file, which you can read in v.in.ascii<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Cheers<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Stefan<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> grass-user [mailto:grass-user-bounces@lists.osgeo.org]
<b>On Behalf Of </b>Veronica Andreo<br>
<b>Sent:</b> 28. april 2016 19:38<br>
<b>To:</b> James Maas (MED) <j.maas@uea.ac.uk><br>
<b>Cc:</b> grass-user <grass-user@lists.osgeo.org><br>
<b>Subject:</b> Re: [GRASS-user] rgrass7 syntax for passing a command<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US">Hello Jim, <o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">Maybe you should write to grass-stats mailing list, too. Perhaps someone there can provide useful insights/suggestions for your case<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="NO-NYN">Best, <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="NO-NYN">Vero <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="NO-NYN"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span lang="NO-NYN">2016-04-28 12:53 GMT-03:00 Jim Maas <</span><a href="mailto:j.maas@uea.ac.uk" target="_blank"><span lang="NO-NYN">j.maas@uea.ac.uk</span></a><span lang="NO-NYN">>:<o:p></o:p></span></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt">
<p class="MsoNormal"><span lang="EN-US">Using GRASS 7.0.3 on Ubuntu Linux,<br>
<br>
I'm attempting to recreate the example of r.stream.distance shown at<br>
</span><a href="https://grass.osgeo.org/grass70/manuals/addons/r.stream.distance.html" target="_blank"><span lang="EN-US">https://grass.osgeo.org/grass70/manuals/addons/r.stream.distance.html</span></a><span lang="EN-US"><br>
<br>
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 ?<br>
<br>
The original code for GRASS command line in the example is<br>
<br>
# Create outlet<br>
echo "636645,218835" | v.in.ascii -n input=- output=outlet separator=","<br>
<br>
<br>
I've tried lots of combinations of both system() and execGRASS() including this<br>
<br>
system(message ("327500.00,523896.55") | "v.in.ascii", input="-", output="outlet", separator=",", flags=c("n", "overwrite"))<br>
<br>
<br>
<br>
<br>
but have been unsuccessful.<br>
<br>
Any suggestions?<br>
<br>
Thanks, J<span style="color:#888888"><br>
<br>
-- <br>
Dr. Jim Maas<br>
Norwich Medical School<br>
<br>
_______________________________________________<br>
grass-user mailing list<br>
</span></span><a href="mailto:grass-user@lists.osgeo.org" target="_blank"><span lang="EN-US">grass-user@lists.osgeo.org</span></a><span lang="EN-US" style="color:#888888"><br>
</span><a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank"><span lang="EN-US">http://lists.osgeo.org/mailman/listinfo/grass-user</span></a><span lang="EN-US"><o:p></o:p></span></p>
</blockquote>
</div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
</div>
</div>
</body>
</html>