Running ‘testthat.R’ [14s/15s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(bayesnec)
  Loading required package: brms
  Loading required package: Rcpp
  Loading 'brms' package (version 2.21.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 object is masked from 'package:stats':
  
      ar
  
  Loading required package: ggplot2
  > 
  > test_check("bayesnec")
  Error in `FUN()`:
  ! In path: "/home/hornik/tmp/R.check/r-patched-gcc/Work/PKGS/bayesnec.Rcheck/tests/testthat/setup.R"
  Caused by error:
  ! Error in x$terms : $ operator is invalid for atomic vectors
  Backtrace:
       ▆
    1. ├─testthat::test_check("bayesnec")
    2. │ └─testthat::test_dir(...)
    3. │   └─testthat:::test_files(...)
    4. │     └─testthat:::test_files_serial(...)
    5. │       └─testthat:::test_files_setup_state(...)
    6. │         └─testthat::source_test_setup(".", env)
    7. │           └─testthat::source_dir(path, "^setup.*\\.[rR]$", env = env, wrap = FALSE)
    8. │             └─base::lapply(...)
    9. │               └─testthat (local) FUN(X[[i]], ...)
   10. │                 └─testthat::source_file(path, env = env, chdir = chdir, wrap = wrap)
   11. │                   ├─base::withCallingHandlers(...)
   12. │                   └─base::eval(exprs, env)
   13. │                     └─base::eval(exprs, env)
   14. │                       ├─base::suppressWarnings(...) at tests/testthat/setup.R:25:1
   15. │                       │ └─base::withCallingHandlers(...)
   16. │                       ├─base::suppressMessages(pull_out(manec_example, model = "nec4param"))
   17. │                       │ └─base::withCallingHandlers(...)
   18. │                       └─bayesnec::pull_out(manec_example, model = "nec4param")
   19. │                         ├─base::suppressWarnings(...)
   20. │                         │ └─base::withCallingHandlers(...)
   21. │                         ├─base::suppressMessages(...)
   22. │                         │ └─base::withCallingHandlers(...)
   23. │                         └─bayesnec::expand_nec(...)
   24. │                           └─bayesnec:::add_criteria(object, loo_controls$fitting, ...)
   25. │                             ├─base::do.call(add_criterion, loo_args)
   26. │                             ├─brms (local) `<fn>`(x = `<brmsfit>`, criterion = `<chr>`, model_name = "nec4param")
   27. │                             └─brms:::add_criterion.brmsfit(...)
   28. │                               └─brms::do_call(fun, args)
   29. │                                 └─brms:::eval2(call, envir = args, enclos = envir)
   30. │                                   └─base::eval(expr, envir, ...)
   31. │                                     └─base::eval(expr, envir, ...)
   32. │                                       ├─loo::loo(.x1, model_names = .x2)
   33. │                                       └─brms:::loo.brmsfit(.x1, model_names = .x2)
   34. │                                         └─brms::do_call(compute_loolist, args)
   35. │                                           └─brms:::eval2(call, envir = args, enclos = envir)
   36. │                                             └─base::eval(expr, envir, ...)
   37. │                                               └─base::eval(expr, envir, ...)
   38. │                                                 └─brms (local) .fun(...)
   39. │                                                   └─brms::do_call(compute_loo, args)
   40. │                                                     └─brms:::eval2(call, envir = args, enclos = envir)
   41. │                                                       └─base::eval(expr, envir, ...)
   42. │                                                         └─base::eval(expr, envir, ...)
   43. │                                                           └─brms (local) .fun(...)
   44. │                                                             └─brms::do_call(paste0(".", criterion), args)
   45. │                                                               └─brms:::eval2(call, envir = args, enclos = envir)
   46. │                                                                 └─base::eval(expr, envir, ...)
   47. │                                                                   └─base::eval(expr, envir, ...)
   48. │                                                                     └─brms:::.loo(...)
   49. │                                                                       └─brms:::prepare_loo_args(...)
   50. │                                                                         └─brms::do_call(log_lik, ll_args)
   51. │                                                                           └─brms:::eval2(call, envir = args, enclos = envir)
   52. │                                                                             └─base::eval(expr, envir, ...)
   53. │                                                                               └─base::eval(expr, envir, ...)
   54. │                                                                                 ├─rstantools (local) .fun(...)
   55. │                                                                                 └─brms:::log_lik.brmsfit(...)
   56. │                                                                                   ├─rstantools::log_lik(prep, combine = combine, cores = cores)
   57. │                                                                                   └─brms:::log_lik.brmsprep(prep, combine = combine, cores = cores)
   58. │                                                                                     └─brms::get_dpar(object, dpar = dp)
   59. │                                                                                       ├─brms:::predictor(x, i = i, fprep = prep)
   60. │                                                                                       └─brms:::predictor.bprepnl(x, i = i, fprep = prep)
   61. │                                                                                         └─brms:::stop2(eta)
   62. │                                                                                           └─base::stop(..., call. = FALSE)
   63. └─base::.handleSimpleError(...)
   64.   └─testthat (local) h(simpleError(msg, call))
   65.     └─rlang::abort(...)
  Execution halted