GotelliLab / EcoSimR

Repository for EcoSimR, by Gotelli, N.J. , Hart E. M. and A.M. Ellison. 2014. EcoSimR 0.1.0
http://ecosimr.org
Other
29 stars 10 forks source link

Change algorithm and plugin structure #25

Closed emhart closed 9 years ago

emhart commented 9 years ago

Currently we use a very simple way to running the simulations, via a call to replicate(). However I don't think this is the right approach because it is very rigid. A better way to do it is to call algorithms and metrics via a do.call() set-up. This means we'll have to ditch the replicate() call and move to using a for loop. However it appears that a preallocated for loop is just as fast, see: http://stackoverflow.com/questions/13412312/replicate-verses-a-for-loop

The advantage of this is that it allows us to easily add new functionality as well as other users could add whatever functionality they want.