easystats / performance

:muscle: Models' quality and performance metrics (R2, ICC, LOO, AIC, BF, ...)
https://easystats.github.io/performance/
GNU General Public License v3.0
1.03k stars 94 forks source link

glmmTMB version 1.1.3 #396

Closed mebrooks closed 2 years ago

mebrooks commented 2 years ago

I'm checking reverse dependencies for an upcoming release. The deadline is March 13th, but I would like to submit sooner if possible. The checks indicate a problem with the performance package (details below).

❯ checking examples ... ERROR
  Running examples in ‘performance-Ex.R’ failed
  The error most likely occurred in:

  > ### Name: r2_bayes
  > ### Title: Bayesian R2
  > ### Aliases: r2_bayes r2_posterior r2_posterior.brmsfit
  > ###   r2_posterior.stanreg r2_posterior.BFBayesFactor
  > 
  > ### ** Examples
  > 
  > library(performance)
  > if (require("rstanarm") && require("rstantools")) {
  +   model <- stan_glm(mpg ~ wt + cyl, data = mtcars, chains = 1, iter = 500, refresh = 0)
  +   r2_bayes(model)
  + 
  +   model <- stan_lmer(
  +     Petal.Length ~ Petal.Width + (1 | Species),
  +     data = iris,
  +     chains = 1,
  +     iter = 500,
  +     refresh = 0
  +   )
  +   r2_bayes(model)
  + }
  Loading required package: rstanarm
  Loading required package: Rcpp
  This is rstanarm version 2.21.1
  - See https://mc-stan.org/rstanarm/articles/priors for changes to default priors!
  - Default priors may change, so it's safest to specify priors, even if equivalent to the defaults.
  - For execution on a local, multicore CPU with excess RAM we recommend calling
    options(mc.cores = parallel::detectCores())
  Loading required package: rstantools
  This is rstantools version 2.1.1
  Warning: The largest R-hat is 1.05, indicating chains have not mixed.
  Running the chains for more iterations may help. See
  https://mc-stan.org/misc/warnings.html#r-hat
  Warning: Tail Effective Samples Size (ESS) is too low, indicating posterior variances and tail quantiles may be unreliable.
  Running the chains for more iterations may help. See
  https://mc-stan.org/misc/warnings.html#tail-ess
  [1] "Error in sampler$call_sampler(args_list[[i]]) : "
  [2] "  c++ exception (unknown reason)"                
  error occurred during calling the sampler; sampling not done
  Error in check_stanfit(stanfit) : 
    Invalid stanfit object produced please report bug
  Error in dimnamesGets(x, value) : 
    invalid dimnames given for “dgCMatrix” object
  Calls: stan_lmer ... colnames<- -> dimnames<- -> dimnames<- -> dimnamesGets
  Execution halted

1 error ✖ | 0 warnings ✔ | 0 notes ✔
strengejacke commented 2 years ago

I can't see right now how this is related to glmmTMB. I will check, too. The current master on GitHub is the version to be submitted?

mebrooks commented 2 years ago

Yes, the master branch of glmmTMB is the one we plan to submit. I'm still trying to reproduce a few elusive errors that only show up on either Windows or Linux, but that probably shouldn't affect the error in performance.

strengejacke commented 2 years ago

When you find the time, please relocate that repo one directory higher ;-) I always stumble upon this error when I try remotes::install_github("glmmTMB/glmmTMB").

strengejacke commented 2 years ago

Hm, can't reproduce.

library(performance)
if (require("rstanarm") && require("rstantools")) {
  model <- stan_glm(mpg ~ wt + cyl, data = mtcars, chains = 1, iter = 500, refresh = 0)
  r2_bayes(model)

  model <- stan_lmer(
    Petal.Length ~ Petal.Width + (1 | Species),
    data = iris,
    chains = 1,
    iter = 500,
    refresh = 0
  )
  r2_bayes(model)
}
#> Loading required package: rstanarm
#> Loading required package: Rcpp
#> This is rstanarm version 2.21.1
#> - See https://mc-stan.org/rstanarm/articles/priors for changes to default priors!
#> - Default priors may change, so it's safest to specify priors, even if equivalent to the defaults.
#> - For execution on a local, multicore CPU with excess RAM we recommend calling
#>   options(mc.cores = parallel::detectCores())
#> Loading required package: rstantools
#> This is rstantools version 2.1.1
#> Warning: Bulk Effective Samples Size (ESS) is too low, indicating posterior means and medians may be unreliable.
#> Running the chains for more iterations may help. See
#> https://mc-stan.org/misc/warnings.html#bulk-ess
#> Warning: The largest R-hat is 1.05, indicating chains have not mixed.
#> Running the chains for more iterations may help. See
#> https://mc-stan.org/misc/warnings.html#r-hat
#> Warning: Bulk Effective Samples Size (ESS) is too low, indicating posterior means and medians may be unreliable.
#> Running the chains for more iterations may help. See
#> https://mc-stan.org/misc/warnings.html#bulk-ess
#> Warning: Tail Effective Samples Size (ESS) is too low, indicating posterior variances and tail quantiles may be unreliable.
#> Running the chains for more iterations may help. See
#> https://mc-stan.org/misc/warnings.html#tail-ess
#> # Bayesian R2 with Compatibility Interval
#> 
#>   Conditional R2: 0.954 (95% CI [0.942, 0.963])
#>      Marginal R2: 0.824 (95% CI [0.728, 0.893])
session info ```r devtools::session_info() #> - Session info --------------------------------------------------------------- #> setting value #> version R version 4.1.2 (2021-11-01) #> os Windows 10 x64 (build 22000) #> system x86_64, mingw32 #> ui RTerm #> language (EN) #> collate German_Germany.1252 #> ctype German_Germany.1252 #> tz Europe/Berlin #> date 2022-03-02 #> pandoc 2.17.1.1 @ C:/Program Files/RStudio/bin/quarto/bin/ (via rmarkdown) #> #> - Packages ------------------------------------------------------------------- #> ! package * version date (UTC) lib source #> assertthat 0.2.1 2019-03-21 [1] CRAN (R 4.1.0) #> backports 1.4.1 2021-12-13 [1] CRAN (R 4.1.2) #> base64enc 0.1-3 2015-07-28 [1] CRAN (R 4.1.0) #> bayesplot 1.8.1 2021-06-14 [1] CRAN (R 4.1.0) #> bayestestR 0.11.5.1 2022-02-19 [1] https://easystats.r-universe.dev (R 4.1.2) #> boot 1.3-28 2021-05-03 [2] CRAN (R 4.1.2) #> brio 1.1.3 2021-11-30 [1] CRAN (R 4.1.2) #> cachem 1.0.6 2021-08-19 [1] CRAN (R 4.1.1) #> callr 3.7.0 2021-04-20 [1] CRAN (R 4.1.0) #> cli 3.2.0 2022-02-14 [1] CRAN (R 4.1.2) #> codetools 0.2-18 2020-11-04 [2] CRAN (R 4.1.2) #> colorspace 2.0-3 2022-02-21 [1] CRAN (R 4.1.2) #> colourpicker 1.1.1 2021-10-04 [1] CRAN (R 4.1.1) #> crayon 1.5.0 2022-02-14 [1] CRAN (R 4.1.2) #> crosstalk 1.2.0 2021-11-04 [1] CRAN (R 4.1.2) #> datawizard 0.2.3.9005 2022-02-20 [1] https://easystats.r-universe.dev (R 4.1.2) #> DBI 1.1.2 2021-12-20 [1] CRAN (R 4.1.2) #> desc 1.4.0 2021-09-28 [1] CRAN (R 4.1.1) #> devtools 2.4.3 2021-11-30 [1] CRAN (R 4.1.2) #> digest 0.6.29 2021-12-01 [1] CRAN (R 4.1.2) #> dplyr 1.0.8 2022-02-08 [1] CRAN (R 4.1.2) #> DT 0.20 2021-11-15 [1] CRAN (R 4.1.2) #> dygraphs 1.1.1.6 2018-07-11 [1] CRAN (R 4.1.0) #> ellipsis 0.3.2 2021-04-29 [1] CRAN (R 4.1.0) #> evaluate 0.15 2022-02-18 [1] CRAN (R 4.1.2) #> fansi 1.0.2 2022-01-14 [1] CRAN (R 4.1.2) #> fastmap 1.1.0 2021-01-25 [1] CRAN (R 4.1.0) #> fs 1.5.2 2021-12-08 [1] CRAN (R 4.1.2) #> generics 0.1.2 2022-01-31 [1] CRAN (R 4.1.2) #> ggplot2 3.3.5 2021-06-25 [1] CRAN (R 4.1.0) #> ggridges 0.5.3 2021-01-08 [1] CRAN (R 4.1.0) #> glue 1.6.1 2022-01-22 [1] CRAN (R 4.1.2) #> gridExtra 2.3 2017-09-09 [1] CRAN (R 4.1.0) #> gtable 0.3.0 2019-03-25 [1] CRAN (R 4.1.0) #> gtools 3.9.2 2021-06-06 [1] CRAN (R 4.1.0) #> highr 0.9 2021-04-16 [1] CRAN (R 4.1.0) #> htmltools 0.5.2 2021-08-25 [1] CRAN (R 4.1.1) #> htmlwidgets 1.5.4 2021-09-08 [1] CRAN (R 4.1.1) #> httpuv 1.6.5 2022-01-05 [1] CRAN (R 4.1.2) #> igraph 1.2.11 2022-01-04 [1] CRAN (R 4.1.2) #> inline 0.3.19 2021-05-31 [1] CRAN (R 4.1.0) #> insight 0.16.0.4 2022-03-01 [1] local #> knitr 1.37 2021-12-16 [1] CRAN (R 4.1.2) #> later 1.3.0 2021-08-18 [1] CRAN (R 4.1.1) #> lattice 0.20-45 2021-09-22 [1] CRAN (R 4.1.1) #> lifecycle 1.0.1 2021-09-24 [1] CRAN (R 4.1.1) #> lme4 1.1-28 2022-02-05 [1] CRAN (R 4.1.2) #> loo 2.4.1 2020-12-09 [1] CRAN (R 4.1.0) #> magrittr 2.0.2 2022-01-26 [1] CRAN (R 4.1.2) #> markdown 1.1 2019-08-07 [1] CRAN (R 4.1.0) #> MASS 7.3-54 2021-05-03 [2] CRAN (R 4.1.2) #> Matrix 1.3-4 2021-06-01 [2] CRAN (R 4.1.2) #> matrixStats 0.61.0 2021-09-17 [1] CRAN (R 4.1.1) #> memoise 2.0.1 2021-11-26 [1] CRAN (R 4.1.2) #> mime 0.12 2021-09-28 [1] CRAN (R 4.1.1) #> miniUI 0.1.1.1 2018-05-18 [1] CRAN (R 4.1.0) #> minqa 1.2.4 2014-10-09 [1] CRAN (R 4.1.0) #> munsell 0.5.0 2018-06-12 [1] CRAN (R 4.1.0) #> nlme 3.1-153 2021-09-07 [2] CRAN (R 4.1.2) #> nloptr 2.0.0 2022-01-26 [1] CRAN (R 4.1.2) #> performance * 0.8.0.7 2022-03-02 [1] local #> pillar 1.7.0 2022-02-01 [1] CRAN (R 4.1.2) #> pkgbuild 1.3.1 2021-12-20 [1] CRAN (R 4.1.2) #> pkgconfig 2.0.3 2019-09-22 [1] CRAN (R 4.1.0) #> pkgload 1.2.4 2021-11-30 [1] CRAN (R 4.1.2) #> plyr 1.8.6 2020-03-03 [1] CRAN (R 4.1.0) #> prettyunits 1.1.1 2020-01-24 [1] CRAN (R 4.1.0) #> processx 3.5.2 2021-04-30 [1] CRAN (R 4.1.0) #> promises 1.2.0.1 2021-02-11 [1] CRAN (R 4.1.0) #> ps 1.6.0 2021-02-28 [1] CRAN (R 4.1.0) #> purrr 0.3.4 2020-04-17 [1] CRAN (R 4.1.0) #> R.cache 0.15.0 2021-04-30 [1] CRAN (R 4.1.0) #> R.methodsS3 1.8.1 2020-08-26 [1] CRAN (R 4.1.0) #> R.oo 1.24.0 2020-08-26 [1] CRAN (R 4.1.0) #> R.utils 2.11.0 2021-09-26 [1] CRAN (R 4.1.1) #> R6 2.5.1 2021-08-19 [1] CRAN (R 4.1.1) #> Rcpp * 1.0.8 2022-01-13 [1] CRAN (R 4.1.2) #> D RcppParallel 5.1.5 2022-01-05 [1] CRAN (R 4.1.2) #> remotes 2.4.2 2021-11-30 [1] CRAN (R 4.1.2) #> reprex 2.0.1 2021-08-05 [1] CRAN (R 4.1.0) #> reshape2 1.4.4 2020-04-09 [1] CRAN (R 4.1.0) #> rlang 1.0.1 2022-02-03 [1] CRAN (R 4.1.2) #> rmarkdown 2.11 2021-09-14 [1] CRAN (R 4.1.1) #> rprojroot 2.0.2 2020-11-15 [1] CRAN (R 4.1.0) #> rsconnect 0.8.25 2021-11-19 [1] CRAN (R 4.1.2) #> rstan 2.21.3 2021-12-19 [1] CRAN (R 4.1.2) #> rstanarm * 2.21.1 2020-07-20 [1] CRAN (R 4.1.0) #> rstantools * 2.1.1 2020-07-06 [1] CRAN (R 4.1.0) #> rstudioapi 0.13 2020-11-12 [1] CRAN (R 4.1.0) #> scales 1.1.1 2020-05-11 [1] CRAN (R 4.1.0) #> sessioninfo 1.2.2 2021-12-06 [1] CRAN (R 4.1.0) #> shiny 1.7.1 2021-10-02 [1] CRAN (R 4.1.1) #> shinyjs 2.1.0 2021-12-23 [1] CRAN (R 4.1.2) #> shinystan 2.5.0 2018-05-01 [1] CRAN (R 4.1.0) #> shinythemes 1.2.0 2021-01-25 [1] CRAN (R 4.1.0) #> StanHeaders 2.21.0-7 2020-12-17 [1] CRAN (R 4.1.0) #> stringi 1.7.6 2021-11-29 [1] CRAN (R 4.1.2) #> stringr 1.4.0 2019-02-10 [1] CRAN (R 4.1.0) #> styler 1.6.2 2021-09-23 [1] CRAN (R 4.1.1) #> survival 3.2-13 2021-08-24 [1] CRAN (R 4.1.1) #> testthat 3.1.2 2022-01-20 [1] CRAN (R 4.1.2) #> threejs 0.3.3 2020-01-21 [1] CRAN (R 4.1.0) #> tibble 3.1.6 2021-11-07 [1] CRAN (R 4.1.2) #> tidyselect 1.1.2 2022-02-21 [1] CRAN (R 4.1.2) #> usethis 2.1.5 2021-12-09 [1] CRAN (R 4.1.2) #> utf8 1.2.2 2021-07-24 [1] CRAN (R 4.1.0) #> vctrs 0.3.8 2021-04-29 [1] CRAN (R 4.1.0) #> withr 2.4.3 2021-11-30 [1] CRAN (R 4.1.2) #> xfun 0.29 2021-12-14 [1] CRAN (R 4.1.2) #> xtable 1.8-4 2019-04-21 [1] CRAN (R 4.1.0) #> xts 0.12.1 2020-09-09 [1] CRAN (R 4.1.0) #> yaml 2.3.5 2022-02-21 [1] CRAN (R 4.1.2) #> zoo 1.8-9 2021-03-09 [1] CRAN (R 4.1.0) #> #> [1] C:/Users/mail/Documents/R/win-library/4.1 #> [2] C:/Program Files/R/R-4.1.2/library #> #> D -- DLL MD5 mismatch, broken installation. #> #> ------------------------------------------------------------------------------ ```

Created on 2022-03-02 by the reprex package (v2.0.1)

strengejacke commented 2 years ago

As you can see from the session info, glmmTMB isn't even involved in this example. Could it be that rstan(arm) is failing on your system, so revdep-checks yield an error due to Stan problem, not due to problems from performance in conjunction with glmmTMB?

strengejacke commented 2 years ago

(same when I load glmmTMB)

library(performance)
library(glmmTMB)
if (require("rstanarm") && require("rstantools")) {
  model <- stan_glm(mpg ~ wt + cyl, data = mtcars, chains = 1, iter = 500, refresh = 0)
  r2_bayes(model)

  model <- stan_lmer(
    Petal.Length ~ Petal.Width + (1 | Species),
    data = iris,
    chains = 1,
    iter = 500,
    refresh = 0
  )
  r2_bayes(model)
}
#> Loading required package: rstanarm
#> Loading required package: Rcpp
#> This is rstanarm version 2.21.1
#> - See https://mc-stan.org/rstanarm/articles/priors for changes to default priors!
#> - Default priors may change, so it's safest to specify priors, even if equivalent to the defaults.
#> - For execution on a local, multicore CPU with excess RAM we recommend calling
#>   options(mc.cores = parallel::detectCores())
#> Loading required package: rstantools
#> This is rstantools version 2.1.1
#> Warning: Bulk Effective Samples Size (ESS) is too low, indicating posterior means and medians may be unreliable.
#> Running the chains for more iterations may help. See
#> https://mc-stan.org/misc/warnings.html#bulk-ess
#> Warning: Tail Effective Samples Size (ESS) is too low, indicating posterior variances and tail quantiles may be unreliable.
#> Running the chains for more iterations may help. See
#> https://mc-stan.org/misc/warnings.html#tail-ess
#> Warning: Bulk Effective Samples Size (ESS) is too low, indicating posterior means and medians may be unreliable.
#> Running the chains for more iterations may help. See
#> https://mc-stan.org/misc/warnings.html#bulk-ess
#> Warning: Tail Effective Samples Size (ESS) is too low, indicating posterior variances and tail quantiles may be unreliable.
#> Running the chains for more iterations may help. See
#> https://mc-stan.org/misc/warnings.html#tail-ess
#> # Bayesian R2 with Compatibility Interval
#> 
#>   Conditional R2: 0.952 (95% CI [0.941, 0.963])
#>      Marginal R2: 0.814 (95% CI [0.722, 0.892])
session info ```r devtools::session_info() #> - Session info --------------------------------------------------------------- #> setting value #> version R version 4.1.2 (2021-11-01) #> os Windows 10 x64 (build 22000) #> system x86_64, mingw32 #> ui RTerm #> language (EN) #> collate German_Germany.1252 #> ctype German_Germany.1252 #> tz Europe/Berlin #> date 2022-03-02 #> pandoc 2.17.1.1 @ C:/Program Files/RStudio/bin/quarto/bin/ (via rmarkdown) #> #> - Packages ------------------------------------------------------------------- #> ! package * version date (UTC) lib source #> assertthat 0.2.1 2019-03-21 [1] CRAN (R 4.1.0) #> backports 1.4.1 2021-12-13 [1] CRAN (R 4.1.2) #> base64enc 0.1-3 2015-07-28 [1] CRAN (R 4.1.0) #> bayesplot 1.8.1 2021-06-14 [1] CRAN (R 4.1.0) #> bayestestR 0.11.5.1 2022-02-19 [1] https://easystats.r-universe.dev (R 4.1.2) #> boot 1.3-28 2021-05-03 [2] CRAN (R 4.1.2) #> brio 1.1.3 2021-11-30 [1] CRAN (R 4.1.2) #> cachem 1.0.6 2021-08-19 [1] CRAN (R 4.1.1) #> callr 3.7.0 2021-04-20 [1] CRAN (R 4.1.0) #> cli 3.2.0 2022-02-14 [1] CRAN (R 4.1.2) #> coda 0.19-4 2020-09-30 [1] CRAN (R 4.1.0) #> codetools 0.2-18 2020-11-04 [2] CRAN (R 4.1.2) #> colorspace 2.0-3 2022-02-21 [1] CRAN (R 4.1.2) #> colourpicker 1.1.1 2021-10-04 [1] CRAN (R 4.1.1) #> crayon 1.5.0 2022-02-14 [1] CRAN (R 4.1.2) #> crosstalk 1.2.0 2021-11-04 [1] CRAN (R 4.1.2) #> datawizard 0.2.3.9005 2022-02-20 [1] https://easystats.r-universe.dev (R 4.1.2) #> DBI 1.1.2 2021-12-20 [1] CRAN (R 4.1.2) #> desc 1.4.0 2021-09-28 [1] CRAN (R 4.1.1) #> devtools 2.4.3 2021-11-30 [1] CRAN (R 4.1.2) #> digest 0.6.29 2021-12-01 [1] CRAN (R 4.1.2) #> dplyr 1.0.8 2022-02-08 [1] CRAN (R 4.1.2) #> DT 0.20 2021-11-15 [1] CRAN (R 4.1.2) #> dygraphs 1.1.1.6 2018-07-11 [1] CRAN (R 4.1.0) #> ellipsis 0.3.2 2021-04-29 [1] CRAN (R 4.1.0) #> emmeans 1.7.2 2022-01-04 [1] CRAN (R 4.1.0) #> estimability 1.3 2018-02-11 [1] CRAN (R 4.1.0) #> evaluate 0.15 2022-02-18 [1] CRAN (R 4.1.2) #> fansi 1.0.2 2022-01-14 [1] CRAN (R 4.1.2) #> fastmap 1.1.0 2021-01-25 [1] CRAN (R 4.1.0) #> fs 1.5.2 2021-12-08 [1] CRAN (R 4.1.2) #> generics 0.1.2 2022-01-31 [1] CRAN (R 4.1.2) #> ggplot2 3.3.5 2021-06-25 [1] CRAN (R 4.1.0) #> ggridges 0.5.3 2021-01-08 [1] CRAN (R 4.1.0) #> glmmTMB * 1.1.3 2022-03-02 [1] Github (glmmTMB/glmmTMB@ea6c64a) #> glue 1.6.1 2022-01-22 [1] CRAN (R 4.1.2) #> gridExtra 2.3 2017-09-09 [1] CRAN (R 4.1.0) #> gtable 0.3.0 2019-03-25 [1] CRAN (R 4.1.0) #> gtools 3.9.2 2021-06-06 [1] CRAN (R 4.1.0) #> highr 0.9 2021-04-16 [1] CRAN (R 4.1.0) #> htmltools 0.5.2 2021-08-25 [1] CRAN (R 4.1.1) #> htmlwidgets 1.5.4 2021-09-08 [1] CRAN (R 4.1.1) #> httpuv 1.6.5 2022-01-05 [1] CRAN (R 4.1.2) #> igraph 1.2.11 2022-01-04 [1] CRAN (R 4.1.2) #> inline 0.3.19 2021-05-31 [1] CRAN (R 4.1.0) #> insight 0.16.0.4 2022-03-01 [1] local #> knitr 1.37 2021-12-16 [1] CRAN (R 4.1.2) #> later 1.3.0 2021-08-18 [1] CRAN (R 4.1.1) #> lattice 0.20-45 2021-09-22 [1] CRAN (R 4.1.1) #> lifecycle 1.0.1 2021-09-24 [1] CRAN (R 4.1.1) #> lme4 1.1-28 2022-02-05 [1] CRAN (R 4.1.2) #> loo 2.4.1 2020-12-09 [1] CRAN (R 4.1.0) #> magrittr 2.0.2 2022-01-26 [1] CRAN (R 4.1.2) #> markdown 1.1 2019-08-07 [1] CRAN (R 4.1.0) #> MASS 7.3-54 2021-05-03 [2] CRAN (R 4.1.2) #> Matrix 1.3-4 2021-06-01 [2] CRAN (R 4.1.2) #> matrixStats 0.61.0 2021-09-17 [1] CRAN (R 4.1.1) #> memoise 2.0.1 2021-11-26 [1] CRAN (R 4.1.2) #> mime 0.12 2021-09-28 [1] CRAN (R 4.1.1) #> miniUI 0.1.1.1 2018-05-18 [1] CRAN (R 4.1.0) #> minqa 1.2.4 2014-10-09 [1] CRAN (R 4.1.0) #> multcomp 1.4-18 2022-01-04 [1] CRAN (R 4.1.0) #> munsell 0.5.0 2018-06-12 [1] CRAN (R 4.1.0) #> mvtnorm 1.1-3 2021-10-08 [1] CRAN (R 4.1.1) #> nlme 3.1-153 2021-09-07 [2] CRAN (R 4.1.2) #> nloptr 2.0.0 2022-01-26 [1] CRAN (R 4.1.2) #> numDeriv 2016.8-1.1 2019-06-06 [1] CRAN (R 4.1.0) #> performance * 0.8.0.7 2022-03-02 [1] local #> pillar 1.7.0 2022-02-01 [1] CRAN (R 4.1.2) #> pkgbuild 1.3.1 2021-12-20 [1] CRAN (R 4.1.2) #> pkgconfig 2.0.3 2019-09-22 [1] CRAN (R 4.1.0) #> pkgload 1.2.4 2021-11-30 [1] CRAN (R 4.1.2) #> plyr 1.8.6 2020-03-03 [1] CRAN (R 4.1.0) #> prettyunits 1.1.1 2020-01-24 [1] CRAN (R 4.1.0) #> processx 3.5.2 2021-04-30 [1] CRAN (R 4.1.0) #> promises 1.2.0.1 2021-02-11 [1] CRAN (R 4.1.0) #> ps 1.6.0 2021-02-28 [1] CRAN (R 4.1.0) #> purrr 0.3.4 2020-04-17 [1] CRAN (R 4.1.0) #> R.cache 0.15.0 2021-04-30 [1] CRAN (R 4.1.0) #> R.methodsS3 1.8.1 2020-08-26 [1] CRAN (R 4.1.0) #> R.oo 1.24.0 2020-08-26 [1] CRAN (R 4.1.0) #> R.utils 2.11.0 2021-09-26 [1] CRAN (R 4.1.1) #> R6 2.5.1 2021-08-19 [1] CRAN (R 4.1.1) #> Rcpp * 1.0.8 2022-01-13 [1] CRAN (R 4.1.2) #> D RcppParallel 5.1.5 2022-01-05 [1] CRAN (R 4.1.2) #> remotes 2.4.2 2021-11-30 [1] CRAN (R 4.1.2) #> reprex 2.0.1 2021-08-05 [1] CRAN (R 4.1.0) #> reshape2 1.4.4 2020-04-09 [1] CRAN (R 4.1.0) #> rlang 1.0.1 2022-02-03 [1] CRAN (R 4.1.2) #> rmarkdown 2.11 2021-09-14 [1] CRAN (R 4.1.1) #> rprojroot 2.0.2 2020-11-15 [1] CRAN (R 4.1.0) #> rsconnect 0.8.25 2021-11-19 [1] CRAN (R 4.1.2) #> rstan 2.21.3 2021-12-19 [1] CRAN (R 4.1.2) #> rstanarm * 2.21.1 2020-07-20 [1] CRAN (R 4.1.0) #> rstantools * 2.1.1 2020-07-06 [1] CRAN (R 4.1.0) #> rstudioapi 0.13 2020-11-12 [1] CRAN (R 4.1.0) #> sandwich 3.0-1 2021-05-18 [1] CRAN (R 4.1.0) #> scales 1.1.1 2020-05-11 [1] CRAN (R 4.1.0) #> sessioninfo 1.2.2 2021-12-06 [1] CRAN (R 4.1.0) #> shiny 1.7.1 2021-10-02 [1] CRAN (R 4.1.1) #> shinyjs 2.1.0 2021-12-23 [1] CRAN (R 4.1.2) #> shinystan 2.5.0 2018-05-01 [1] CRAN (R 4.1.0) #> shinythemes 1.2.0 2021-01-25 [1] CRAN (R 4.1.0) #> StanHeaders 2.21.0-7 2020-12-17 [1] CRAN (R 4.1.0) #> stringi 1.7.6 2021-11-29 [1] CRAN (R 4.1.2) #> stringr 1.4.0 2019-02-10 [1] CRAN (R 4.1.0) #> styler 1.6.2 2021-09-23 [1] CRAN (R 4.1.1) #> survival 3.2-13 2021-08-24 [1] CRAN (R 4.1.1) #> testthat 3.1.2 2022-01-20 [1] CRAN (R 4.1.2) #> TH.data 1.1-0 2021-09-27 [1] CRAN (R 4.1.1) #> threejs 0.3.3 2020-01-21 [1] CRAN (R 4.1.0) #> tibble 3.1.6 2021-11-07 [1] CRAN (R 4.1.2) #> tidyselect 1.1.2 2022-02-21 [1] CRAN (R 4.1.2) #> D TMB 1.7.22 2021-09-28 [1] CRAN (R 4.1.1) #> usethis 2.1.5 2021-12-09 [1] CRAN (R 4.1.2) #> utf8 1.2.2 2021-07-24 [1] CRAN (R 4.1.0) #> vctrs 0.3.8 2021-04-29 [1] CRAN (R 4.1.0) #> withr 2.4.3 2021-11-30 [1] CRAN (R 4.1.2) #> xfun 0.29 2021-12-14 [1] CRAN (R 4.1.2) #> xtable 1.8-4 2019-04-21 [1] CRAN (R 4.1.0) #> xts 0.12.1 2020-09-09 [1] CRAN (R 4.1.0) #> yaml 2.3.5 2022-02-21 [1] CRAN (R 4.1.2) #> zoo 1.8-9 2021-03-09 [1] CRAN (R 4.1.0) #> #> [1] C:/Users/mail/Documents/R/win-library/4.1 #> [2] C:/Program Files/R/R-4.1.2/library #> #> D -- DLL MD5 mismatch, broken installation. #> #> ------------------------------------------------------------------------------ ```

Created on 2022-03-02 by the reprex package (v2.0.1)

IndrajeetPatil commented 2 years ago

@strengejacke, but you are using your local/GitHub version of performance.

It is possible that the development version of performance has somehow already fixed whatever the issue is, but it's still present in the CRAN version. Reverse dependency check will be run against the CRAN version.

strengejacke commented 2 years ago

Same results for CRAN version:

library(glmmTMB)
library(performance)
if (require("rstanarm") && require("rstantools")) {
  model <- stan_glm(mpg ~ wt + cyl, data = mtcars, chains = 1, iter = 500, refresh = 0)
  r2_bayes(model)

  model <- stan_lmer(
    Petal.Length ~ Petal.Width + (1 | Species),
    data = iris,
    chains = 1,
    iter = 500,
    refresh = 0
  )
  r2_bayes(model)
}
#> Loading required package: rstanarm
#> Loading required package: Rcpp
#> This is rstanarm version 2.21.1
#> - See https://mc-stan.org/rstanarm/articles/priors for changes to default priors!
#> - Default priors may change, so it's safest to specify priors, even if equivalent to the defaults.
#> - For execution on a local, multicore CPU with excess RAM we recommend calling
#>   options(mc.cores = parallel::detectCores())
#> Loading required package: rstantools
#> This is rstantools version 2.1.1
#> Warning: Tail Effective Samples Size (ESS) is too low, indicating posterior variances and tail quantiles may be unreliable.
#> Running the chains for more iterations may help. See
#> https://mc-stan.org/misc/warnings.html#tail-ess
#> Warning: Bulk Effective Samples Size (ESS) is too low, indicating posterior means and medians may be unreliable.
#> Running the chains for more iterations may help. See
#> https://mc-stan.org/misc/warnings.html#bulk-ess
#> # Bayesian R2 with Compatibility Interval
#> 
#>   Conditional R2: 0.954 (95% CI [0.941, 0.963])
#>      Marginal R2: 0.820 (95% CI [0.721, 0.904])
session info ```r devtools::session_info() #> - Session info --------------------------------------------------------------- #> setting value #> version R version 4.1.2 (2021-11-01) #> os Windows 10 x64 (build 22000) #> system x86_64, mingw32 #> ui RTerm #> language (EN) #> collate German_Germany.1252 #> ctype German_Germany.1252 #> tz Europe/Berlin #> date 2022-03-02 #> pandoc 2.17.1.1 @ C:/Program Files/RStudio/bin/quarto/bin/ (via rmarkdown) #> #> - Packages ------------------------------------------------------------------- #> ! package * version date (UTC) lib source #> assertthat 0.2.1 2019-03-21 [1] CRAN (R 4.1.0) #> backports 1.4.1 2021-12-13 [1] CRAN (R 4.1.2) #> base64enc 0.1-3 2015-07-28 [1] CRAN (R 4.1.0) #> bayesplot 1.8.1 2021-06-14 [1] CRAN (R 4.1.0) #> bayestestR 0.11.5 2021-10-30 [1] CRAN (R 4.1.2) #> boot 1.3-28 2021-05-03 [2] CRAN (R 4.1.2) #> brio 1.1.3 2021-11-30 [1] CRAN (R 4.1.2) #> cachem 1.0.6 2021-08-19 [1] CRAN (R 4.1.1) #> callr 3.7.0 2021-04-20 [1] CRAN (R 4.1.0) #> cli 3.2.0 2022-02-14 [1] CRAN (R 4.1.2) #> coda 0.19-4 2020-09-30 [1] CRAN (R 4.1.0) #> codetools 0.2-18 2020-11-04 [2] CRAN (R 4.1.2) #> colorspace 2.0-3 2022-02-21 [1] CRAN (R 4.1.2) #> colourpicker 1.1.1 2021-10-04 [1] CRAN (R 4.1.1) #> crayon 1.5.0 2022-02-14 [1] CRAN (R 4.1.2) #> crosstalk 1.2.0 2021-11-04 [1] CRAN (R 4.1.2) #> datawizard 0.2.3 2022-01-26 [1] CRAN (R 4.1.2) #> DBI 1.1.2 2021-12-20 [1] CRAN (R 4.1.2) #> desc 1.4.0 2021-09-28 [1] CRAN (R 4.1.1) #> devtools 2.4.3 2021-11-30 [1] CRAN (R 4.1.2) #> digest 0.6.29 2021-12-01 [1] CRAN (R 4.1.2) #> dplyr 1.0.8 2022-02-08 [1] CRAN (R 4.1.2) #> DT 0.20 2021-11-15 [1] CRAN (R 4.1.2) #> dygraphs 1.1.1.6 2018-07-11 [1] CRAN (R 4.1.0) #> ellipsis 0.3.2 2021-04-29 [1] CRAN (R 4.1.0) #> emmeans 1.7.2 2022-01-04 [1] CRAN (R 4.1.0) #> estimability 1.3 2018-02-11 [1] CRAN (R 4.1.0) #> evaluate 0.15 2022-02-18 [1] CRAN (R 4.1.2) #> fansi 1.0.2 2022-01-14 [1] CRAN (R 4.1.2) #> fastmap 1.1.0 2021-01-25 [1] CRAN (R 4.1.0) #> fs 1.5.2 2021-12-08 [1] CRAN (R 4.1.2) #> generics 0.1.2 2022-01-31 [1] CRAN (R 4.1.2) #> ggplot2 3.3.5 2021-06-25 [1] CRAN (R 4.1.0) #> ggridges 0.5.3 2021-01-08 [1] CRAN (R 4.1.0) #> glmmTMB * 1.1.3 2022-03-02 [1] Github (glmmTMB/glmmTMB@ea6c64a) #> glue 1.6.1 2022-01-22 [1] CRAN (R 4.1.2) #> gridExtra 2.3 2017-09-09 [1] CRAN (R 4.1.0) #> gtable 0.3.0 2019-03-25 [1] CRAN (R 4.1.0) #> gtools 3.9.2 2021-06-06 [1] CRAN (R 4.1.0) #> highr 0.9 2021-04-16 [1] CRAN (R 4.1.0) #> htmltools 0.5.2 2021-08-25 [1] CRAN (R 4.1.1) #> htmlwidgets 1.5.4 2021-09-08 [1] CRAN (R 4.1.1) #> httpuv 1.6.5 2022-01-05 [1] CRAN (R 4.1.2) #> igraph 1.2.11 2022-01-04 [1] CRAN (R 4.1.2) #> inline 0.3.19 2021-05-31 [1] CRAN (R 4.1.0) #> insight 0.16.0 2022-02-17 [1] CRAN (R 4.1.2) #> knitr 1.37 2021-12-16 [1] CRAN (R 4.1.2) #> later 1.3.0 2021-08-18 [1] CRAN (R 4.1.1) #> lattice 0.20-45 2021-09-22 [1] CRAN (R 4.1.1) #> lifecycle 1.0.1 2021-09-24 [1] CRAN (R 4.1.1) #> lme4 1.1-28 2022-02-05 [1] CRAN (R 4.1.2) #> loo 2.4.1 2020-12-09 [1] CRAN (R 4.1.0) #> magrittr 2.0.2 2022-01-26 [1] CRAN (R 4.1.2) #> markdown 1.1 2019-08-07 [1] CRAN (R 4.1.0) #> MASS 7.3-54 2021-05-03 [2] CRAN (R 4.1.2) #> Matrix 1.3-4 2021-06-01 [2] CRAN (R 4.1.2) #> matrixStats 0.61.0 2021-09-17 [1] CRAN (R 4.1.1) #> memoise 2.0.1 2021-11-26 [1] CRAN (R 4.1.2) #> mime 0.12 2021-09-28 [1] CRAN (R 4.1.1) #> miniUI 0.1.1.1 2018-05-18 [1] CRAN (R 4.1.0) #> minqa 1.2.4 2014-10-09 [1] CRAN (R 4.1.0) #> multcomp 1.4-18 2022-01-04 [1] CRAN (R 4.1.0) #> munsell 0.5.0 2018-06-12 [1] CRAN (R 4.1.0) #> mvtnorm 1.1-3 2021-10-08 [1] CRAN (R 4.1.1) #> nlme 3.1-153 2021-09-07 [2] CRAN (R 4.1.2) #> nloptr 2.0.0 2022-01-26 [1] CRAN (R 4.1.2) #> numDeriv 2016.8-1.1 2019-06-06 [1] CRAN (R 4.1.0) #> performance * 0.8.0 2021-10-01 [1] CRAN (R 4.1.2) #> pillar 1.7.0 2022-02-01 [1] CRAN (R 4.1.2) #> pkgbuild 1.3.1 2021-12-20 [1] CRAN (R 4.1.2) #> pkgconfig 2.0.3 2019-09-22 [1] CRAN (R 4.1.0) #> pkgload 1.2.4 2021-11-30 [1] CRAN (R 4.1.2) #> plyr 1.8.6 2020-03-03 [1] CRAN (R 4.1.0) #> prettyunits 1.1.1 2020-01-24 [1] CRAN (R 4.1.0) #> processx 3.5.2 2021-04-30 [1] CRAN (R 4.1.0) #> promises 1.2.0.1 2021-02-11 [1] CRAN (R 4.1.0) #> ps 1.6.0 2021-02-28 [1] CRAN (R 4.1.0) #> purrr 0.3.4 2020-04-17 [1] CRAN (R 4.1.0) #> R.cache 0.15.0 2021-04-30 [1] CRAN (R 4.1.0) #> R.methodsS3 1.8.1 2020-08-26 [1] CRAN (R 4.1.0) #> R.oo 1.24.0 2020-08-26 [1] CRAN (R 4.1.0) #> R.utils 2.11.0 2021-09-26 [1] CRAN (R 4.1.1) #> R6 2.5.1 2021-08-19 [1] CRAN (R 4.1.1) #> Rcpp * 1.0.8 2022-01-13 [1] CRAN (R 4.1.2) #> D RcppParallel 5.1.5 2022-01-05 [1] CRAN (R 4.1.2) #> remotes 2.4.2 2021-11-30 [1] CRAN (R 4.1.2) #> reprex 2.0.1 2021-08-05 [1] CRAN (R 4.1.0) #> reshape2 1.4.4 2020-04-09 [1] CRAN (R 4.1.0) #> rlang 1.0.1 2022-02-03 [1] CRAN (R 4.1.2) #> rmarkdown 2.11 2021-09-14 [1] CRAN (R 4.1.1) #> rprojroot 2.0.2 2020-11-15 [1] CRAN (R 4.1.0) #> rsconnect 0.8.25 2021-11-19 [1] CRAN (R 4.1.2) #> rstan 2.21.3 2021-12-19 [1] CRAN (R 4.1.2) #> rstanarm * 2.21.1 2020-07-20 [1] CRAN (R 4.1.0) #> rstantools * 2.1.1 2020-07-06 [1] CRAN (R 4.1.0) #> rstudioapi 0.13 2020-11-12 [1] CRAN (R 4.1.0) #> sandwich 3.0-1 2021-05-18 [1] CRAN (R 4.1.0) #> scales 1.1.1 2020-05-11 [1] CRAN (R 4.1.0) #> sessioninfo 1.2.2 2021-12-06 [1] CRAN (R 4.1.0) #> shiny 1.7.1 2021-10-02 [1] CRAN (R 4.1.1) #> shinyjs 2.1.0 2021-12-23 [1] CRAN (R 4.1.2) #> shinystan 2.5.0 2018-05-01 [1] CRAN (R 4.1.0) #> shinythemes 1.2.0 2021-01-25 [1] CRAN (R 4.1.0) #> StanHeaders 2.21.0-7 2020-12-17 [1] CRAN (R 4.1.0) #> stringi 1.7.6 2021-11-29 [1] CRAN (R 4.1.2) #> stringr 1.4.0 2019-02-10 [1] CRAN (R 4.1.0) #> styler 1.6.2 2021-09-23 [1] CRAN (R 4.1.1) #> survival 3.2-13 2021-08-24 [1] CRAN (R 4.1.1) #> testthat 3.1.2 2022-01-20 [1] CRAN (R 4.1.2) #> TH.data 1.1-0 2021-09-27 [1] CRAN (R 4.1.1) #> threejs 0.3.3 2020-01-21 [1] CRAN (R 4.1.0) #> tibble 3.1.6 2021-11-07 [1] CRAN (R 4.1.2) #> tidyselect 1.1.2 2022-02-21 [1] CRAN (R 4.1.2) #> D TMB 1.7.22 2021-09-28 [1] CRAN (R 4.1.1) #> usethis 2.1.5 2021-12-09 [1] CRAN (R 4.1.2) #> utf8 1.2.2 2021-07-24 [1] CRAN (R 4.1.0) #> vctrs 0.3.8 2021-04-29 [1] CRAN (R 4.1.0) #> withr 2.4.3 2021-11-30 [1] CRAN (R 4.1.2) #> xfun 0.29 2021-12-14 [1] CRAN (R 4.1.2) #> xtable 1.8-4 2019-04-21 [1] CRAN (R 4.1.0) #> xts 0.12.1 2020-09-09 [1] CRAN (R 4.1.0) #> yaml 2.3.5 2022-02-21 [1] CRAN (R 4.1.2) #> zoo 1.8-9 2021-03-09 [1] CRAN (R 4.1.0) #> #> [1] C:/Users/mail/Documents/R/win-library/4.1 #> [2] C:/Program Files/R/R-4.1.2/library #> #> D -- DLL MD5 mismatch, broken installation. #> #> ------------------------------------------------------------------------------ ```

Created on 2022-03-02 by the reprex package (v2.0.1)

strengejacke commented 2 years ago

Usually, the complete example is totally unrelated to glmmTMB (unless stan_lmer() uses glmmTMB).

strengejacke commented 2 years ago

Looks like an issue not related to glmmTMB. If you still get errors from revdep checks when submitting to CRAN, due to performance, we will be able to submit an update in time.

mebrooks commented 2 years ago

I'm getting the same error again while checking reverse dependencies for version 1.1.4. I'll ignore it based on your comments last time. The contents of problems.md are as follows.

performance

* Version: 0.9.1 * GitHub: https://github.com/easystats/performance * Source code: https://github.com/cran/performance * Date/Publication: 2022-06-20 10:20:04 UTC * Number of recursive dependencies: 246 Run `revdep_details(, "performance")` for more info

Newly broken