Since the ModvegeSite objects really contain all the information that was used when running them plus certain convenience functions, it might make sense to store them as rds instead of converting to txt, which has to be subsequently read back in order to inspect the results.
Instances where simulation results are stored should offer the option for binary storage.
~However, is this even possible with R6 classes?~ This is indeed possible.
Since the
ModvegeSite
objects really contain all the information that was used when running them plus certain convenience functions, it might make sense to store them asrds
instead of converting totxt
, which has to be subsequently read back in order to inspect the results.Instances where simulation results are stored should offer the option for binary storage.
~However, is this even possible with R6 classes?~ This is indeed possible.
Places to consider:
ModvegeSite$write_output()
.growR_run_loop()
.load_matching_data()
and friends.