<div dir="ltr">Thanks Micha, Problem solved!<div><br></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=63139964-8dbb-4237-81a7-3b8d9cdcb396"><font color="#ffffff" size="1">ᐧ</font></div><br><div class="gmail_quote"><div dir="ltr">On Sun, Oct 21, 2018 at 1:03 AM Micha Silver <<a href="mailto:tsvibar@gmail.com">tsvibar@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="direction:ltr" bgcolor="#FFFFFF" text="#000000">
<br>
<div class="m_-5069830249356820907moz-cite-prefix">On 10/21/18 7:20 AM, Mehrdad Varedi
wrote:<br>
</div>
<blockquote type="cite">
<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">
<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="m_-5069830249356820907gmail_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"><font color="#ffffff" size="1">ᐧ</font></div>
<br>
<fieldset class="m_-5069830249356820907mimeAttachmentHeader"></fieldset>
<pre class="m_-5069830249356820907moz-quote-pre">_______________________________________________
grass-user mailing list
<a class="m_-5069830249356820907moz-txt-link-abbreviated" href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a>
<a class="m_-5069830249356820907moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">https://lists.osgeo.org/mailman/listinfo/grass-user</a></pre>
</blockquote>
<pre class="m_-5069830249356820907moz-signature" cols="72">--
Micha Silver
Ben Gurion Univ.
Sde Boker, Remote Sensing Lab
cell: +972-523-665918</pre>
</div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Mehrdad Varedi</div>