I think you have saved in your workspace an object whose environment is a namespace, probably mva, that is not available when .RData is loaded but is once the session is running. On Fri, 20 Jun 2003, G?ran Brostr?m wrote:> This happened to me with R-1.7.0, Linux RH9: > > ------------------------------------------------------------------ > > q() > Save workspace image? [y/n/c]: y > Warning messages: > 1: namespaces may not be available when loading > 2: names in persistent strings are currently ignored > > > gb at lasker:~/R/test$ R > > R : Copyright 2003, The R Development Core Team > Version 1.7.0 (2003-04-16) > > 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. > > R is a collaborative project with many contributors. > Type `contributors()' for more information. > > Type `demo()' for some demos, `help()' for on-line help, or > `help.start()' for a HTML browser interface to help. > Type `q()' to quit R. > > Error in get(x, envir, mode, inherits) : variable "biplot" was not found > Fatal error: unable to restore saved data in .RData > ------------------------------------------------------------ > (what is "biplot"??) > > But > > gb at lasker:~/R/test$ R --vanilla > > > load(".RData") > [1] ".Random.seed" ".Traceback" "f.PQL" "f.ml" "fit" > [6] "hd" "last.warning" "run1" "s.dat" "t2" > > > ------------------------------------------------------------ > > Seems to work. What is happening? > > G?ran > --- > G?ran Brostr?m tel: +46 90 786 5223 > Department of Statistics fax: +46 90 786 6614 > Ume? University http://www.stat.umu.se/egna/gb/ > SE-90187 Ume?, Sweden e-mail: gb at stat.umu.se > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help > >-- 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 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
This happened to me with R-1.7.0, Linux RH9: ------------------------------------------------------------------> q()Save workspace image? [y/n/c]: y Warning messages: 1: namespaces may not be available when loading 2: names in persistent strings are currently ignored gb at lasker:~/R/test$ R R : Copyright 2003, The R Development Core Team Version 1.7.0 (2003-04-16) 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. R is a collaborative project with many contributors. Type `contributors()' for more information. Type `demo()' for some demos, `help()' for on-line help, or `help.start()' for a HTML browser interface to help. Type `q()' to quit R. Error in get(x, envir, mode, inherits) : variable "biplot" was not found Fatal error: unable to restore saved data in .RData ------------------------------------------------------------ (what is "biplot"??) But gb at lasker:~/R/test$ R --vanilla> load(".RData")[1] ".Random.seed" ".Traceback" "f.PQL" "f.ml" "fit" [6] "hd" "last.warning" "run1" "s.dat" "t2">------------------------------------------------------------ Seems to work. What is happening? G?ran --- G?ran Brostr?m tel: +46 90 786 5223 Department of Statistics fax: +46 90 786 6614 Ume? University http://www.stat.umu.se/egna/gb/ SE-90187 Ume?, Sweden e-mail: gb at stat.umu.se
On Fri, 20 Jun 2003, G?ran Brostr?m wrote:> This happened to me with R-1.7.0, Linux RH9: > > ------------------------------------------------------------------ > > q() > Save workspace image? [y/n/c]: y > Warning messages: > 1: namespaces may not be available when loading > 2: names in persistent strings are currently ignoredThis happens when one of the variables in your workspace contains a reference to a name space, for eample as the environment of a function. The first warning is there because the workspace cannot be loaded into older R versions. THe second warning should probably be removed.> > gb at lasker:~/R/test$ R > > R : Copyright 2003, The R Development Core Team > Version 1.7.0 (2003-04-16) > > 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. > > R is a collaborative project with many contributors. > Type `contributors()' for more information. > > Type `demo()' for some demos, `help()' for on-line help, or > `help.start()' for a HTML browser interface to help. > Type `q()' to quit R. > > Error in get(x, envir, mode, inherits) : variable "biplot" was not found > Fatal error: unable to restore saved data in .RData > ------------------------------------------------------------ > (what is "biplot"??) >This I don't understand. Loading a workspace with a reference to mva or MASS (which imports biplot from mva) works fine for me, so there is something more complicated going on. Does a traceback() tell you anything? Otherwise, can you send me your .RData file and I will try to track this down. luke -- Luke Tierney University of Iowa Phone: 319-335-3386 Department of Statistics and Fax: 319-335-3017 Actuarial Science 241 Schaeffer Hall email: luke at stat.uiowa.edu Iowa City, IA 52242 WWW: http://www.stat.uiowa.edu
On Fri, 20 Jun 2003, Prof Brian Ripley wrote:> Might it help to note that the version of MASS which shipped with 1.7.0 > didn't get the import of biplot from mva right? I think this was what > happened with that version of VR.I upgraded to R-1.7.1 and now the old .RData file loads when I start R, so I guess that settles it? (I used 'glmmPQL' in MASS in that workspace.) Thanks, G?ran> On Fri, 20 Jun 2003, Luke Tierney wrote: > > > On Fri, 20 Jun 2003, G?ran Brostr?m wrote: > > > > > This happened to me with R-1.7.0, Linux RH9: > > > > > > ------------------------------------------------------------------ > > > > q() > > > Save workspace image? [y/n/c]: y > > > Warning messages: > > > 1: namespaces may not be available when loading > > > 2: names in persistent strings are currently ignored > > > > This happens when one of the variables in your workspace contains a > > reference to a name space, for eample as the environment of a > > function. The first warning is there because the workspace cannot be > > loaded into older R versions. THe second warning should probably be > > removed. > > > > > > > > gb at lasker:~/R/test$ R > > > > > > R : Copyright 2003, The R Development Core Team > > > Version 1.7.0 (2003-04-16) > > > > > > 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. > > > > > > R is a collaborative project with many contributors. > > > Type `contributors()' for more information. > > > > > > Type `demo()' for some demos, `help()' for on-line help, or > > > `help.start()' for a HTML browser interface to help. > > > Type `q()' to quit R. > > > > > > Error in get(x, envir, mode, inherits) : variable "biplot" was not found > > > Fatal error: unable to restore saved data in .RData > > > ------------------------------------------------------------ > > > (what is "biplot"??) > > > > > > > This I don't understand. Loading a workspace with a reference to mva > > or MASS (which imports biplot from mva) works fine for me, so there is > > something more complicated going on. Does a traceback() tell you > > anything? Otherwise, can you send me your .RData file and I will try > > to track this down. > > > > luke > > > > > >-- --- G?ran Brostr?m tel: +46 90 786 5223 Department of Statistics fax: +46 90 786 6614 Ume? University http://www.stat.umu.se/egna/gb/ SE-90187 Ume?, Sweden e-mail: gb at stat.umu.se