[ESS] Pasted commands are not inserted in the history

Sebastien Vauban sva-news at mygooglest.com
Mon Aug 25 13:11:03 CEST 2014


Vitalie Spinu wrote:
> Sebastien Vauban on Fri, 22 Aug 2014 12:53:40 +0200 wrote:
>
>> Is this a bug?
>
> No this is a feature. From time to time we see new ESS users proposing
> this "feature".
>
> When you evaluate paragraphs or functions, you really don't want all
> those lines in the *R* history. It's would add a lot of noise. Once I
> tried it only on ess-eval-line-and-step and I quickly realized that it
> was doing more harm than it helped. So I didn't bother implementing it.

I would think (or have thought?) that it'd be interesting to get that
"historization" for single lines sent to iESS and/or for regions.

> The reason why new ESS users don't see how annoying that behavior might
> be is that they use R script and R repl for the same things. Once you
> got used to ESS you script evaluation and repl evaluation become
> complementary. That is, you will use script for massive, reproducible
> things, and repl from time to time for quick check or short algebraic
> computation. You will almost never run the same commands in script and
> repl.

When I realized I missed the commands in the history, it was because
I was debugging a buggy script. Then, I just sent a one-liner to iESS,
and tried to correct that line which I knew was buggy.

In such cases, I feel I miss the command from the history. And I have to
manually go back to the script to copy/paste it.

Best regards,
  Seb

-- 
Sebastien Vauban



More information about the ESS-help mailing list