Running 'testthat.R' [3s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(coconots)
  > 
  > test_check("coconots")
  [ FAIL 17 | WARN 0 | SKIP 13 | PASS 0 ]
  
  ══ Skipped tests (13) ══════════════════════════════════════════════════════════
  • On CRAN (13): 'test-coconots.R:3:3', 'test-coconots.R:8:3',
    'test-coconots.R:29:3', 'test-coconots.R:51:3', 'test-coconots.R:73:3',
    'test-coconots.R:96:3', 'test-coconots.R:126:3', 'test-coconots.R:154:3',
    'test-coconots.R:182:3', 'test-coconots.R:453:3', 'test-coconots.R:468:3',
    'test-coconots.R:484:3', 'test-coconots.R:499:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-coconots.R:214:3'): GP2Works_constr ────────────────────────────
  Error in `cocoSim_base(type = type, order = order, par = par, size = size, 
      seasonality = seasonality, init = init)`: The option 'init' must either be NULL or a numeric vector
  Backtrace:
      ▆
   1. └─coconots::cocoSim(order = 2, type = "GP", par = par, length = length) at test-coconots.R:214:2
   2.   └─coconots:::cocoSim_base(...)
  ── Error ('test-coconots.R:224:3'): Poisson2Works_constr ───────────────────────
  Error in `cocoSim_base(type = type, order = order, par = par, size = size, 
      seasonality = seasonality, init = init)`: The option 'init' must either be NULL or a numeric vector
  Backtrace:
      ▆
   1. └─coconots::cocoSim(order = 2, type = "Poisson", par = par, length = length) at test-coconots.R:224:2
   2.   └─coconots:::cocoSim_base(...)
  ── Error ('test-coconots.R:234:3'): GP1Works_constr ────────────────────────────
  Error in `cocoSim_base(type = type, order = order, par = par, size = size, 
      seasonality = seasonality, init = init)`: The option 'init' must either be NULL or a numeric vector
  Backtrace:
      ▆
   1. └─coconots::cocoSim(order = 1, type = "GP", par = par, length = length) at test-coconots.R:234:2
   2.   └─coconots:::cocoSim_base(...)
  ── Error ('test-coconots.R:244:3'): Poisson1Works_constr ───────────────────────
  Error in `cocoSim_base(type = type, order = order, par = par, size = size, 
      seasonality = seasonality, init = init)`: The option 'init' must either be NULL or a numeric vector
  Backtrace:
      ▆
   1. └─coconots::cocoSim(order = 1, type = "Poisson", par = par, length = length) at test-coconots.R:244:2
   2.   └─coconots:::cocoSim_base(...)
  ── Error ('test-coconots.R:260:3'): Poisson1Works_cov_constr ───────────────────
  Error in `cocoSim_cov(type = type, order = order, par = par, size = size, 
      xreg = xreg, seasonality = seasonality, init = init)`: The option 'init' must either be NULL or a numeric vector
  Backtrace:
      ▆
   1. └─coconots::cocoSim(...) at test-coconots.R:260:2
   2.   └─coconots:::cocoSim_cov(...)
  ── Error ('test-coconots.R:276:3'): GP1Works_cov_constr ────────────────────────
  Error in `cocoSim_cov(type = type, order = order, par = par, size = size, 
      xreg = xreg, seasonality = seasonality, init = init)`: The option 'init' must either be NULL or a numeric vector
  Backtrace:
      ▆
   1. └─coconots::cocoSim(...) at test-coconots.R:276:2
   2.   └─coconots:::cocoSim_cov(...)
  ── Error ('test-coconots.R:292:3'): GP2Works_cov_uncosntrained ─────────────────
  Error in `cocoSim_cov(type = type, order = order, par = par, size = size, 
      xreg = xreg, seasonality = seasonality, init = init)`: The option 'init' must either be NULL or a numeric vector
  Backtrace:
      ▆
   1. └─coconots::cocoSim(...) at test-coconots.R:292:2
   2.   └─coconots:::cocoSim_cov(...)
  ── Error ('test-coconots.R:309:3'): Poisson2Works_cov_constr ───────────────────
  Error in `cocoSim_cov(type = type, order = order, par = par, size = size, 
      xreg = xreg, seasonality = seasonality, init = init)`: The option 'init' must either be NULL or a numeric vector
  Backtrace:
      ▆
   1. └─coconots::cocoSim(...) at test-coconots.R:309:2
   2.   └─coconots:::cocoSim_cov(...)
  ── Error ('test-coconots.R:323:3'): initialize_time_series ─────────────────────
  Error in `cocoSim_base(type = type, order = order, par = par, size = size, 
      seasonality = seasonality, init = init)`: The option 'init' must either be NULL or a numeric vector
  Backtrace:
      ▆
   1. └─coconots::cocoSim(order = 2, type = "GP", par = par, length = length) at test-coconots.R:323:2
   2.   └─coconots:::cocoSim_base(...)
  ── Error ('test-coconots.R:334:3'): custom_start_values_GP2 ────────────────────
  Error in `cocoSim_base(type = type, order = order, par = par, size = size, 
      seasonality = seasonality, init = init)`: The option 'init' must either be NULL or a numeric vector
  Backtrace:
      ▆
   1. └─coconots::cocoSim(order = 2, type = "GP", par = par, length = length) at test-coconots.R:334:2
   2.   └─coconots:::cocoSim_base(...)
  ── Error ('test-coconots.R:344:3'): custom_start_values_Poisson2 ───────────────
  Error in `cocoSim_base(type = type, order = order, par = par, size = size, 
      seasonality = seasonality, init = init)`: The option 'init' must either be NULL or a numeric vector
  Backtrace:
      ▆
   1. └─coconots::cocoSim(order = 2, type = "Poisson", par = par, length = length) at test-coconots.R:344:2
   2.   └─coconots:::cocoSim_base(...)
  ── Error ('test-coconots.R:354:3'): custom_start_values_GP1 ────────────────────
  Error in `cocoSim_base(type = type, order = order, par = par, size = size, 
      seasonality = seasonality, init = init)`: The option 'init' must either be NULL or a numeric vector
  Backtrace:
      ▆
   1. └─coconots::cocoSim(order = 1, type = "GP", par = par, length = length) at test-coconots.R:354:2
   2.   └─coconots:::cocoSim_base(...)
  ── Error ('test-coconots.R:364:3'): custom_start_values_Poisson1 ───────────────
  Error in `cocoSim_base(type = type, order = order, par = par, size = size, 
      seasonality = seasonality, init = init)`: The option 'init' must either be NULL or a numeric vector
  Backtrace:
      ▆
   1. └─coconots::cocoSim(order = 1, type = "Poisson", par = par, length = length) at test-coconots.R:364:2
   2.   └─coconots:::cocoSim_base(...)
  ── Error ('test-coconots.R:379:3'): Poisson1Works_cov_2 ────────────────────────
  Error in `cocoSim_cov(type = type, order = order, par = par, size = size, 
      xreg = xreg, seasonality = seasonality, init = init)`: The option 'init' must either be NULL or a numeric vector
  Backtrace:
      ▆
   1. └─coconots::cocoSim(...) at test-coconots.R:379:2
   2.   └─coconots:::cocoSim_cov(...)
  ── Error ('test-coconots.R:395:3'): GP1Works_cov_2 ─────────────────────────────
  Error in `cocoSim_cov(type = type, order = order, par = par, size = size, 
      xreg = xreg, seasonality = seasonality, init = init)`: The option 'init' must either be NULL or a numeric vector
  Backtrace:
      ▆
   1. └─coconots::cocoSim(...) at test-coconots.R:395:2
   2.   └─coconots:::cocoSim_cov(...)
  ── Error ('test-coconots.R:417:3'): Poisson2Works_cov_2 ────────────────────────
  Error in `cocoSim_cov(type = type, order = order, par = par, size = size, 
      xreg = xreg, seasonality = seasonality, init = init)`: The option 'init' must either be NULL or a numeric vector
  Backtrace:
      ▆
   1. └─coconots::cocoSim(...) at test-coconots.R:417:2
   2.   └─coconots:::cocoSim_cov(...)
  ── Error ('test-coconots.R:439:3'): GP2Works_cov_2 ─────────────────────────────
  Error in `cocoSim_cov(type = type, order = order, par = par, size = size, 
      xreg = xreg, seasonality = seasonality, init = init)`: The option 'init' must either be NULL or a numeric vector
  Backtrace:
      ▆
   1. └─coconots::cocoSim(...) at test-coconots.R:439:2
   2.   └─coconots:::cocoSim_cov(...)
  
  [ FAIL 17 | WARN 0 | SKIP 13 | PASS 0 ]
  Error: Test failures
  Execution halted