<br><br><div><span class="gmail_quote">On 28/02/2008, <b class="gmail_sendername">Roger Bivand</b> <<a href="mailto:Roger.Bivand@nhh.no">Roger.Bivand@nhh.no</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Wed, 27 Feb 2008, Rainer M Krug wrote:<br> <br> > Hi<br> ><br> > Sorry for crossposting, but I think this can be of interest for GRASS and R<br> > users.<br> <br> <br>Yes, please avoid cross-posting - the discussion ends up on many different<br>
lists and threading can break down if the threading implementation in mail<br> clients and archives doesn't like cross-posting.</blockquote><div><br>OK - I'll avoid it in the future and continue this thread on grass-dev. <br>
</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> The only complete thread I have found is on Nabble at:<br> <br> <a href="http://www.nabble.com/Plan-to-build-Package-to-use-GRASS-from-R-tt15712877.html#a15712877">http://www.nabble.com/Plan-to-build-Package-to-use-GRASS-from-R-tt15712877.html#a15712877</a><br>
<br> for the grass-dev list.<br> <br> In summary, the problems are mostly those of appropriately quoting shell<br> commands through system() across platforms. Those interested should follow<br> the discussion on grass-dev.<br>
<br> The correct lists could be either here, or the grass-stats list; could</blockquote><div><br>I think I will leave it at the grass-dev list, altohough it concerns
grass and R - it is more a devel issue then for the grass-stats list. </div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Rainer post a summary to both (hopefully in-thread) on conclusion?</blockquote>
<div><br>OK - I will do so as soon some ideas and further palns emerge.<br><br>If I have a working solution, would it be possible to include it into the spgrass6 package?<br><br>Thanks<br><br>Rainer<br> </div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Roger<br> <br><br> ><br> > I am planning to write a package to make the use of GRASS from R easier. The<br> > idea is to wrap the system call to execute the GRASS command into an R<br> > command of the same name.<br>
> e.g:<br> > r.to.vect <- function(..., intern=TRUE, ignore.stderr=FALSE)<br> > {<br> > comm <- paste( "r.to.vect ", ..., sep="" )<br> > print(comm)<br> > system( comm, intern=intern, ignore.stderr=ignore.stderr )<br>
> }<br> ><br> > My questions are:<br> ><br> > 1) Is this a good way of doing it, or is giving a named list to the function<br> > more usefull?<br> > 2) Is there a way to obtain easily all commands from GRASS and the<br>
> parameters possible and required?<br> ><br> > Any ideas and comments welcome,<br> ><br> > Rainer<br> ><br> ><br> ><br> <br> --<br> <br>Roger Bivand<br> Economic Geography Section, Department of Economics, Norwegian School of<br>
Economics and Business Administration, Helleveien 30, N-5045 Bergen,<br> Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43<br> e-mail: <a href="mailto:Roger.Bivand@nhh.no">Roger.Bivand@nhh.no</a><br> <br> </blockquote>
</div><br><br clear="all"><br>-- <br><br>-- <br>Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation Biology (UCT)<br><br>Plant Conservation Unit Department of Botany<br>University of Cape Town<br>Rondebosch 7701<br>South Africa