Currently, in places like parallel_do, parallel_bs, parallel_sim, when there are errors we try to reload the dataset. This is both cumbersome (we need capture error, load dta, then delete temporary variables) and can cause small errors (I remember that depending on the error, we'd drop the sortedby). I think we should make use of the preserve as this will do the recovery automatically. I think once we've put together the results from the children we can cancel the preserved data with restore, not
Currently, in places like
parallel_do
,parallel_bs
,parallel_sim
, when there are errors we try to reload the dataset. This is both cumbersome (we need capture error, load dta, then delete temporary variables) and can cause small errors (I remember that depending on the error, we'd drop the sortedby). I think we should make use of thepreserve
as this will do the recovery automatically. I think once we've put together the results from the children we can cancel the preserved data withrestore, not