<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Dear all:<br></span></div><div><span><br></span></div><div><span>I emailed around and others have the same issue of the freezing GRASS console and not being able to run R within GRASS, and many resort to doing GRASS commands within R using </span>execGRASS()<span>. </span></div><div><br><span></span></div><div><span>I am going to keep searching around for a fix, as I still cannot run R within GRASS on XP. I am trying to figure this out for myself and other collaborators. <br></span></div><div><br><span></span></div><div><span>Cheers,</span></div><div><span>Laura<br></span></div><div><br></div> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr
size="1"> <b><span style="font-weight:bold;">From:</span></b> Laura S <les_ecol@yahoo.com><br> <b><span style="font-weight: bold;">To:</span></b> "grass-stats@lists.osgeo.org" <grass-stats@lists.osgeo.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Monday, April 23, 2012 2:34:40 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> [GRASS-stats] GRASS with R interface issues - running R within GRASS 6.4.2<br> </font> </div> <br><meta http-equiv="x-dns-prefetch-control" content="off"><div id="yiv785724315"><div><div style="color:#000;background-color:#fff;font-family:times new roman, new york, times, serif;font-size:12pt;"><div><span>Dear all:</span></div><div><br><span></span></div><div><span>Do you have any suggestions on this? Thank you.<br></span></div><div><span><br></span></div><div><span>I cannot type in the GRASS GUI with MSYS window and execute commands. It is
frozen, and when I open up another GRASS console and type R the console
says: "R is not recognizable as an internal or external command,
operable program or batch file." <br></span></div><div><br></div><div>I provide examples below. Roger has been helpful, but I am still unsure if I am missing something, or there is a bug. <br></div><div><br></div><div>I have found bugs in other programs, e.g., WinRhizo, but I am assuming GRASS is working fine. I have been looking for screenshot instructions to better understand my issue, so anyone knows of these posted somewhere, this would be helpful. <br><span></span><span></span></div><div><span><br></span></div><div><span>Laura<br></span></div><div><br></div><div>On Mon, 23 Apr 2012, Laura S wrote:<br><br>> Dear Roger and others:<br>> <br>> My apologies if I am not piecing everything together. I think I am almost there; I appreciate your patience.<br>> <br>> <br>> This is my current point of confusion, and what I am able to do so far:<br>> <br>>
I. My main point of confusion is that when I type the path into GRASS
MSYS, the R console window pops up, and I am unable to type more into
the GRASS console. I cannot type GRASS commands in R, so I am unsure
where I type the GRASS commands if GRASS console does not let me type
more, and the R console does not recognize R commands.<br><br>Why should
it? Simply minimise the R GUI to work in GRASS directly, using the
GRASS GUI or from the prompt in MSYS. I doubt very much whether saying
d.ask makes sense anyway, as the GRASS display GUI covers that.<br><br>It
is possible to write GRASS commands using execGRASS() from the R
console, but since you have had to ask, you will find it easier simply
to minimise R and use GRASS directly. Because R is within GRASS, it
"sees" the current status of the location.<br><br>Hope this clarifies - please change to one of the GRASS lists for further help.<br><br>Roger<br><br>> <br>> <br>> II. What I can do so far in more detail:<br>>
1. Within the GRASS 6.4.2RC2 with MSYS, I typed using tab
autocompletion: "C:/Program Files/R/R-2.14/bin/i386/Rgui.exe" which
causes the RGui to pop up as a second R window. Thus, I am not in GRASS
directly anymore I assume, but rather in the RGui. In this GUI, it says
the following when I type library(spgrass6): "GRASS GIS Interface loaded
with GRASS version GRASS 6.4.2RC2exported (2011) and location:
demolocation" gmeta6() gisdbase C:/Documents etc. <br>> <br>> If I try a GRASS command such as "d.ask" in the RGUI after loading spgrass:<br>> <br>> d.ask<br>> Error: object 'd.ask' not found<br>> <br>> <br>>
2. I can also get this to work in R directly: loc <-
initGRASS("C:/Program Files/Grass 6.4",home=tempdir()) gmeta6() **prints
gisdbase, etc.** <br>> <br>> d.ask<br>> Error: object 'd.ask' not found<br>> <br>> <br>> Thank you for your help,<br>> Laura <br>> </div></div></div></div><meta http-equiv="x-dns-prefetch-control" content="on"><br>_______________________________________________<br>grass-stats mailing list<br><a ymailto="mailto:grass-stats@lists.osgeo.org" href="mailto:grass-stats@lists.osgeo.org">grass-stats@lists.osgeo.org</a><br><a href="http://lists.osgeo.org/mailman/listinfo/grass-stats" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-stats</a><br><br><br> </div> </div> </div></body></html>