[R] graphics history

Mike Prager mike.prager at noaa.gov
Mon Apr 21 21:44:19 CEST 2008


Duncan Murdoch <murdoch at stats.uwo.ca> 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:

graphics.off()
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.



More information about the R-help mailing list