updating method definitions in R6 object instance
问题 How can I update the method definition of an R6 class instance? S3 uses the current method defintion, as I would expect. With R5 (Reference Classes) I can use myInstance=myInstance$copy(). With R6 I tried myInstance = myInstance$clone() but myInstance$someMethod() still invokes the old code. I need this, when I load object instances from a dump created on a long-running process. I want to debug and change the code on an object state after a long-running computation. Therefore, I cannot just