windowsrgeospatialspatialgrass

Configuring R with GRASS GIS


I just started using GRASS GIS 7.0.0beta2. I want to use R in GRASS and vise versa. Following the instructions from here, when I bring the WinGRASS-windows console in front and type R for opening a R-session (command line mode) inside a GRASS-session, I get the following error:

sh.exe": R: command not found

How can I configure R and GRASS so that I can use R in GRASS and GRASS in R. I'm on Windows 7 with R 3.1.0 and GRASS GIS 7.0.0beta2.


Solution

  • I'm a Linux user, so I can't try it, but it seems to me that R bins directory is not in your PATH.

    To test it, open a command line (should be cmd.exe) and try

    R
    

    If the output is the same as above, then add R bin directory to PATH, so you can call R from whatever directory you want.

    Check one of the following links and apply it to the directory where R bins reside.

    HTH, let me know. Luca