[ESS] Multi-line commands and comint-previous-prompt (from the menu Backward Output Group)
Vitalie Spinu
spinuvit at gmail.com
Sat Dec 13 08:50:29 CET 2014
You have to position your cursor at the end of the expression. Only the
code preceding the prompt is executed.
It's better to use M-p or comint-previous-matching-input-from-input to
recall previous command at the prompt directly.
Vitalie
>>> Manuel Morales on Thu, 11 Dec 2014 21:22:51 -0500 wrote:
> I'm using ESS 14.9 installed from Melpa.
> If I enter the following multi-line expression:
> a <-
> c(1:10)
> I can get back to it using C-c C-p and then re-run it using ENTER. That
> gives the following output:
>> a <-
> c(1:10)
> a <-
> + c(1:10)
> If I now type C-c C-p and try to re-run using ENTER I get only the first
> line:
>> a <-
> Is there a way to change this behavior?
> For more background I'm trying to write a function that will allow me to
> recall commands from the history that have been entered from either the
> R-buffer or a script file and the issue above is causing problems. If
> interested see link below for the function:
> https://stackoverflow.com/questions/27307757/ess-retrieving-command-history-from-commands-entered-in-essr-inferior-mode-or/27412677#27412677
> ______________________________________________
> ESS-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
More information about the ESS-help
mailing list