OHDSI / Andromeda

AsynchroNous Disk-based Representation of MassivE DAta: An R package aimed at replacing ff for storing large data objects.
https://ohdsi.github.io/Andromeda/
11 stars 9 forks source link

"Error: No method asJSON S3 class ..." when Andromeda object has attributes of class #54

Open schuemie opened 1 year ago

schuemie commented 1 year ago

I like that Andromeda saves the attributes as JSON, as that will allow the same object to be used in Python. But right now it is very picky, and will throw an error if any of the attributes contains an S3 object.

Recommend using force = TRUE when calling write_json to avoid annoying errors.

schuemie commented 1 year ago

Yikes. This also converts lists to tables. All of that is solved in ParallelLogger's saveSettingsToJson(). I recommend using that.