I am using the glmmTMB library to run mixed models, within a R markdown document. Any model that I run, I get these warnings:
'giveCsparse' has been deprecated; setting 'repr = "T"' for you'giveCsparse' has been deprecated; setting 'repr = "T"' for you'giveCsparse' has been deprecated; setting 'repr = "T"' for you
Then, if I run the code in the console, I get these warnings:
Warning messages:
1: In Matrix::sparseMatrix(dims = c(0, 0), i = integer(0), j = integer(0), :
'giveCsparse' has been deprecated; setting 'repr = "T"' for you
2: In Matrix::sparseMatrix(dims = c(0, 0), i = integer(0), j = integer(0), :
'giveCsparse' has been deprecated; setting 'repr = "T"' for you
3: In Matrix::sparseMatrix(dims = c(0, 0), i = integer(0), j = integer(0), :
'giveCsparse' has been deprecated; setting 'repr = "T"' for you
My code looks like this:
m1 <- glmmTMB(count~var1+var2+var3+(1|group), data = bd, family = "poisson")
I tried reinstalling TMB and glmmTMB with dependencies=TRUE
, but the message keeps appearing. Apparently it doesn't affect the model at all, but whatever tests or graphs I do, I keep getting warnings. Is it possible to fix this? Or do I just ignore it?
It's harmless. You can:
glmmTMB
(1.1.2 at present) from CRAN.suppressWarnings()
(at the possible cost of missing other relevant warnings!)or you could downgrade your version of Matrix
to an older version (using remotes::install_version()
or the snapshot
package)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With