Hi Josh,

Almost on windows (sorry!) I start a grass session under MSYS (that emulate
a unix like environment), and from the "shell" I start R (with something
like /c/Progra~2/R/R-2.9.0/bin/Rgui.exe& ). After, on R, I load spgrass6
package, which will allow the communication between your R session and your
GRASS session/mapset.

After that you can run your GRASS commands using, for exemple, the system()
function of R.
Of course Roger Bivand it the Bible on this regarding :-)

Bests

milton

On Thu, Jul 9, 2009 at 4:44 PM, Josh London <josh.london@noaa.gov> wrote:

> Thanks for the suggestions so far regarding the use of GRASS or SAGA.
>
> We have considered those options but SAGA doesn't appear available for
> MacOS. My understanding is that spgrass6 is more for accessing R
> code/functions from within GRASS vs accessing GRASS functions from within R.
> We have all our other analysis coded up in R, and just need these functions
> to do one part of a bigger process. Maybe I'm misunderstanding how to use R
> and GRASS together. I'll do some further research.
>
> Thanks again
> Josh
>
>
> Josh London wrote:
>
>> Hello
>>
>> We are looking to mimic, in R, the slope (max magnitude difference between
>> a cell and its neighbors) and aspect (direction of maximum magnitude
>> difference) functions found in ESRI's Spatial Analyst package. We were just
>> about to code up the slope function but thought I would make sure we weren't
>> re-inventing any wheels already out there.
>>
>> Thanks
>> Josh
>>
>>
> --
> Josh M. London, PhD
>
> Wildlife Biologist
> Polar Ecosystem Program
> National Marine Mammal Lab
> Alaska Fisheries Science Center, NOAA Fisheries
> Seattle, WA
>
> The contents of this message are mine personally and do not
> necessarily reflect any position of the Government or the
> National Oceanic and Atmospheric Administration.
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo@stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>

	[[alternative HTML version deleted]]

