I have the following experience.

If I use, for example,
   tmp <-  recordPlot()
in a session, then immediately the saved plot replays successfully using
   replayPlot()
in the same session. But not in the next R session. See examples below,
copy/pasted from my shell window.

The first R session is brand new; no saved objects left over from a
previous session.

I also have the same experience with R 3.0.1 patched on a linux machine
(RHEL).


Is this a known or expected behavior?

Thanks
-Don


#### R session #1

mydir[42]% R

R version 3.0.1 Patched (2013-08-13 r63562) -- "Good Sport"
Copyright (C) 2013 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin10.8.0 (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> 
> x11()
> plot(1:2)
> tmp <- recordPlot()
> replayPlot(tmp)
> q()
Save workspace image? [y/n/c]: y




#### R session #2


mydir[43]% R

R version 3.0.1 Patched (2013-08-13 r63562) -- "Good Sport"
Copyright (C) 2013 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin10.8.0 (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

[Previously saved workspace restored]

> ls()
[1] "tmp"
> class(tmp)
[1] "recordedplot"
> x11()
> replayPlot(tmp)
Error: NULL value passed as symbol address
> 
> sessionInfo()
R version 3.0.1 Patched (2013-08-13 r63562)
Platform: x86_64-apple-darwin10.8.0 (64-bit)

locale:
[1] C

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base
> 



-- 
Don MacQueen

Lawrence Livermore National Laboratory
7000 East Ave., L-627
Livermore, CA 94550
925-423-1062

______________________________________________
R-help@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.

Reply via email to