[edit: escaped code]
Hi,
I am trying to save exposed function with the following code:
fun <- cmdstan_model(paste0("fun.stan"), quiet = FALSE)
fun$expose_functions()
fsave <- fun$functions$foo
saveRDS(fsave, file = "foo.RDS")
rm(fsave)
However
readRDS("foo.RDS")
produces
.Call(<pointer: (nil) >,...)
What I am doing wrong?
Many thanks for any insight.