The issue appears to be caused by the fact we are returning an R6 plotbin object, and R6 objects don't appear to serialize correctly. They may need som special plumbing in the class definition.
One option, since the embedded lm objects CAN be serialized by themselves:
Maybe we should simply serialize each LM into a separate json file? I DID verify that we can convert that serialized LM back into an actual lm object, and view the residual plots. Also a note about viewing residual plots: #1326
So test:
Since we continued to have problems with plotBin and fromJSON, I merged some new code here. This appears to successfully write all data to JSON and read it from JSON using arrays and regular expression.
An empty json object is created when using the following code (from lm_analysis_plots.R )
The issue appears to be caused by the fact we are returning an R6 plotbin object, and R6 objects don't appear to serialize correctly. They may need som special plumbing in the class definition.
One option, since the embedded
lm
objects CAN be serialized by themselves:Maybe we should simply serialize each LM into a separate json file? I DID verify that we can convert that serialized LM back into an actual lm object, and view the residual plots. Also a note about viewing residual plots: #1326 So test: