Re: [R] graphics history

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

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.

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
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 https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive