[ESS] Avoiding printing large R objects
A.J. Rossini
blindglobe at gmail.com
Mon Nov 22 07:39:46 CET 2004
I know exactly what you mean. About once a month I dump small 10k
matrices into the buffer.
What I've thought about doing is having a flag (on by default) that
would truncate output after 1k characters. (i.e. approx 10 lines).
But you'd have to specifically turn it off to get large output.
Possibly via a keyboard shortcut toggle or a toolbar/menu item.
Not sure about timelines for doing it, though.
best,
-tony
On Sun, 21 Nov 2004 20:45:45 -0600 (CST), Dan Davison
<davison at uchicago.edu> wrote:
> The way I most frequently cause an undesired termination of my emacs/ESS/R
> session is by accidentally printing a very big object. ESS seems to get
> quite unhappy, presumably trying to keep up with the colour highlighting
> etc. I usually kill the processes (R and xemacs) manually. I suppose I
> could alter R code for print method functions so that they refuse to print
> oversized things (though I'm not sure how I'd measure size), or have
> .Rprofile always keep an appropriate personal version of print() in my
> global environment (or get better at remembering to use invisible() and
> str()), but is there a standard ESS solution to this, or could someone
> propose a better one?
>
> Thanks,
>
> Dan
>
> ESS 5.2.3 in xemacs in debian (testing) linux 2.6.6
>
> in R:
> > version
> _
> platform i386-pc-linux-gnu
> arch i386
> os linux-gnu
> system i386, linux-gnu
> status
> major 2
> minor 0.0
> year 2004
> month 10
> day 04
> language R
>
> ______________________________________________
> ESS-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
>
--
best,
-tony
---
A.J. Rossini
blindglobe at gmail.com
More information about the ESS-help
mailing list