[R] graph history

Prof Brian Ripley ripley at stats.ox.ac.uk
Mon Feb 11 22:22:51 CET 2002


On Mon, 11 Feb 2002 apjaworski at mmm.com wrote:

> Hi everybody.
>
> I was just wondering if this is a bug or I am simply doing something wrong.
>
> Here is what happened:
>
> (1) I typed windows() to get the graph menu bar
> (2) I turned record on history menu
> (3) I created a couple of plots
> (4) I checked with PageUp and PageDown that I can scroll through them
> (5) I saved the history to a variable, say, hhh
> (6) I dumped hhh to a file called hhh.R

You can't do that.  The variable is session-specific.

> (7) I quit R and started a new session and sourced hhh.R.
> (8) I typed windows() and then from the history menu I clicked "Get from
> variable".  I entered hhh but got
>      "variable does not exist or does not contain any plots!"

You didn't tell us your R version.  This is something of a kludge,
especially in 1.4.x (it was nearly removed then).  Maybe one day ....

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list