Skip to content
Prev 20220 / 63421 Next

type converters not being saved to workspace

Well, you  may be right, but my experiments certainly suggested 
otherwise (below).

But my main point is that we should look for a better approach, and I 
think we agree there.
Prof Brian Ripley wrote:

            
Perhaps.  But then why is it that if I put some trace printing in the 
.First.lib of methods, that printing comes out before the message 
"Previously saved  ...."?
I'm not disputing that: the methods initialization did not call 
cacheMetaData for the methods package itself--it was because the fix I 
implemented to explicitly cache the generics in methods did NOT work 
that I inferred the point about the ordering.  (Some printout is below, 
but of course I'm not asserting that the fix might not have a different 
problem in it.)

--------------------------
 enterprise:~/testR [160]> R

R : Copyright 2006, The R Foundation for Statistical Computing
Version 2.4.0 Under development (unstable) (2006-04-10 r37703)
ISBN 3-900051-07-0

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.

cacheMetaData called for methods namespace
[Previously saved workspace restored]

R> names(getMethods("coerce")@methods)
[1] "ANY"      "function"
-----------------------------------
The methods from .GlobalEnv are not found until a second cacheMetaData 
is done.