Running ‘testthat.R’ [70s/114s]
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(bage)
  Loading required package: rvec
  
  Attaching package: 'rvec'
  
  The following objects are masked from 'package:stats':
  
      sd, var
  
  The following object is masked from 'package:base':
  
      rank
  
  > 
  > test_check("bage")
  [ FAIL 11 | WARN 0 | SKIP 7 | PASS 2246 ]
  
  ══ Skipped tests (7) ═══════════════════════════════════════════════════════════
  • On CRAN (7): 'test-bage_mod-methods.R:2242:5',
    'test-bage_mod-methods.R:2257:5', 'test-bage_prior-methods.R:10095:3',
    'test-bage_ssvd-methods.R:162:3', 'test-make-inputs.R:1719:3',
    'test-make-inputs.R:1728:3', 'test-make-inputs.R:1735:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-bage_prior-methods.R:1701:3'): 'draw_vals_effect' works with bage_prior_svd_rw2random - age and sex ──
  Error in `crossprod(x, y)`: requires numeric/complex matrix/vector arguments
  Backtrace:
      ▆
   1. ├─bage:::draw_vals_effect(...) at test-bage_prior-methods.R:1701:3
   2. └─bage:::draw_vals_effect.bage_prior_svd_rw2random(...)
   3.   └─bage:::make_matrix_effectfree_effect_inner(...)
   4.     ├─bage:::make_matrix_sub_orig(...)
   5.     └─bage:::make_matrix_sub_orig.bage_prior_svd_rw2random(...)
   6.       └─bage:::make_matrix_sub_orig_svd(...)
   7.         └─base::crossprod(m_constr, ans)
  ── Error ('test-bage_prior-methods.R:1739:3'): 'draw_vals_effect' works with bage_prior_svd_rw2zero - age and sex ──
  Error in `crossprod(x, y)`: requires numeric/complex matrix/vector arguments
  Backtrace:
      ▆
   1. ├─bage:::draw_vals_effect(...) at test-bage_prior-methods.R:1739:3
   2. └─bage:::draw_vals_effect.bage_prior_svd_rw2zero(...)
   3.   └─bage:::make_matrix_effectfree_effect_inner(...)
   4.     ├─bage:::make_matrix_sub_orig(...)
   5.     └─bage:::make_matrix_sub_orig.bage_prior_svd_rw2zero(...)
   6.       └─bage:::make_matrix_sub_orig_svd(...)
   7.         └─base::crossprod(m_constr, ans)
  ── Error ('test-bage_prior-methods.R:4835:3'): 'forecast_term' works with bage_prior_svd_ar - con is 'by' ──
  Error in `crossprod(x, y)`: requires numeric/complex matrix/vector arguments
  Backtrace:
      ▆
   1. ├─bage:::forecast_term(...) at test-bage_prior-methods.R:4835:3
   2. └─bage:::forecast_term.bage_prior_svd_ar(...)
   3.   ├─bage:::make_matrix_effectfree_effect(...)
   4.   └─bage:::make_matrix_effectfree_effect.bage_prior_svd_ar(...)
   5.     └─bage:::make_matrix_effectfree_effect_inner(...)
   6.       ├─bage:::make_matrix_sub_orig(...)
   7.       └─bage:::make_matrix_sub_orig.bage_prior_svd_ar(...)
   8.         └─bage:::make_matrix_sub_orig_svd(...)
   9.           └─base::crossprod(m_constr, ans)
  ── Error ('test-bage_prior-methods.R:4926:3'): 'forecast_term' works with bage_prior_svd_rwrandom - con is 'by' ──
  Error in `crossprod(x, y)`: requires numeric/complex matrix/vector arguments
  Backtrace:
      ▆
   1. ├─bage:::forecast_term(...) at test-bage_prior-methods.R:4926:3
   2. └─bage:::forecast_term.bage_prior_svd_rwrandom(...)
   3.   └─bage:::make_matrix_effectfree_effect_inner(...)
   4.     ├─bage:::make_matrix_sub_orig(...)
   5.     └─bage:::make_matrix_sub_orig.bage_prior_svd_rwrandom(...)
   6.       └─bage:::make_matrix_sub_orig_svd(...)
   7.         └─base::crossprod(m_constr, ans)
  ── Error ('test-bage_prior-methods.R:4989:3'): 'forecast_term' works with bage_prior_svd_rw2zero - con is 'by' ──
  Error in `crossprod(x, y)`: requires numeric/complex matrix/vector arguments
  Backtrace:
      ▆
   1. ├─bage:::forecast_term(...) at test-bage_prior-methods.R:4989:3
   2. └─bage:::forecast_term.bage_prior_svd_rw2zero(...)
   3.   └─bage:::make_matrix_effectfree_effect_inner(...)
   4.     ├─bage:::make_matrix_sub_orig(...)
   5.     └─bage:::make_matrix_sub_orig.bage_prior_svd_rw2zero(...)
   6.       └─bage:::make_matrix_sub_orig_svd(...)
   7.         └─base::crossprod(m_constr, ans)
  ── Error ('test-bage_prior-methods.R:9869:3'): 'make_matrix_sub_orig' works with bage_prior_svd_ar - sex x time x age interaction, con is 'by' ──
  Error in `crossprod(x, y)`: requires numeric/complex matrix/vector arguments
  Backtrace:
      ▆
   1. ├─bage:::make_matrix_sub_orig(...) at test-bage_prior-methods.R:9869:3
   2. └─bage:::make_matrix_sub_orig.bage_prior_svd_ar(...)
   3.   └─bage:::make_matrix_sub_orig_svd(...)
   4.     └─base::crossprod(m_constr, ans)
  ── Error ('test-mapping-matrices.R:789:3'): 'make_matrix_effectfree_effect' works with SVD-based matrix_sub_orig, con is 'by' ──
  Error in `crossprod(x, y)`: requires numeric/complex matrix/vector arguments
  Backtrace:
      ▆
   1. └─bage:::make_matrix_effectfree_effect_inner(...) at test-mapping-matrices.R:789:3
   2.   ├─bage:::make_matrix_sub_orig(...)
   3.   └─bage:::make_matrix_sub_orig.bage_prior_svd_rwrandom(...)
   4.     └─bage:::make_matrix_sub_orig_svd(...)
   5.       └─base::crossprod(m_constr, ans)
  ── Error ('test-mapping-matrices.R:864:3'): 'make_matrix_perm_along_to_front' works with 2 dimensions, along second ──
  Error in `crossprod(x, y)`: requires numeric/complex matrix/vector arguments
  Backtrace:
      ▆
   1. ├─testthat::expect_identical(as.matrix(crossprod(m)), diag(6)) at test-mapping-matrices.R:864:3
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─base::as.matrix(crossprod(m))
   5. └─base::crossprod(m)
  ── Error ('test-mapping-matrices.R:872:3'): 'make_matrix_perm_along_to_front' works with 3 dimensions, along second ──
  Error in `crossprod(x, y)`: requires numeric/complex matrix/vector arguments
  Backtrace:
      ▆
   1. ├─testthat::expect_identical(as.matrix(crossprod(m)), diag(12)) at test-mapping-matrices.R:872:3
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─base::as.matrix(crossprod(m))
   5. └─base::crossprod(m)
  ── Error ('test-mapping-matrices.R:911:3'): 'make_matrix_sub_orig_svd' works with bage_prior_svd_ar - time x age interaction, con is 'none' ──
  Error in `crossprod(x, y)`: requires numeric/complex matrix/vector arguments
  Backtrace:
      ▆
   1. └─bage:::make_matrix_sub_orig_svd(...) at test-mapping-matrices.R:911:3
   2.   └─base::crossprod(m_constr, ans)
  ── Error ('test-mapping-matrices.R:928:3'): 'make_matrix_sub_orig_svd' works with bage_prior_svd_ar - sex x time x age interaction, con is 'none' ──
  Error in `crossprod(x, y)`: requires numeric/complex matrix/vector arguments
  Backtrace:
      ▆
   1. └─bage:::make_matrix_sub_orig_svd(...) at test-mapping-matrices.R:928:3
   2.   └─base::crossprod(m_constr, ans)
  
  [ FAIL 11 | WARN 0 | SKIP 7 | PASS 2246 ]
  Error: Test failures
  Execution halted