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 <- 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 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