Running ‘testthat.R’ [115s/167s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(rbmi)
  > 
  > test_check("rbmi")
  0,248,Js_of_ocaml__Js.Error,18,TypeError: not a function
  mmrm() registered as emmeans extension
  0,248,Js_of_ocaml__Js.Error,18,TypeError: not a function
  0,248,Js_of_ocaml__Js.Error,18,TypeError: not a function
  0,248,Js_of_ocaml__Js.Error,18,TypeError: not a function
  [ FAIL 4 | WARN 0 | SKIP 15 | PASS 1261 ]
  
  ══ Skipped tests (15) ══════════════════════════════════════════════════════════
  • On CRAN (1): 'test-mmrm.R:337:5'
  • is_full_test() is not TRUE (14): 'test-draws.R:115:5',
    'test-fullusage.R:43:5', 'test-fullusage.R:117:5', 'test-fullusage.R:209:5',
    'test-fullusage.R:300:5', 'test-fullusage.R:431:5', 'test-fullusage.R:520:5',
    'test-fullusage.R:675:5', 'test-mcmc.R:327:5', 'test-mcmc.R:504:5',
    'test-mcmc.R:635:5', 'test-parallel.R:8:5', 'test-reproducibility.R:9:5',
    'test-reproducibility.R:135:5'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-draws.R:144:9'): bayes ─────────────────────────────────────────
  Error in `model_cppcode$errors`: $ operator is invalid for atomic vectors
  Backtrace:
      ▆
   1. ├─base::suppressWarnings(...) at test-draws.R:143:5
   2. │ └─base::withCallingHandlers(...)
   3. ├─rbmi::draws(d$dat, d$dat_ice, d$vars, meth, quiet = TRUE) at test-draws.R:144:9
   4. └─rbmi:::draws.bayes(d$dat, d$dat_ice, d$vars, meth, quiet = TRUE)
   5.   └─rbmi:::fit_mcmc(...)
   6.     └─rbmi:::get_stan_model()
   7.       └─rstan::stan_model(file = model_file, auto_write = TRUE, model_name = "rbmi_mmrm")
   8.         └─rstan::stanc(...)
  ── Error ('test-mcmc.R:108:13'): Verbose suppression works ─────────────────────
  Error in `model_cppcode$errors`: $ operator is invalid for atomic vectors
  Backtrace:
       ▆
    1. ├─base::suppressWarnings(...) at test-mcmc.R:106:5
    2. │ └─base::withCallingHandlers(...)
    3. ├─utils::capture.output(...) at test-mcmc.R:107:9
    4. │ └─base::withVisible(...elt(i))
    5. ├─rbmi::draws(...) at test-mcmc.R:108:13
    6. └─rbmi:::draws.bayes(...)
    7.   └─rbmi:::fit_mcmc(...)
    8.     └─rbmi:::get_stan_model()
    9.       └─rstan::stan_model(file = model_file, auto_write = TRUE, model_name = "rbmi_mmrm")
   10.         └─rstan::stanc(...)
  ── Error ('test-print.R:102:9'): print - bayesian ──────────────────────────────
  Error in `model_cppcode$errors`: $ operator is invalid for atomic vectors
  Backtrace:
      ▆
   1. ├─base::suppressWarnings(...) at test-print.R:101:5
   2. │ └─base::withCallingHandlers(...)
   3. ├─rbmi::draws(...) at test-print.R:102:9
   4. └─rbmi:::draws.bayes(...)
   5.   └─rbmi:::fit_mcmc(...)
   6.     └─rbmi:::get_stan_model()
   7.       └─rstan::stan_model(file = model_file, auto_write = TRUE, model_name = "rbmi_mmrm")
   8.         └─rstan::stanc(...)
  ── Error ('test-reproducibility.R:123:9'): bayes - set.seed produces identical results ──
  Error in `model_cppcode$errors`: $ operator is invalid for atomic vectors
  Backtrace:
      ▆
   1. ├─base::suppressWarnings(...) at test-reproducibility.R:122:5
   2. │ └─base::withCallingHandlers(...)
   3. ├─rbmi::draws(dat, dat_ice, vars, meth, quiet = TRUE) at test-reproducibility.R:123:9
   4. └─rbmi:::draws.bayes(dat, dat_ice, vars, meth, quiet = TRUE)
   5.   └─rbmi:::fit_mcmc(...)
   6.     └─rbmi:::get_stan_model()
   7.       └─rstan::stan_model(file = model_file, auto_write = TRUE, model_name = "rbmi_mmrm")
   8.         └─rstan::stanc(...)
  
  [ FAIL 4 | WARN 0 | SKIP 15 | PASS 1261 ]
  Error: Test failures
  Execution halted