nCompiler
nCompiler copied to clipboard
unserialize error
Not something to address now, as @perrydv indicated he didn't expect serialization to be fully working now, but I'll note that I try to unserialize outside of a testthat context (e.g., using the situation in "Basic serialization works (via nCompile(package=TRUE), with full interface, for single or multiple objects, in current or new session)", I get this:
> serialized_obj <- nSerialize(obj)
making new shared_ptr_holder_base
***adding extptr 0x6049a8cc74b0 to serialization_mgr
comparing 0x6049a8cc74b0 to 0x6049a8cc74b0 1
found at ID = 0
clearing serialization_mgr objects
> save(serialized_obj, file='/tmp/tmp.Rda')
> library(nCompiler)
> load('/tmp/tmp.Rda')
> restored_obj <- nUnserialize(serialized_obj)
Error in nUnserialize(serialized_obj) :
Namespace TEMPPKG33efb418d4d726 was not already loaded and couldn't be found and loaded.