Re: [Rd] Formal methods are not loaded from NAMESPACE in reloadedworkspace image

2006-11-04 Thread John Chambers
This turned out to be nastier than expected, so it's good you pointed it out. The problem is not the serialized objects themselves, but the restoration of the namespace, for package urca in your example. Because the methods package had not been attached when the user data was restored, the me

Re: [Rd] Formal methods are not loaded from NAMESPACE in reloadedworkspace image

2006-11-03 Thread Pfaff, Bernhard Dr.
Dear John, Dear Seth, many (a thousands) thanks for your clarification and highlighting of the problem. >It's not a simple serialization issue, but related to the initial >computations when a saved image is reloaded at the start of a session, >so the implication is less general than you imply.

Re: [Rd] Formal methods are not loaded from NAMESPACE in reloadedworkspace image

2006-11-03 Thread John Chambers
It's not a simple serialization issue, but related to the initial computations when a saved image is reloaded at the start of a session, so the implication is less general than you imply. If you move the saved image to another file, say "savedImage", then: > load("savedImage") > library(urca)

Re: [Rd] Formal methods are not loaded from NAMESPACE in reloadedworkspace image

2006-11-03 Thread Seth Falcon
John Chambers <[EMAIL PROTECTED]> writes: > I haven't had a chance to verify these exact examples, but the likely > explanation is that loading the workspace does not cache the saved > methods. Assuming this is indeed what's happening, the workaround is to > cache them "manually" by the call:

Re: [Rd] Formal methods are not loaded from NAMESPACE in reloadedworkspace image

2006-11-03 Thread John Chambers
I haven't had a chance to verify these exact examples, but the likely explanation is that loading the workspace does not cache the saved methods. Assuming this is indeed what's happening, the workaround is to cache them "manually" by the call: cacheMetaData(.GlobalEnv) (after attaching the

Re: [Rd] Formal methods are not loaded from NAMESPACE in reloadedworkspace image

2006-11-03 Thread Pfaff, Bernhard Dr.
Dear R-Devel subscriber, as a follow up to my yesterday's email: I tested an analogous example with the S4-package "flexclust" by executing the following code: library(flexclust) example(cclust) cl After saving the work space and starting a new R process with the restored work space, the same be