[GRASS-dev] Plan to build Package to use GRASS from R

Rainer M Krug r.m.krug at gmail.com
Wed Feb 27 08:09:33 EST 2008


Hi

Sorry for crossposting, but I think this can be of interest for GRASS and R
users.

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.
e.g:
r.to.vect <- function(..., intern=TRUE, ignore.stderr=FALSE)
  {
    comm <- paste( "r.to.vect ", ..., sep="" )
    print(comm)
    system( comm, intern=intern, ignore.stderr=ignore.stderr )
  }

My questions are:

1) Is this a good way of doing it, or is giving a named list to the function
more usefull?
2) Is there a way to obtain easily all commands from GRASS and the
parameters possible and required?

Any ideas and comments welcome,

Rainer


-- 
Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation Biology (UCT)

Plant Conservation Unit Department of Botany
University of Cape Town
Rondebosch 7701
South Africa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-dev/attachments/20080227/27e7b0ae/attachment.html


More information about the grass-dev mailing list