Skip to content
Prev 20202 / 63421 Next

type converters not being saved to workspace

(diverted to r-devel)

The problem seems to be rather that loading of the saved image takes 
place _after_ the packages are attached.  So nothing that the methods 
package does in its initialization will see the relevant type converters 
or other methods objects.

More generally, loading into .GlobalEnv will never cause the equivalent 
of cacheMetaData(.GlobalEnv).

It would be possible to hack the C code in main/saveload.c to generate a 
call to cacheMetaData under the right circumstances, but is that the 
best solution? 

Intuitively, it's the objects containing the method/class definitions 
that should trigger actions when they are loaded (emulating what happens 
when the corresponding setMethod or setClass function call takes 
place).  I.e., a load method for these classes of objects.  Possible?

It might be better, now that we're past feature freeze, to leave this as 
a "design infelicity" for the upcoming release.
Prof Brian Ripley wrote: