Re: [R] graphics history

From: Mike Prager <>
Date: Mon, 21 Apr 2008 15:44:19 -0400

Duncan Murdoch <> wrote:

> >> One thing I'd like to do, but didn't have time to implement before
> >> 2.7.0, is to have history set to some finite size, e.g. a default might
> >> be the last 3 or 10 plots. The problem with record=TRUE is that it
> >> keeps a record of all the plots, so memory use just increases and increases.
> >
> > Why not just startup another device with record=FALSE?
> I'd like to have recording always on, but I don't need an infinite
> history. But this isn't urgent enough to have prodded me into writing
> it before now.

A finite size would be nice. I've been using this code in scripts:
windows(record = TRUE)
.SavedPlots <- NULL

Not exactly the same thing, but it limits memory use.

Are there side effects that could bite me?

Mike Prager, NOAA, Beaufort, NC
* Opinions expressed are personal and not represented otherwise.
* Any use of tradenames does not constitute a NOAA endorsement.

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Mon 21 Apr 2008 - 20:14:52 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 21 Apr 2008 - 20:30:33 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive