Hi<br><br>Sorry for crossposting, but I think this can be of interest for GRASS and R users.<br><br>I am planning to write a package to make the use of GRASS from R easier. The idea is to wrap the system call to execute the GRASS command into an R command of the same name. <br>
e.g:<br>r.to.vect &lt;- function(..., intern=TRUE, ignore.stderr=FALSE)<br>&nbsp; {<br>&nbsp;&nbsp;&nbsp; comm &lt;- paste( &quot;r.to.vect &quot;, ..., sep=&quot;&quot; )<br>&nbsp;&nbsp;&nbsp; print(comm)<br>&nbsp;&nbsp;&nbsp; system( comm, intern=intern, ignore.stderr=ignore.stderr )<br>
&nbsp; }<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 more usefull?<br>2) Is there a way to obtain easily all commands from GRASS and the parameters possible and required?<br>
<br>Any ideas and comments welcome,<br><br>Rainer<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