miguel-porto / SiMRiv

Individual-based simulation of multistate movements in rivers, heterogeneous and homogeneous spaces incorporating local landscape bias in R
GNU General Public License v3.0
15 stars 4 forks source link

Error in documentation of adjustModel #9

Closed rpatin closed 5 years ago

rpatin commented 5 years ago

The example in adjustModel help seems broken. The line sol <- adjustModel(real.data, species.model, resol = 20, nbins.hist = c(3, 3), step.hist.log = TRUE) is not working and give the following error :

Error in if (nbins.hist[3] > 0) { : missing value where TRUE/FALSE needed

It works if we add a third value to nbins.hist arguments as follows: sol <- adjustModel(real.data, species.model, resol = 20, nbins.hist = c(3, 3, 3), step.hist.log = TRUE)