Skip to content
Prev 11722 / 29559 Next

readRAST6() in {spgrass6}

On Tue, 17 May 2011, Sam Prentice wrote:

            
Fortunately, you have now given some useful information, suggesting that 
you have not understood how to use the interface.

I do not have your location, so cannot check. It appears that your 
workflow is highly non-standard - which you have not made clear 
previously. If you are using spgrass6 to interface R with an existing 
GRASS location - which seems to be the case, you should not use 
initGRASS(), and should not use the PERMANENT mapset. The initGRASS() 
function is for creating one-time, throwaway GRASS locations to use GRASS 
modules from R when no GISDBASE or LOCATION is required. Under Linux, I 
cannot reproduce this problem, in addition you seem to be using a Windows 
server OS, to which I have no access.

Start GRASS under Windows from the MSYS/GRASS icon, selecting the location 
and mapset (not PERMANENT) in the usual way for interactive use. Then 
start R from the MSYS console prompt - perhaps other possibilities exist 
for starting R within GRASS for the Windows native build of 6.4.1. R will 
then be "inside" the GRASS session defined by the GRASS environmental 
variables and the GISRC file. I do not know if you can run non-interactive 
on Windows, it isn't a common situation. If you can start GRASS from a 
Windows console/terminal - interactively, next start R from the GRASS 
prompt - you will need to be very careful to set PATH variables. Windows 
by definition is supposed to be run interactively, as its name suggests.

Finally, this is not the correct list for detailed R/GRASS questions - you 
are asking about things which are very specific. Use this list instead:

http://lists.osgeo.org/mailman/listinfo/grass-stats

Roger