[ESS] Problem with "Shift+Enter to do Everything"

Benjamin Hofner Benjamin.Hofner at imbe.med.uni-erlangen.de
Fri Mar 12 17:04:24 CET 2010


Dear all,

I'm using ess with "Shift+Enter to do Everything" as described in the 
emacswiki (http://www.emacswiki.org/emacs/EmacsSpeaksStatistics#toc2). 
Now my problem:
If I start a new ESS buffer (some_file.R) and hit Shift+Enter to send 
some code, a new iESS buffer starts (as intended) but then I get the error
 > >
Error: Unexpected '>' in ">"

and the code I intended to send is not sourced to R. The next time I hit 
Shift+Enter everything works fine and the code is sourced and evaluated 
in R.

I'm using Emacs 23 on Ubuntu Karmic with ESS Version 5.8 and
R version 2.10.1. In older versions (using Emacs 22 and older Versions 
of both Ubuntu and ESS) everthing went fine and as intended.

The error seems to occur in

   (defun my-ess-eval ()
     (interactive)
     (my-ess-start-R)
     (if (and transient-mark-mode mark-active)
	(call-interactively 'ess-eval-region)
       (call-interactively 'ess-eval-line-and-step)))

after (!) the call to (my-ess-start-R). If I do not call 
'ess-eval-region or 'ess-eval-line-and-step immediately after starting R 
I don't get the error.

Can anyone reproduce my problem and is there a solution? I really like 
the handy feature to start R by sending the first line of code...

Thanks for any help
   Benjamin



More information about the ESS-help mailing list