Running ‘testthat.R’ [31s/44s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(mixAR)
  > 
  > options(useFancyQuotes = FALSE)
  > test_check("mixAR")
  [ FAIL 4 | WARN 0 | SKIP 7 | PASS 324 ]
  
  ══ Skipped tests (7) ═══════════════════════════════════════════════════════════
  • !covr::in_covr() is TRUE (1): 'test-mixARreg.R:29:5'
  • empty test (6): 'test-dist.R:1:1', 'test-mixARnoise_sim.R:1:1',
    'test-mixARsim.R:3:1', 'test-mixComp.R:1:1', 'test-predict.R:52:1',
    'test-unswitch.R:1:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-fit_mixAR.R:10:1'): fit_mixAR works ────────────────────────────
  Error in `(function (cond) 
  .Internal(C_tryCatchHelper(addr, 1L, cond)))(structure(list(message = "there is no package called 'fma'", 
      call = loadNamespace(x), package = "fma", lib.loc = NULL), class = c("packageNotFoundError", 
  "error", "condition")))`: error in evaluating the argument 'x' in selecting a method for function 'fit_mixAR': there is no package called 'fma'
  Backtrace:
      ▆
   1. ├─mixAR::fit_mixAR(fma::ibmclose, exampleModels$WL_ibm, fix = "shift") at test-fit_mixAR.R:10:1
   2. ├─base::loadNamespace(x)
   3. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   5. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   6. │ └─base::stop(cond)
   7. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-mixAR.R:148:1'): mixAR and new() for mixAR work ────────────────
  Error in `(function (cond) 
  .Internal(C_tryCatchHelper(addr, 1L, cond)))(structure(list(message = "there is no package called 'fma'", 
      call = loadNamespace(x), package = "fma", lib.loc = NULL), class = c("packageNotFoundError", 
  "error", "condition")))`: error in evaluating the argument 'xcond' in selecting a method for function 'mix_pdf': there is no package called 'fma'
  Backtrace:
      ▆
   1. ├─mixAR::mix_pdf(exampleModels$WL_ibm, xcond = as.numeric(fma::ibmclose)) at test-mixAR.R:148:1
   2. ├─base::loadNamespace(x)
   3. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   5. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   6. │ └─base::stop(cond)
   7. └─base (local) `<fn>`(`<pckgNtFE>`)
  ── Error ('test-mixARemFixedPoint.R:12:5'): mixARemFixedPoint works ────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'fma'
  Backtrace:
      ▆
   1. ├─mixAR::mixARemFixedPoint(fma::ibmclose, m0) at test-mixARemFixedPoint.R:12:5
   2. └─base::loadNamespace(x)
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base (local) withOneRestart(expr, restarts[[1L]])
   5.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-mix_se.R:24:5'): mix_se works ──────────────────────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'fma'
  Backtrace:
      ▆
   1. ├─base::diff(fma::ibmclose) at test-mix_se.R:24:5
   2. └─base::loadNamespace(x)
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base (local) withOneRestart(expr, restarts[[1L]])
   5.       └─base (local) doWithOneRestart(return(expr), restart)
  
  [ FAIL 4 | WARN 0 | SKIP 7 | PASS 324 ]
  Error: Test failures
  Execution halted