rbchan / unmarked

R package for hierarchical models in ecological research
https://rbchan.github.io/unmarked/
36 stars 25 forks source link

gmultmix getP fails when there is only 1 site #243

Closed kenkellner closed 1 year ago

kenkellner commented 2 years ago

Due to R dropping dimensions, this line:

https://github.com/rbchan/unmarked/blob/2acf96a7b3feb55e8cc014ad13133fd610e89ff9/R/unmarkedFit.R#L2011

passes a vector instead of a matrix to piFun resulting in an error.