Maybe need custom serialisation/de-serialisation support in order to send to new processes via mirai.
mirai::serial_config(
c("ClassDefinition", "ClassInstance"),
list(function(x) ???, function(x) ???),
list(function(x) ???, function(x) ???)
)
Not sure if this is possible yet though.