<div dir="ltr"><div><div>As I told you before, I use GRASS 7 that's why I can use wxPython GUI  and monitor (hence 'wx0').<br></div>In GRASS 6.4.3 I think that the name of the monitor are somewhat different.<br>
I'm not sure but I think you'll need something like this :<br><br></div>execGRASS("d.mon", start = "x0")<br><br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 2, 2013 at 8:59 AM, matthias lauber <span dir="ltr"><<a href="mailto:kamallauber@gmx.de" target="_blank">kamallauber@gmx.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:Verdana;font-size:12.0px"><div>
<div>Hey,</div>

<div> </div>

<div>first: Thanks for the quick answer! My OS would be windows 7 Enterprise, SP1.</div>

<div>It did however not work for me, because d.mon is not implemented in the GRASS Version 6.4.2 GUI,which I use, and when I try to start the command through R I get this:</div>

<div>
<pre style="font-family:'Lucida Console';font-size:10pt!important;outline-style:none;outline-width:initial;outline-color:initial;border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:none;border-width:initial;border-color:initial;white-space:pre-wrap!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:1.2">
<span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-left;font-style:normal;background-color:rgb(225,226,229);font-weight:normal;line-height:15px;border-collapse:separate;text-transform:none;font-size:13px;white-space:pre-wrap;font-family:'Lucida Console';word-spacing:0px"><div class="im">
<span style="white-space:pre-wrap;color:blue">> </span><span style="color:blue">execGRASS("d.mon", start = "wx0")
</span></div>FEHLER: no such monitor 'wx0'
FEHLER: Es gibt das Grafikfenster <wx0> nicht.
FEHLER: Es gibt das Grafikfenster <wx0> nicht.
Probleme beim Auswählen von wx0. Einmal versuche ich es noch...
<span style="color:rgb(88,92,246)">Warnmeldung:
</span><span style="color:rgb(88,92,246)">Ausführung von Kommando 'd.mon.exe start=wx0' ergab Status 1 </span></span></pre>
</div>

<div>
<div> </div>

<div>which kind of translates to:</div>

<div>ERROR: there is no graphic window <wx0>.</div>

<div>
<div>ERROR: there is no graphic window <wx0>.</div>
</div>

<div>Problems chosing wx0. I will try once more...</div>

<div>Warnin:</div>

<div>Execution of command<span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-left;font-style:normal;background-color:rgb(225,226,229);font-weight:normal;line-height:15px;border-collapse:separate;text-transform:none;font-size:13px;white-space:pre-wrap;font-family:'Lucida Console';word-spacing:0px"><span style="color:rgb(88,92,246)">'d.mon.exe start=wx0'</span></span>returned Status 1</div>


<div> </div>

<div> </div>

<div>Using the other commant anyway then gives:</div>

<div>
<pre style="font-family:'Lucida Console';font-size:10pt!important;outline-style:none;outline-width:initial;outline-color:initial;border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:none;border-width:initial;border-color:initial;white-space:pre-wrap!important;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:1.2">
<span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-left;font-style:normal;background-color:rgb(225,226,229);font-weight:normal;line-height:15px;border-collapse:separate;text-transform:none;font-size:13px;white-space:pre-wrap;font-family:'Lucida Console';word-spacing:0px"><div class="im">
<span style="white-space:pre-wrap;color:blue">> </span><span style="color:blue">execGRASS("d.vect", parameters=list(map="due"),intern=T)
</span></div>[1] "PNG: GRASS_TRUECOLOR status: TRUE" "PNG: collecting to file: map.png,"
[3] "GRASS_WIDTH=782, GRASS_HEIGHT=502"</span></pre>
</div>

<div>which is the same as before.</div>

<div> </div>

<div>I took the shape-files from here: <a href="http://www.ing.unitn.it/%7Egrass/docs/tutorial_62_en/htdocs/esercitazione/geoprocessing/node1.html" target="_blank">http://www.ing.unitn.it/~grass/docs/tutorial_62_en/htdocs/esercitazione/geoprocessing/node1.html</a></div>


<div>but it does not really matter since the vector map itself is not important... i simply want it to be added to the location manager...</div>

<div> </div>

<div>Is it good to send this reply to you only or should I, again, send it to the Mailing List in general? (my first question here..)</div>

<div> </div>

<div>Greets,</div>

<div>Matthias</div>

<div> </div>

<div name="quote" style="margin:10px 5px 5px 10px;padding:10px 0 10px 10px;border-left:2px solid #c3d9e5;word-wrap:break-word">
<div style="margin:0 0 10px 0"><b>Gesendet:</b> Dienstag, 02. April 2013 um 10:33 Uhr<br>
<b>Von:</b> "Ahmadou Dicko" <<a href="mailto:dicko.ahmadou@gmail.com" target="_blank">dicko.ahmadou@gmail.com</a>><br>
<b>An:</b> "matthias lauber" <<a href="mailto:kamallauber@gmx.de" target="_blank">kamallauber@gmx.de</a>><br>
<b>Betreff:</b> Re: [GRASS-user] R and GRASS</div><div><div class="h5">

<div name="quoted-content">
<div>
<div>
<div>
<div>
<div>
<div>Hi,<br>
 </div>
More info will be great for example. Which version of GRASS do you use and in which OS.</div>
Using GRASS 7, I proceed like this :<br>
 </div>
1 - launch GRASS on the appropriate location/mapset</div>
2 - launch R inside GRASS</div>
3-  in R do :

<div>
<div>
<div>
<div>require(spgrass6)</div>

<div>## open a window to plot first</div>

<div>execGRASS("d.mon", start = "wx0")<br>
execGRASS("d.vect", map="due")<br>
 </div>

<div>uname -a : Linux dickoa 3.2.0-4-amd64 #1 SMP Debian 3.2.41-2 x86_64 GNU/Linux</div>

<div>GRASS version : GRASS 7.0.svn (2013)<br>
R version : R version 3.0.0 RC (2013-03-30 r62448)<br>
packageVersion("spgrass6")<br>
[1] ‘0.7.15’<br>
 </div>

<div> </div>

<div>Hope this help</div>

<div> </div>
</div>
</div>
</div>
</div>

<div class="gmail_extra"> 
<div class="gmail_quote">On Tue, Apr 2, 2013 at 7:36 AM, matthias lauber <span><<a href="http://kamallauber@gmx.de" target="_blank">kamallauber@gmx.de</a>></span> wrote:

<blockquote class="gmail_quote" style="margin:0 0 0 0.8ex;border-left:1.0px rgb(204,204,204) solid;padding-left:1.0ex">
<div>
<div style="font-family:Verdana;font-size:12.0px">
<div>Hey folks,</div>

<div> </div>

<div>I am somewhat new to GRASS and I am trying to get GRASS to talk with R in the way i want it to.</div>

<div>I am using the GRASS Version 6.4.2 and R 2.15.3 with RStudio.</div>

<div> </div>

<div>My question is, how I can use execGRASS() from spgrass6 to do EXACTLY what GRASS would do?</div>

<div>When I try to simply display a vector-map like</div>

<div>library(spgarss6)</div>

<div>execGRASS("d.vect", parameters=list(map="due"),intern=T)</div>

<div> </div>

<div>it does not show add the vector map to my map-window but produces a .png-file... Any ideas?</div>

<div> </div>

<div>Thank you in advance and happy after-easter,</div>

<div>Matthias</div>
</div>
</div>
<br>
_______________________________________________<br>
grass-user mailing list<br>
<a href="http://grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
 </blockquote>
</div>
<br>
<br clear="all">
<br>
--<br>
Ahmadou H. DICKO<br>
Data scientist and applied economist<br>
PhD student in Climate change economics<br>
Faculty of economics and managment - Cheikh Anta Diop University<br>
West African Science Service Center on Climate Change and Adaptated Land Use (WASCAL)<br>
Center for Development Research (ZEF) - University of Bonn<br>
twitter : @dickoah<br>
github : github/dickoa<br>
tel : +221 33 827 55 16<br>
portable: +221 77 123 81 69</div>
</div>
</div></div></div>
</div>
</div></div></div>
</blockquote></div><br><br clear="all"><br>-- <br>Ahmadou H. DICKO<br>Data scientist and applied economist<br>PhD student in Climate change economics<br>Faculty of economics and managment - Cheikh Anta Diop University<br>
West African Science Service Center on Climate Change and Adaptated Land Use (WASCAL)<br>Center for Development Research (ZEF) - University of Bonn <br>twitter : @dickoah<br>github : github/dickoa<br>tel : +221 33 827 55 16<br>
portable: +221 77 123 81 69<br>
</div>