Running ‘testthat.R’ [5s/8s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(GMSE)
  > 
  > test_check("GMSE")
  ── 1. Failure: Resource ages are initialised correctly (@test-make_resource.R#46
  c(min(res[, 12]), max(res[, 12])) not equal to c(1, 5).
  1/2 mismatches
  [2] 4 - 5 == -1
  
  ── 2. Failure: Observation model has managers marking resources (@test-observati
  obs[[2]][1, 11] not equal to 1483.
  1/1 mismatches
  [1] 1646 - 1483 == 163
  
  ── 3. Failure: Resources can move during observation (@test-observation.R#87)  ─
  min(obs[[1]][, 5] - res[, 5]) not equal to -8.
  1/1 mismatches
  [1] -9 - -8 == -1
  
  ── 4. Failure: Resources can move during observation (@test-observation.R#88)  ─
  min(obs[[1]][, 6] - res[, 6]) not equal to -9.
  1/1 mismatches
  [1] -8 - -9 == 1
  
  ── 5. Failure: Resources can move during observation (@test-observation.R#89)  ─
  max(obs[[1]][, 5] - res[, 5]) not equal to 8.
  1/1 mismatches
  [1] 9 - 8 == 1
  
  ── 6. Failure: Dimensions of resource array are correct (@test-resource.R#46)  ─
  dim(res_res[[1]]) not equal to c(77, 20).
  1/2 mismatches
  [1] 76 - 77 == -1
  
  ── 7. Failure: Resource model doesn't alter parameters (@test-resource.R#53)  ──
  dim(res_res[[1]]) not equal to c(77, 20).
  1/2 mismatches
  [1] 76 - 77 == -1
  
  ── 8. Failure: Resource model updates resource number in paras (@test-resource.R
  res_res[[3]][33] not equal to 77.
  1/1 mismatches
  [1] 76 - 77 == -1
  
  [1] "Initialising simulations ... "
  ── 9. Failure: Users act according to costs (@test-user.R#95)  ─────────────────
  usem[[4]][1, 8:13, 2] not equal to c(0, 0, 1, 0, 0, 0).
  2/6 mismatches (average diff: 3.5)
  [3] 0 - 1 == -1
  [4] 6 - 0 ==  6
  
  ── 10. Failure: Users act according to costs (@test-user.R#96)  ────────────────
  usem[[4]][2, 8:13, 2] not equal to c(0, 0, 0, 0, 0, 0).
  1/6 mismatches
  [2] 3 - 0 == 3
  
  ── 11. Failure: Users act according to costs (@test-user.R#97)  ────────────────
  usem[[4]][3, 8:13, 2] not equal to c(0, 0, 3, 6, 0, 0).
  2/6 mismatches (average diff: 4)
  [3] 0 - 3 == -3
  [4] 1 - 6 == -5
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 142 SKIPPED: 0 FAILED: 11
  1. Failure: Resource ages are initialised correctly (@test-make_resource.R#46) 
  2. Failure: Observation model has managers marking resources (@test-observation.R#77) 
  3. Failure: Resources can move during observation (@test-observation.R#87) 
  4. Failure: Resources can move during observation (@test-observation.R#88) 
  5. Failure: Resources can move during observation (@test-observation.R#89) 
  6. Failure: Dimensions of resource array are correct (@test-resource.R#46) 
  7. Failure: Resource model doesn't alter parameters (@test-resource.R#53) 
  8. Failure: Resource model updates resource number in paras (@test-resource.R#59) 
  9. Failure: Users act according to costs (@test-user.R#95) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted