Saving and loading R6 class object in r

215 Views Asked by At

I am trying to save an R6 class to disk and load it. The R6 class object is from the SBCK package in R. So, dOTC$new() creates an instance of the R6 class and the dOTC$fit() fits the model. Now I want to save the fitted model and load it back at a later time. How do I do that?

When I save the object using saveRDS and load it back I get 'Object containing active binding' and not R6 class object.

0

There are 0 best solutions below