Running ‘test-all.R’ [34s/40s]
Running the tests in ‘tests/test-all.R’ failed.
Complete output:
  > library(testthat)
  > library("cxr")
  > test_check("cxr")
  Error in all_neigh_matrix[, z] : subscript out of bounds
  cxr_pm_bootstrap ERROR : Cannot evaluate function at initial parameters 
  Error in all_neigh_matrix[, z] : subscript out of bounds
  cxr_pm_bootstrap ERROR : Cannot evaluate function at initial parameters 
  Error in all_neigh_matrix[, z] : subscript out of bounds
  cxr_pm_bootstrap ERROR : Cannot evaluate function at initial parameters 
  [ FAIL 52 | WARN 85 | SKIP 6 | PASS 115 ]
  
  ══ Skipped tests (6) ═══════════════════════════════════════════════════════════
  • On CRAN (6): 'test-functions.R:254:3', 'test-functions.R:305:3',
    'test-functions.R:357:3', 'test-functions.R:416:3',
    'test-mct_functions.R:185:3', 'test-projections.R:152:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-functions.R:146:5'): parameter form 1 returns valid object ───
  `sp_fit` is not an S3 object
  ── Failure ('test-functions.R:147:5'): parameter form 1 returns valid object ───
  `lambda` has type 'NULL', not 'double'.
  ── Failure ('test-functions.R:158:5'): parameter form 1 returns valid object ───
  `log_likelihood` has type 'NULL', not 'double'.
  ── Failure ('test-functions.R:146:5'): parameter form 1 returns valid object ───
  `sp_fit` is not an S3 object
  ── Failure ('test-functions.R:147:5'): parameter form 1 returns valid object ───
  `lambda` has type 'NULL', not 'double'.
  ── Failure ('test-functions.R:158:5'): parameter form 1 returns valid object ───
  `log_likelihood` has type 'NULL', not 'double'.
  ── Failure ('test-functions.R:146:5'): parameter form 1 returns valid object ───
  `sp_fit` is not an S3 object
  ── Failure ('test-functions.R:147:5'): parameter form 1 returns valid object ───
  `lambda` has type 'NULL', not 'double'.
  ── Failure ('test-functions.R:158:5'): parameter form 1 returns valid object ───
  `log_likelihood` has type 'NULL', not 'double'.
  ── Failure ('test-functions.R:146:5'): parameter form 1 returns valid object ───
  `sp_fit` is not an S3 object
  ── Failure ('test-functions.R:147:5'): parameter form 1 returns valid object ───
  `lambda` has type 'NULL', not 'double'.
  ── Failure ('test-functions.R:158:5'): parameter form 1 returns valid object ───
  `log_likelihood` has type 'NULL', not 'double'.
  ── Failure ('test-functions.R:191:5'): parameter form 2 returns valid object ───
  `sp_fit` is not an S3 object
  ── Failure ('test-functions.R:192:5'): parameter form 2 returns valid object ───
  `lambda` has type 'NULL', not 'double'.
  ── Failure ('test-functions.R:194:5'): parameter form 2 returns valid object ───
  `alpha_inter` has type 'NULL', not 'double'.
  ── Failure ('test-functions.R:203:5'): parameter form 2 returns valid object ───
  `log_likelihood` has type 'NULL', not 'double'.
  ── Failure ('test-functions.R:191:5'): parameter form 2 returns valid object ───
  `sp_fit` is not an S3 object
  ── Failure ('test-functions.R:192:5'): parameter form 2 returns valid object ───
  `lambda` has type 'NULL', not 'double'.
  ── Failure ('test-functions.R:194:5'): parameter form 2 returns valid object ───
  `alpha_inter` has type 'NULL', not 'double'.
  ── Failure ('test-functions.R:203:5'): parameter form 2 returns valid object ───
  `log_likelihood` has type 'NULL', not 'double'.
  ── Failure ('test-functions.R:191:5'): parameter form 2 returns valid object ───
  `sp_fit` is not an S3 object
  ── Failure ('test-functions.R:192:5'): parameter form 2 returns valid object ───
  `lambda` has type 'NULL', not 'double'.
  ── Failure ('test-functions.R:194:5'): parameter form 2 returns valid object ───
  `alpha_inter` has type 'NULL', not 'double'.
  ── Failure ('test-functions.R:203:5'): parameter form 2 returns valid object ───
  `log_likelihood` has type 'NULL', not 'double'.
  ── Failure ('test-functions.R:191:5'): parameter form 2 returns valid object ───
  `sp_fit` is not an S3 object
  ── Failure ('test-functions.R:192:5'): parameter form 2 returns valid object ───
  `lambda` has type 'NULL', not 'double'.
  ── Failure ('test-functions.R:194:5'): parameter form 2 returns valid object ───
  `alpha_inter` has type 'NULL', not 'double'.
  ── Failure ('test-functions.R:203:5'): parameter form 2 returns valid object ───
  `log_likelihood` has type 'NULL', not 'double'.
  ── Failure ('test-functions.R:236:5'): parameter form 3 returns valid object ───
  `sp_fit` is not an S3 object
  ── Failure ('test-functions.R:237:5'): parameter form 3 returns valid object ───
  `lambda` has type 'NULL', not 'double'.
  ── Failure ('test-functions.R:238:5'): parameter form 3 returns valid object ───
  `alpha_intra` has type 'NULL', not 'double'.
  ── Failure ('test-functions.R:239:5'): parameter form 3 returns valid object ───
  `alpha_inter` has type 'NULL', not 'double'.
  ── Failure ('test-functions.R:240:5'): parameter form 3 returns valid object ───
  `alpha_inter` has length 0, not length 16.
  ── Failure ('test-functions.R:249:5'): parameter form 3 returns valid object ───
  `log_likelihood` has type 'NULL', not 'double'.
  ── Failure ('test-functions.R:236:5'): parameter form 3 returns valid object ───
  `sp_fit` is not an S3 object
  ── Failure ('test-functions.R:237:5'): parameter form 3 returns valid object ───
  `lambda` has type 'NULL', not 'double'.
  ── Failure ('test-functions.R:238:5'): parameter form 3 returns valid object ───
  `alpha_intra` has type 'NULL', not 'double'.
  ── Failure ('test-functions.R:239:5'): parameter form 3 returns valid object ───
  `alpha_inter` has type 'NULL', not 'double'.
  ── Failure ('test-functions.R:240:5'): parameter form 3 returns valid object ───
  `alpha_inter` has length 0, not length 16.
  ── Failure ('test-functions.R:249:5'): parameter form 3 returns valid object ───
  `log_likelihood` has type 'NULL', not 'double'.
  ── Failure ('test-functions.R:236:5'): parameter form 3 returns valid object ───
  `sp_fit` is not an S3 object
  ── Failure ('test-functions.R:237:5'): parameter form 3 returns valid object ───
  `lambda` has type 'NULL', not 'double'.
  ── Failure ('test-functions.R:238:5'): parameter form 3 returns valid object ───
  `alpha_intra` has type 'NULL', not 'double'.
  ── Failure ('test-functions.R:239:5'): parameter form 3 returns valid object ───
  `alpha_inter` has type 'NULL', not 'double'.
  ── Failure ('test-functions.R:240:5'): parameter form 3 returns valid object ───
  `alpha_inter` has length 0, not length 16.
  ── Failure ('test-functions.R:249:5'): parameter form 3 returns valid object ───
  `log_likelihood` has type 'NULL', not 'double'.
  ── Failure ('test-functions.R:236:5'): parameter form 3 returns valid object ───
  `sp_fit` is not an S3 object
  ── Failure ('test-functions.R:237:5'): parameter form 3 returns valid object ───
  `lambda` has type 'NULL', not 'double'.
  ── Failure ('test-functions.R:238:5'): parameter form 3 returns valid object ───
  `alpha_intra` has type 'NULL', not 'double'.
  ── Failure ('test-functions.R:239:5'): parameter form 3 returns valid object ───
  `alpha_inter` has type 'NULL', not 'double'.
  ── Failure ('test-functions.R:240:5'): parameter form 3 returns valid object ───
  `alpha_inter` has length 0, not length 16.
  ── Failure ('test-functions.R:249:5'): parameter form 3 returns valid object ───
  `log_likelihood` has type 'NULL', not 'double'.
  
  [ FAIL 52 | WARN 85 | SKIP 6 | PASS 115 ]
  Error: Test failures
  Execution halted