pbs-assess / sdmTMB

:earth_americas: An R package for spatial and spatiotemporal GLMMs with TMB
https://pbs-assess.github.io/sdmTMB/
186 stars 26 forks source link

Check for factor random intercept columns in newdata and add tests, fixes #278 #280

Closed sebpardo closed 10 months ago

sebpardo commented 10 months ago

I took the long way around but in the end it seems it was a pretty straightforward fix 😸

seananderson commented 10 months ago

Thanks! In the unit test, can you set spatial = "off" and spatiotemporal = "off" (or don't specify time) and skip the mesh creation just for speed? The unit tests add up.