Running ‘testthat.R’ [139s/203s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(multinma)
  For execution on a local, multicore CPU with excess RAM we recommend calling
  options(mc.cores = parallel::detectCores())
  
  Attaching package: 'multinma'
  
  The following objects are masked from 'package:stats':
  
      dgamma, pgamma, qgamma
  
  > 
  > nowarn_on_ci <- function(expr, ...) {
  +   if (isTRUE(as.logical(Sys.getenv("CI")))) {
  +     suppressWarnings(expr, ...)
  +   } else {
  +     expr
  +   }
  + }
  > 
  > test_check("multinma")
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 1).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 2).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 3).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 4).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 1).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 2).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 3).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 4).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 1).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 2).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 3).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 4).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 1).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 2).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 3).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 4).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 1).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 2).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 3).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 4).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 1).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 2).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 3).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 4).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 1).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 2).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 3).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 4).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 1).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 2).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 3).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 4).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 1).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 2).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 3).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 4).
  
  TESTING GRADIENT FOR MODEL 'normal' NOW (CHAIN 1).
  
  TESTING GRADIENT FOR MODEL 'normal' NOW (CHAIN 2).
  
  TESTING GRADIENT FOR MODEL 'normal' NOW (CHAIN 3).
  
  TESTING GRADIENT FOR MODEL 'normal' NOW (CHAIN 4).
  
  TESTING GRADIENT FOR MODEL 'normal' NOW (CHAIN 1).
  
  TESTING GRADIENT FOR MODEL 'normal' NOW (CHAIN 2).
  
  TESTING GRADIENT FOR MODEL 'normal' NOW (CHAIN 3).
  
  TESTING GRADIENT FOR MODEL 'normal' NOW (CHAIN 4).
  
  TESTING GRADIENT FOR MODEL 'normal' NOW (CHAIN 1).
  
  TESTING GRADIENT FOR MODEL 'normal' NOW (CHAIN 2).
  
  TESTING GRADIENT FOR MODEL 'normal' NOW (CHAIN 3).
  
  TESTING GRADIENT FOR MODEL 'normal' NOW (CHAIN 4).
  
  TESTING GRADIENT FOR MODEL 'normal' NOW (CHAIN 1).
  
  TESTING GRADIENT FOR MODEL 'normal' NOW (CHAIN 2).
  
  TESTING GRADIENT FOR MODEL 'normal' NOW (CHAIN 3).
  
  TESTING GRADIENT FOR MODEL 'normal' NOW (CHAIN 4).
  
  TESTING GRADIENT FOR MODEL 'normal' NOW (CHAIN 1).
  
  TESTING GRADIENT FOR MODEL 'normal' NOW (CHAIN 2).
  
  TESTING GRADIENT FOR MODEL 'normal' NOW (CHAIN 3).
  
  TESTING GRADIENT FOR MODEL 'normal' NOW (CHAIN 4).
  
  TESTING GRADIENT FOR MODEL 'normal' NOW (CHAIN 1).
  
  TESTING GRADIENT FOR MODEL 'normal' NOW (CHAIN 2).
  
  TESTING GRADIENT FOR MODEL 'normal' NOW (CHAIN 3).
  
  TESTING GRADIENT FOR MODEL 'normal' NOW (CHAIN 4).
  
  TESTING GRADIENT FOR MODEL 'normal' NOW (CHAIN 1).
  
  TESTING GRADIENT FOR MODEL 'normal' NOW (CHAIN 2).
  
  TESTING GRADIENT FOR MODEL 'normal' NOW (CHAIN 3).
  
  TESTING GRADIENT FOR MODEL 'normal' NOW (CHAIN 4).
  
  TESTING GRADIENT FOR MODEL 'normal' NOW (CHAIN 1).
  
  TESTING GRADIENT FOR MODEL 'normal' NOW (CHAIN 2).
  
  TESTING GRADIENT FOR MODEL 'normal' NOW (CHAIN 3).
  
  TESTING GRADIENT FOR MODEL 'normal' NOW (CHAIN 4).
  
  TESTING GRADIENT FOR MODEL 'normal' NOW (CHAIN 1).
  
  TESTING GRADIENT FOR MODEL 'normal' NOW (CHAIN 2).
  
  TESTING GRADIENT FOR MODEL 'normal' NOW (CHAIN 3).
  
  TESTING GRADIENT FOR MODEL 'normal' NOW (CHAIN 4).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 1).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 2).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 3).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 4).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 1).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 2).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 3).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 4).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 1).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 2).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 3).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 4).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 1).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 2).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 3).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 4).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 1).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 2).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 3).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 4).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 1).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 2).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 3).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 4).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 1).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 2).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 3).
  
  TESTING GRADIENT FOR MODEL 'binomial_1par' NOW (CHAIN 4).
  [ FAIL 8 | WARN 0 | SKIP 17 | PASS 905 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (17)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test-nma.R:18:3): nma() consistency argument must be one listed ────
  `nma(smknet, consistency = "con")` threw an error with unexpected message.
  Expected match: "`consistency` must be"
  Actual message: "number of characters is not computable in \"bytes\" encoding, element 1"
  Backtrace:
       ▆
    1. ├─testthat::expect_error(nma(smknet, consistency = "con"), m) at test-nma.R:18:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─multinma::nma(smknet, consistency = "con")
    7. │ └─rlang::arg_match(consistency)
    8. │   └─rlang::arg_match0(arg, values, error_arg, error_call = error_call)
    9. └─rlang:::stop_arg_match(w, x, y, z)
   10.   └─rlang::abort(msg, call = error_call, arg = error_arg)
   11.     └─rlang:::signal_abort(cnd, .file)
   12.       └─base::signalCondition(cnd)
   13.         ├─base::conditionMessage(cond)
   14.         └─rlang:::conditionMessage.rlang_error(cond)
   15.           └─rlang::cnd_message(c)
   16.             └─rlang:::cnd_message_format(cnd, ...)
   17.               └─rlang (local) cli_format(glue_escape(lines))
   18.                 └─rlang:::.rlang_cli_format(x, cli::format_error)
   19.                   └─cli::cli_format(x, .envir = emptyenv())
   20.                     └─cli:::fmt(...)
   21.                       └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   22.                         ├─base::do.call(app[[msg$type]], msg$args)
   23.                         └─cli (local) `<fn>`(text = `<named list>`, id = "cli-2553110-497", class = NULL)
   24.                           └─cli:::clii_bullets(app, text, id, class)
   25.                             └─base::lapply(...)
   26.                               └─cli (local) FUN(X[[i]], ...)
   27.                                 └─app$text(text[[i]])
   28.                                   └─cli:::clii_text(app, text)
   29.                                     └─app$xtext(text)
   30.                                       └─cli:::clii__xtext(...)
   31.                                         └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   32.                                           └─base::lapply(pars, ansi_trimws)
   33.                                             └─cli (local) FUN(X[[i]], ...)
  ── Failure (test-nma.R:30:3): nma() trt_effects argument must be one listed ────
  `nma(smknet, trt_effects = "fix")` threw an error with unexpected message.
  Expected match: "`trt_effects` must be"
  Actual message: "number of characters is not computable in \"bytes\" encoding, element 1"
  Backtrace:
       ▆
    1. ├─testthat::expect_error(nma(smknet, trt_effects = "fix"), m) at test-nma.R:30:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─multinma::nma(smknet, trt_effects = "fix")
    7. │ └─rlang::arg_match(trt_effects)
    8. │   └─rlang::arg_match0(arg, values, error_arg, error_call = error_call)
    9. └─rlang:::stop_arg_match(w, x, y, z)
   10.   └─rlang::abort(msg, call = error_call, arg = error_arg)
   11.     └─rlang:::signal_abort(cnd, .file)
   12.       └─base::signalCondition(cnd)
   13.         ├─base::conditionMessage(cond)
   14.         └─rlang:::conditionMessage.rlang_error(cond)
   15.           └─rlang::cnd_message(c)
   16.             └─rlang:::cnd_message_format(cnd, ...)
   17.               └─rlang (local) cli_format(glue_escape(lines))
   18.                 └─rlang:::.rlang_cli_format(x, cli::format_error)
   19.                   └─cli::cli_format(x, .envir = emptyenv())
   20.                     └─cli:::fmt(...)
   21.                       └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   22.                         ├─base::do.call(app[[msg$type]], msg$args)
   23.                         └─cli (local) `<fn>`(text = `<named list>`, id = "cli-2553110-573", class = NULL)
   24.                           └─cli:::clii_bullets(app, text, id, class)
   25.                             └─base::lapply(...)
   26.                               └─cli (local) FUN(X[[i]], ...)
   27.                                 └─app$text(text[[i]])
   28.                                   └─cli:::clii_text(app, text)
   29.                                     └─app$xtext(text)
   30.                                       └─cli:::clii__xtext(...)
   31.                                         └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   32.                                           └─base::lapply(pars, ansi_trimws)
   33.                                             └─cli (local) FUN(X[[i]], ...)
  ── Failure (test-predict.R:64:3): type argument ────────────────────────────────
  `predict(smk_fit_RE, type = "lin")` threw an error with unexpected message.
  Expected match: "must be one of"
  Actual message: "number of characters is not computable in \"bytes\" encoding, element 1"
  Backtrace:
       ▆
    1. ├─testthat::expect_error(predict(smk_fit_RE, type = "lin"), m) at test-predict.R:64:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─stats::predict(smk_fit_RE, type = "lin")
    7. ├─multinma:::predict.stan_nma(smk_fit_RE, type = "lin")
    8. │ └─rlang::arg_match(type)
    9. │   └─rlang::arg_match0(arg, values, error_arg, error_call = error_call)
   10. └─rlang:::stop_arg_match(w, x, y, z)
   11.   └─rlang::abort(msg, call = error_call, arg = error_arg)
   12.     └─rlang:::signal_abort(cnd, .file)
   13.       └─base::signalCondition(cnd)
   14.         ├─base::conditionMessage(cond)
   15.         └─rlang:::conditionMessage.rlang_error(cond)
   16.           └─rlang::cnd_message(c)
   17.             └─rlang:::cnd_message_format(cnd, ...)
   18.               └─rlang (local) cli_format(glue_escape(lines))
   19.                 └─rlang:::.rlang_cli_format(x, cli::format_error)
   20.                   └─cli::cli_format(x, .envir = emptyenv())
   21.                     └─cli:::fmt(...)
   22.                       └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   23.                         ├─base::do.call(app[[msg$type]], msg$args)
   24.                         └─cli (local) `<fn>`(text = `<named list>`, id = "cli-2553110-665", class = NULL)
   25.                           └─cli:::clii_bullets(app, text, id, class)
   26.                             └─base::lapply(...)
   27.                               └─cli (local) FUN(X[[i]], ...)
   28.                                 └─app$text(text[[i]])
   29.                                   └─cli:::clii_text(app, text)
   30.                                     └─app$xtext(text)
   31.                                       └─cli:::clii__xtext(...)
   32.                                         └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   33.                                           └─base::lapply(pars, ansi_trimws)
   34.                                             └─cli (local) FUN(X[[i]], ...)
  ── Failure (test-predict.R:74:3): level argument ───────────────────────────────
  `predict(smk_fit_RE, level = "a")` threw an error with unexpected message.
  Expected match: "must be one of"
  Actual message: "number of characters is not computable in \"bytes\" encoding, element 1"
  Backtrace:
       ▆
    1. ├─testthat::expect_error(predict(smk_fit_RE, level = "a"), m) at test-predict.R:74:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─stats::predict(smk_fit_RE, level = "a")
    7. ├─multinma:::predict.stan_nma(smk_fit_RE, level = "a")
    8. │ └─rlang::arg_match(level)
    9. │   └─rlang::arg_match0(arg, values, error_arg, error_call = error_call)
   10. └─rlang:::stop_arg_match(w, x, y, z)
   11.   └─rlang::abort(msg, call = error_call, arg = error_arg)
   12.     └─rlang:::signal_abort(cnd, .file)
   13.       └─base::signalCondition(cnd)
   14.         ├─base::conditionMessage(cond)
   15.         └─rlang:::conditionMessage.rlang_error(cond)
   16.           └─rlang::cnd_message(c)
   17.             └─rlang:::cnd_message_format(cnd, ...)
   18.               └─rlang (local) cli_format(glue_escape(lines))
   19.                 └─rlang:::.rlang_cli_format(x, cli::format_error)
   20.                   └─cli::cli_format(x, .envir = emptyenv())
   21.                     └─cli:::fmt(...)
   22.                       └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   23.                         ├─base::do.call(app[[msg$type]], msg$args)
   24.                         └─cli (local) `<fn>`(text = `<named list>`, id = "cli-2553110-725", class = NULL)
   25.                           └─cli:::clii_bullets(app, text, id, class)
   26.                             └─base::lapply(...)
   27.                               └─cli (local) FUN(X[[i]], ...)
   28.                                 └─app$text(text[[i]])
   29.                                   └─cli:::clii_text(app, text)
   30.                                     └─app$xtext(text)
   31.                                       └─cli:::clii__xtext(...)
   32.                                         └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   33.                                           └─base::lapply(pars, ansi_trimws)
   34.                                             └─cli (local) FUN(X[[i]], ...)
  ── Failure (test-predict.R:75:3): level argument ───────────────────────────────
  `predict(smk_fit_RE, level = "agg")` threw an error with unexpected message.
  Expected match: "must be one of"
  Actual message: "number of characters is not computable in \"bytes\" encoding, element 1"
  Backtrace:
       ▆
    1. ├─testthat::expect_error(predict(smk_fit_RE, level = "agg"), m) at test-predict.R:75:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─stats::predict(smk_fit_RE, level = "agg")
    7. ├─multinma:::predict.stan_nma(smk_fit_RE, level = "agg")
    8. │ └─rlang::arg_match(level)
    9. │   └─rlang::arg_match0(arg, values, error_arg, error_call = error_call)
   10. └─rlang:::stop_arg_match(w, x, y, z)
   11.   └─rlang::abort(msg, call = error_call, arg = error_arg)
   12.     └─rlang:::signal_abort(cnd, .file)
   13.       └─base::signalCondition(cnd)
   14.         ├─base::conditionMessage(cond)
   15.         └─rlang:::conditionMessage.rlang_error(cond)
   16.           └─rlang::cnd_message(c)
   17.             └─rlang:::cnd_message_format(cnd, ...)
   18.               └─rlang (local) cli_format(glue_escape(lines))
   19.                 └─rlang:::.rlang_cli_format(x, cli::format_error)
   20.                   └─cli::cli_format(x, .envir = emptyenv())
   21.                     └─cli:::fmt(...)
   22.                       └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   23.                         ├─base::do.call(app[[msg$type]], msg$args)
   24.                         └─cli (local) `<fn>`(text = `<named list>`, id = "cli-2553110-737", class = NULL)
   25.                           └─cli:::clii_bullets(app, text, id, class)
   26.                             └─base::lapply(...)
   27.                               └─cli (local) FUN(X[[i]], ...)
   28.                                 └─app$text(text[[i]])
   29.                                   └─cli:::clii_text(app, text)
   30.                                     └─app$xtext(text)
   31.                                       └─cli:::clii__xtext(...)
   32.                                         └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   33.                                           └─base::lapply(pars, ansi_trimws)
   34.                                             └─cli (local) FUN(X[[i]], ...)
  ── Failure (test-predict.R:89:3): baseline_type argument ───────────────────────
  `predict(smk_fit_RE, baseline_type = "lin")` threw an error with unexpected message.
  Expected match: "must be one of"
  Actual message: "number of characters is not computable in \"bytes\" encoding, element 1"
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test-predict.R:89:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─stats::predict(smk_fit_RE, baseline_type = "lin")
    7. ├─multinma:::predict.stan_nma(smk_fit_RE, baseline_type = "lin")
    8. │ └─rlang::arg_match(baseline_type)
    9. │   └─rlang::arg_match0(arg, values, error_arg, error_call = error_call)
   10. └─rlang:::stop_arg_match(w, x, y, z)
   11.   └─rlang::abort(msg, call = error_call, arg = error_arg)
   12.     └─rlang:::signal_abort(cnd, .file)
   13.       └─base::signalCondition(cnd)
   14.         ├─base::conditionMessage(cond)
   15.         └─rlang:::conditionMessage.rlang_error(cond)
   16.           └─rlang::cnd_message(c)
   17.             └─rlang:::cnd_message_format(cnd, ...)
   18.               └─rlang (local) cli_format(glue_escape(lines))
   19.                 └─rlang:::.rlang_cli_format(x, cli::format_error)
   20.                   └─cli::cli_format(x, .envir = emptyenv())
   21.                     └─cli:::fmt(...)
   22.                       └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   23.                         ├─base::do.call(app[[msg$type]], msg$args)
   24.                         └─cli (local) `<fn>`(text = `<named list>`, id = "cli-2553110-813", class = NULL)
   25.                           └─cli:::clii_bullets(app, text, id, class)
   26.                             └─base::lapply(...)
   27.                               └─cli (local) FUN(X[[i]], ...)
   28.                                 └─app$text(text[[i]])
   29.                                   └─cli:::clii_text(app, text)
   30.                                     └─app$xtext(text)
   31.                                       └─cli:::clii__xtext(...)
   32.                                         └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   33.                                           └─base::lapply(pars, ansi_trimws)
   34.                                             └─cli (local) FUN(X[[i]], ...)
  ── Failure (test-predict.R:99:3): baseline_level argument ──────────────────────
  `predict(smk_fit_RE, baseline_level = "a")` threw an error with unexpected message.
  Expected match: "must be one of"
  Actual message: "number of characters is not computable in \"bytes\" encoding, element 1"
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test-predict.R:99:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─stats::predict(smk_fit_RE, baseline_level = "a")
    7. ├─multinma:::predict.stan_nma(smk_fit_RE, baseline_level = "a")
    8. │ └─rlang::arg_match(baseline_level)
    9. │   └─rlang::arg_match0(arg, values, error_arg, error_call = error_call)
   10. └─rlang:::stop_arg_match(w, x, y, z)
   11.   └─rlang::abort(msg, call = error_call, arg = error_arg)
   12.     └─rlang:::signal_abort(cnd, .file)
   13.       └─base::signalCondition(cnd)
   14.         ├─base::conditionMessage(cond)
   15.         └─rlang:::conditionMessage.rlang_error(cond)
   16.           └─rlang::cnd_message(c)
   17.             └─rlang:::cnd_message_format(cnd, ...)
   18.               └─rlang (local) cli_format(glue_escape(lines))
   19.                 └─rlang:::.rlang_cli_format(x, cli::format_error)
   20.                   └─cli::cli_format(x, .envir = emptyenv())
   21.                     └─cli:::fmt(...)
   22.                       └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   23.                         ├─base::do.call(app[[msg$type]], msg$args)
   24.                         └─cli (local) `<fn>`(text = `<named list>`, id = "cli-2553110-873", class = NULL)
   25.                           └─cli:::clii_bullets(app, text, id, class)
   26.                             └─base::lapply(...)
   27.                               └─cli (local) FUN(X[[i]], ...)
   28.                                 └─app$text(text[[i]])
   29.                                   └─cli:::clii_text(app, text)
   30.                                     └─app$xtext(text)
   31.                                       └─cli:::clii__xtext(...)
   32.                                         └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   33.                                           └─base::lapply(pars, ansi_trimws)
   34.                                             └─cli (local) FUN(X[[i]], ...)
  ── Failure (test-predict.R:100:3): baseline_level argument ─────────────────────
  `predict(smk_fit_RE, baseline_level = "agg")` threw an error with unexpected message.
  Expected match: "must be one of"
  Actual message: "number of characters is not computable in \"bytes\" encoding, element 1"
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test-predict.R:100:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─stats::predict(smk_fit_RE, baseline_level = "agg")
    7. ├─multinma:::predict.stan_nma(smk_fit_RE, baseline_level = "agg")
    8. │ └─rlang::arg_match(baseline_level)
    9. │   └─rlang::arg_match0(arg, values, error_arg, error_call = error_call)
   10. └─rlang:::stop_arg_match(w, x, y, z)
   11.   └─rlang::abort(msg, call = error_call, arg = error_arg)
   12.     └─rlang:::signal_abort(cnd, .file)
   13.       └─base::signalCondition(cnd)
   14.         ├─base::conditionMessage(cond)
   15.         └─rlang:::conditionMessage.rlang_error(cond)
   16.           └─rlang::cnd_message(c)
   17.             └─rlang:::cnd_message_format(cnd, ...)
   18.               └─rlang (local) cli_format(glue_escape(lines))
   19.                 └─rlang:::.rlang_cli_format(x, cli::format_error)
   20.                   └─cli::cli_format(x, .envir = emptyenv())
   21.                     └─cli:::fmt(...)
   22.                       └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   23.                         ├─base::do.call(app[[msg$type]], msg$args)
   24.                         └─cli (local) `<fn>`(text = `<named list>`, id = "cli-2553110-885", class = NULL)
   25.                           └─cli:::clii_bullets(app, text, id, class)
   26.                             └─base::lapply(...)
   27.                               └─cli (local) FUN(X[[i]], ...)
   28.                                 └─app$text(text[[i]])
   29.                                   └─cli:::clii_text(app, text)
   30.                                     └─app$xtext(text)
   31.                                       └─cli:::clii__xtext(...)
   32.                                         └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   33.                                           └─base::lapply(pars, ansi_trimws)
   34.                                             └─cli (local) FUN(X[[i]], ...)
  
  [ FAIL 8 | WARN 0 | SKIP 17 | PASS 905 ]
  Error: Test failures
  Execution halted