Running 'spelling.R' [0s/1s]
  Running 'testthat.R' [62s/72s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(bayestestR)
  > 
  > if (length(strsplit(packageDescription("bayestestR")$Version, "\\.")[[1]]) > 3) {
  +   Sys.setenv("RunAllbayestestRTests" = "yes")
  + } else {
  +   Sys.setenv("RunAllbayestestRTests" = "no")
  + }
  > 
  > test_check("bayestestR")
  Loading required package: BayesFactor
  Loading required package: coda
  Loading required package: Matrix
  ************
  Welcome to BayesFactor 0.9.12-4.2. If you have questions, please contact Richard Morey (richarddmorey@gmail.com).
  
  Type BFManual() to open the manual.
  ************
  
  Attaching package: 'BayesFactor'
  
  The following object is masked from 'package:testthat':
  
      compare
  
  boundary (singular) fit: see ?isSingular
  boundary (singular) fit: see ?isSingular
  boundary (singular) fit: see ?isSingular
  boundary (singular) fit: see ?isSingular
  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: insight
  Loading required package: httr
  Loading required package: brms
  Loading 'brms' package (version 2.15.0). Useful instructions
  can be found by typing help('brms'). A more detailed introduction
  to the package is available through vignette('brms_overview').
  
  Attaching package: 'brms'
  
  The following objects are masked from 'package:rstanarm':
  
      dirichlet, exponential, get_y, lasso, ngrps
  
  The following object is masked from 'package:stats':
  
      ar
  
  Loading required namespace: logspline
  Loading required package: blavaan
  Loading required package: lavaan
  This is lavaan 0.6-9
  lavaan is FREE software! Please report any bugs.
  Loading required package: RcppParallel
  
  Attaching package: 'RcppParallel'
  
  The following object is masked from 'package:Rcpp':
  
      LdFlags
  
  This is blavaan 0.3-16
  On multicore systems, we suggest use of future::plan("multiprocess") for faster post-MCMC computations.
  Sampling priors, please wait...
  Error in new_CppObject_xp(fields$.module, fields$.pointer, ...) : 
    Exception: mismatch in dimension declared and found in context; processing stage=data initialization; variable name=YXo; position=0; dims declared=(0,0); dims found=(75,0)  (in 'model_stanmarg' at line 176)
  
  
  Attaching package: 'bayesQR'
  
  The following object is masked from 'package:brms':
  
      prior
  
  Current iteration :
  [1] 500
  Loading required package: emmeans
  Sampling priors, please wait...
  Loading required package: logspline
  Loading required package: KernSmooth
  KernSmooth 2.23 loaded
  Copyright M. P. Wand 1997-2009
  Loading required package: mclust
  Package 'mclust' version 5.4.7
  Type 'citation("mclust")' for citing this R package in publications.
  
  Attaching package: 'mclust'
  
  The following object is masked from 'package:brms':
  
      me
  
  == Skipped tests ===============================================================
  * On CRAN (11)
  
  == Failed tests ================================================================
  -- Error (test-blavaan.R:79:5): blavaan, all -----------------------------------
  Error: replacement has length zero
  Backtrace:
       x
    1. +-bayestestR::unupdate(bfit) test-blavaan.R:79:4
    2. \-bayestestR:::unupdate.blavaan(bfit)
    3.   +-base::suppressMessages(suppressWarnings(utils::capture.output(model_prior <- eval(cl))))
    4.   | \-base::withCallingHandlers(...)
    5.   +-base::suppressWarnings(utils::capture.output(model_prior <- eval(cl)))
    6.   | \-base::withCallingHandlers(...)
    7.   +-utils::capture.output(model_prior <- eval(cl))
    8.   | \-base::withVisible(...elt(i))
    9.   +-base::eval(cl)
   10.   | \-base::eval(cl)
   11.   \-blavaan::blavaan(...)
   12.     \-blavaan:::coeffun_stanmarg(...)
  
  [ FAIL 1 | WARN 8 | SKIP 11 | PASS 198 ]
  Error: Test failures
  Execution halted