Problem: no file locking when writing in parallel so things seem to get messed up and written in the wrong places when creating the spatiotemporal simulation summary output table. Potential solutions:
Write each line to separate files then recombine later (SLOW with loop but maybe use a bash script)
Don't output anything else and let foreach recombine with rbind(). This is what I had done but then would have to rerun models to get results for making figures of the abundance across networks.
Delay each iteration by a different amount to make less likely to write at exactly the same time (this is a hack that probably wouldn't work, definitely not consistently).
Problem: no file locking when writing in parallel so things seem to get messed up and written in the wrong places when creating the spatiotemporal simulation summary output table. Potential solutions:
foreach
recombine withrbind()
. This is what I had done but then would have to rerun models to get results for making figures of the abundance across networks.