rbchan / unmarked

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

Move methods back to imports #231

Closed kenkellner closed 1 year ago

kenkellner commented 2 years ago

Need to patch a bug in MuMIn first or this will cause check errors for DiversityOccupancy

In MuMIn init.R:

do.call(if(s4) "setMethod" else "registerS3method", list(funname, classname, fun),
                       envir = envir)

should be

do.call(if(s4) methods::setMethod else "registerS3method", list(funname, classname, fun),
                       envir = envir)
kenkellner commented 2 years ago

MuMIn maintainer has agreed to change this.

kenkellner commented 1 year ago

I believe this is now fixed in CRAN MuMIn - need to test. https://github.com/cran/MuMIn/blob/1895b1776e1c50bdf34cff2d1b8413621bad7261/R/init.R#L13