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.