role-model / roleR

R package implementing the RoLE model
https://role-model.github.io/roleR
GNU General Public License v3.0
1 stars 2 forks source link

Loops need a guard #2

Closed rafelafrance closed 3 years ago

rafelafrance commented 3 years ago

roleSimPlay etc. need a guard against there being only one item in the return value. If B <- floor(nstep / nout) yields 1 then the loop is failing because it's iterating backwards.

ajrominger commented 3 years ago

hopefully fixed with https://github.com/role-model/roleR/commit/3382a18c47749c87a5d15840911a7f43a3b85bf1