[GRASS-user] Spgrass6 and R using GRASS Bash Scripts

Milton Cezar Ribeiro miltinho.astronauta at gmail.com
Fri Apr 16 09:34:09 EDT 2010


Hi Gilbert,

There ist more than one way. I will tell you the way that works for me:
0. Be sure your Rgui.exe are in the windows path like
   C:\Program Files (x86)\R\R-2.9.0\bin
1. Start grass/MSYS (sorry, I am on windows).
2. Connect to you mapseet
3. inside MSYS shell type:
   Rgui.exe&
4. Inside R you can run your scripts like:
   #this is on R
   require(spgrass6)
   gmeta6()
   myMap=readRAST6(...)
   summary(myMap)
   system("g.list.exe rast")

-- But I know that the way I do are not updated :-)

cheers

milton



2010/4/16 Gilbert Ferrara <gilbertferrara1974 at gmail.com>

> Good Morning
>
> I need to do something similar to what Neteler/Mitasova do in their book
> with spgrass6 and R. Since I will have to perform this a couple of times I
> want to build a simple Script with input/output GUI. But I have never seen a
> GRASS Bash script that calls R and spgrass6. So my question is? Does anyone
> have/knows one? If not, I just need to send to the command line exacly the
> same commands? e.g. R , summary(data) )
>
> Thanks
> Gilbert
>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20100416/b7353187/attachment.html


More information about the grass-user mailing list