Running ‘testthat.R’ [44s/53s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(partR2)
  > test_check("partR2")
  [ FAIL 11 | WARN 141 | SKIP 0 | PASS 81 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test_combinations.R:63:3'): partbatch without partvars works ──────
  R2_BMc$R2$estimate not equal to c(0.600551, 0.3910285).
  2/2 mismatches (average diff: 0.0345)
  [1] 0.559 - 0.601 == -0.0420
  [2] 0.364 - 0.391 == -0.0269
  ── Failure ('test_partR2.R:22:3'): partR2 works for some special cases ─────────
  r2_1$R2$estimate not equal to c(0.599, 0.0125, 0, 0.0124).
  3/4 mismatches (average diff: 0.0146)
  [1] 0.5573 - 0.5990 == -0.04172
  [2] 0.0114 - 0.0125 == -0.00115
  [4] 0.0113 - 0.0124 == -0.00107
  ── Failure ('test_r2.R:25:3'): R2 marginal and conditional are correct ─────────
  r2_marg$R2 not equal to 0.2.
  1/1 mismatches
  [1] 0.164 - 0.2 == -0.0362
  ── Failure ('test_r2.R:26:3'): R2 marginal and conditional are correct ─────────
  r2_cond$R2 not equal to 0.229.
  1/1 mismatches
  [1] 0.406 - 0.229 == 0.177
  ── Failure ('test_r2.R:123:3'): part R2s are correct with part_R2s() ───────────
  r2_6$estimate not equal to c(0.219, 0.02).
  2/2 mismatches (average diff: 0.0202)
  [1] 0.1814 - 0.219 == -0.03761
  [2] 0.0172 - 0.020 == -0.00282
  ── Failure ('test_r2.R:131:3'): part R2s are correct with part_R2s() ───────────
  r2_8[r2_8$term == "Year+SpeciesDiversity:I(Temperature^2)", "estimate"][[1]] not equal to 0.0210613.
  1/1 mismatches
  [1] 0.0177 - 0.0211 == -0.00336
  ── Failure ('test_varcomps.R:88:3'): Gaussian variance components are correct ──
  var_comps1$var_ran not equal to 0.2272901.
  1/1 mismatches
  [1] 0.306 - 0.227 == 0.0785
  ── Failure ('test_varcomps.R:89:3'): Gaussian variance components are correct ──
  var_comps1$var_res not equal to 0.7646179.
  1/1 mismatches
  [1] 0.749 - 0.765 == -0.016
  ── Failure ('test_varcomps.R:92:3'): Gaussian variance components are correct ──
  var_comps2$var_fix not equal to 0.4129966.
  1/1 mismatches
  [1] 0.414 - 0.413 == 0.00124
  ── Failure ('test_varcomps.R:93:3'): Gaussian variance components are correct ──
  var_comps2$var_ran not equal to 0.2048629.
  1/1 mismatches
  [1] 0.156 - 0.205 == -0.0487
  ── Failure ('test_varcomps.R:94:3'): Gaussian variance components are correct ──
  var_comps2$var_res not equal to 0.3723833.
  1/1 mismatches
  [1] 0.382 - 0.372 == 0.00999
  
  [ FAIL 11 | WARN 141 | SKIP 0 | PASS 81 ]
  Error: Test failures
  Execution halted