<html style="direction: ltr;">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
</head>
<body bidimailui-charset-is-forced="true" style="direction: ltr;"
bgcolor="#FFFFFF" text="#000000">
<br>
<div class="moz-cite-prefix">On 10/21/18 7:20 AM, Mehrdad Varedi
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CA+F3BSC8aybLed9d0Cw2prb8+2h2krNdTZDCN4HimRvRQu8k3Q@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">I run Rgui in GRASS and tried to run a simple
command to see how GRASS works in R. I tried g.list
type=vect. the format I used was:
<div> doGRASS("g.list",
parameters=list(type="vect"))</div>
<div><br>
</div>
<div>The output was: >></div>
<div><br>
<div>
<div>
<div>GRASS command: g.list.exe type=rast </div>
<div> chr "g.list.exe type=vector"</div>
<div> - attr(*, "cmd")= chr "g.list.exe"</div>
</div>
<div><br>
</div>
<div>Why I don't get the results I get from running it
in GRASS. (like the following)</div>
<div>
<div><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
<p><br>
</p>
<p>Use execGRASS(...) instead.</p>
<p>The R command "doGRASS" does not return the output, just the
command name that you called. Whereas execGRASS does print the
command output. (Check ?doGRASS in R). You would use doGRASS in
cases where you are creating a new vector or raster. <br>
</p>
<p> <br>
</p>
<blockquote type="cite"
cite="mid:CA+F3BSC8aybLed9d0Cw2prb8+2h2krNdTZDCN4HimRvRQu8k3Q@mail.gmail.com">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div>
<div>
<div>
<div>POM</div>
<div>PsOnMain</div>
</div>
<div><br>
</div>
<div>Any idea?</div>
<div><br>
</div>
<div>Have a great one,</div>
<div><br>
</div>
<div>Mehrdad</div>
<div><br>
</div>
<div>.............</div>
<div dir="ltr" class="gmail_signature">Mehrdad Varedi</div>
</div>
</div>
</div>
</div>
</div>
<div hspace="streak-pt-mark" style="max-height:1px"><img alt=""
style="width:0px;max-height:0px;overflow:hidden"
src="https://mailfoogae.appspot.com/t?sender=admFyZWRpQGdtYWlsLmNvbQ%3D%3D&type=zerocontent&guid=f7ff6862-a756-43af-a7ee-d293c7d09f38"
moz-do-not-send="true"><font color="#ffffff" size="1">ᐧ</font></div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
grass-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/grass-user">https://lists.osgeo.org/mailman/listinfo/grass-user</a></pre>
</blockquote>
<pre class="moz-signature" cols="72">--
Micha Silver
Ben Gurion Univ.
Sde Boker, Remote Sensing Lab
cell: +972-523-665918</pre>
</body>
</html>