[R] Error loading workspaces after upgrade

Duncan Murdoch murdoch.duncan at gmail.com
Fri Apr 12 21:16:11 CEST 2013


On 12/04/2013 7:14 AM, Tamas Barjak wrote:
> Dear Members,
> I upgraded R from 2.15.3 to 3.0.0 (binary) on my WinXP and now I can't
> load my workspaces. The error message is:
>
> "Error: requested primitive type is not consistent with cached value
> During startup - Warning message:
> unable to restore saved data in .RData"
>
> Any idea to fix that?

Tamas sent me a copy of the bad file, and I've got a workaround:

The problem is an object called .SavedPlots.  It was produced by the 
Windows graphics device when it was recording the history.  It can't be 
loaded into R 3.0.0, because some of the internal organization of things 
has changed.

The workaround is to restart 2.15.3, load the workspace, then

rm(.SavedPlots)

and save the workspace.  After that things should be fine.

I'll try to get something in place in R-patched so that this doesn't 
cause the whole .RData load to fail.

Duncan Murdoch



More information about the R-help mailing list