[ESS] Avoiding printing large R objects
andrewr at uidaho.edu
Mon Nov 22 07:52:27 CET 2004
I often do this also: usually when I least want to. It's very
frustrating. A neat workaround would be very welcome.
On Mon, Nov 22, 2004 at 07:39:46AM +0100, A.J. Rossini wrote:
> 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.
> 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
> A.J. Rossini
> blindglobe at gmail.com
> ESS-help at stat.math.ethz.ch mailing list
Andrew Robinson Ph: 208 885 7115
Department of Forest Resources Fa: 208 885 6226
University of Idaho E : andrewr at uidaho.edu
PO Box 441133 W : http://www.uidaho.edu/~andrewr
Moscow ID 83843 Or: http://www.biometrics.uidaho.edu
No statement above necessarily represents my employer's opinion.
More information about the ESS-help