[GRASS-user] GRASS in EMACS with ESS - how to send more than one line at a time

Adam Wilson adammichaelwilson2 at gmail.com
Thu Nov 12 09:45:45 EST 2009


I use GRASS and R within a EMACS-ESS environment, which works quite well
overall.  I can keep a script that uses both GRASS and R in a single script
file and bounce back and forth between them as I need for analysis (i.e.
"system("grass64 /media/Data/Work/grassdata/CFR/biomass")" to go to GRASS
from R, and "R" to go to R from GRASS).  When within a R environment, I can
send multiple lines from a buffer to the R proccess with a C-c C-r
keystroke, which works brilliantly.

But when I am in the GRASS environment, I am only able to send one line at a
time or it will hang until I hit C-g (which results in only the first line
of the region being sent).  I imagine that this is because ESS is waiting
for the standard R prompt ">" before sending the next line, but while in
GRASS the prompt is something more like "GRASS 6.4.0RC5
(CFR):/grassdata/map> " so ESS doesn't know that the previous command is
finished and just waits until I cancel it with C-g.   Anyone found a
solution to this problem?

Thanks,
Adam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20091112/fd696a7d/attachment.html


More information about the grass-user mailing list