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

Rodney Sparapani rsparapa at mcw.edu
Thu Mar 18 17:07:15 CET 2010

On 03/12/10 10:04 AM, Benjamin Hofner wrote:
> 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

Hi Benjamin:

The error you are getting is not just a Shift+Enter problem.
I get it all the time with Enter as well.  So, I suspect it
is not that easy to fix; although, you may be describing a
useful way of re-creating it so that it could be debugged.


More information about the ESS-help mailing list