Running ‘testthat.R’ [31s/23s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > test_check("BioTIMEr")
  Loading required package: BioTIMEr
  Starting 2 test processes
  [ FAIL 4 | WARN 3 | SKIP 16 | PASS 59 ]
  
  ══ Skipped tests (16) ══════════════════════════════════════════════════════════
  • On CRAN (16): 'test-metrics.R:60:3', 'test-metrics.R:80:3',
    'test-metrics.R:86:3', 'test-metrics.R:92:3', 'test-metrics.R:98:3',
    'test-gridding.R:52:3', 'test-gridding.R:58:3', 'test-gridding.R:64:3',
    'test-scales.R:35:3', 'test-slopes.R:3:3', 'test-workflow_alpha.R:3:3',
    'test-workflow_beta.R:3:3', 'test-runResampling.R:42:3',
    'test-runResampling.R:81:3', 'test-runResampling.R:119:3',
    'test-runResampling.R:157:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-metrics.R:52:3'): getAlpha computes accurate biodiversity metrics ──
  result$Shannon (`actual`) not equal to `shannon_expected` (`expected`).
  
  `names(actual)` is absent
  `names(expected)` is a character vector ('1', '2', '3', '4', '5', ...)
  ── Failure ('test-metrics.R:53:3'): getAlpha computes accurate biodiversity metrics ──
  result$expShannon (`actual`) not equal to exp(shannon_expected) (`expected`).
  
  `names(actual)` is absent
  `names(expected)` is a character vector ('1', '2', '3', '4', '5', ...)
  ── Failure ('test-metrics.R:54:3'): getAlpha computes accurate biodiversity metrics ──
  result$Simpson (`actual`) not equal to `simpson_expected` (`expected`).
  
  `names(actual)` is absent
  `names(expected)` is a character vector ('1', '2', '3', '4', '5', ...)
  ── Failure ('test-metrics.R:55:3'): getAlpha computes accurate biodiversity metrics ──
  result$invSimpson (`actual`) not equal to `inv_expected` (`expected`).
  
  `names(actual)` is absent
  `names(expected)` is a character vector ('1', '2', '3', '4', '5', ...)
  
  [ FAIL 4 | WARN 3 | SKIP 16 | PASS 59 ]
  Deleting unused snapshots:
  • scales/color-continuous-cool-false.svg
  • scales/color-continuous-cool-true.svg
  • scales/color-continuous-gradient-false.svg
  • scales/color-continuous-gradient-true.svg
  • scales/color-continuous-realms-false.svg
  • scales/color-continuous-realms-true.svg
  • scales/color-continuous-warm-false.svg
  • scales/color-continuous-warm-true.svg
  • scales/color-cool-false-false.svg
  • scales/color-cool-false-true.svg
  • scales/color-cool-true-false.svg
  • scales/color-cool-true-true.svg
  • scales/color-gradient-false-false.svg
  • scales/color-gradient-false-true.svg
  • scales/color-gradient-true-false.svg
  • scales/color-gradient-true-true.svg
  • scales/color-realms-false-false.svg
  • scales/color-realms-false-true.svg
  • scales/color-realms-true-false.svg
  • scales/color-realms-true-true.svg
  • scales/color-warm-false-false.svg
  • scales/color-warm-false-true.svg
  • scales/color-warm-true-false.svg
  • scales/color-warm-true-true.svg
  • scales/fill-continuous-cool-false.svg
  • scales/fill-continuous-cool-true.svg
  • scales/fill-continuous-gradient-false.svg
  • scales/fill-continuous-gradient-true.svg
  • scales/fill-continuous-realms-false.svg
  • scales/fill-continuous-realms-true.svg
  • scales/fill-continuous-warm-false.svg
  • scales/fill-continuous-warm-true.svg
  • scales/fill-cool-false-false.svg
  • scales/fill-cool-false-true.svg
  • scales/fill-cool-true-false.svg
  • scales/fill-cool-true-true.svg
  • scales/fill-gradient-false-false.svg
  • scales/fill-gradient-false-true.svg
  • scales/fill-gradient-true-false.svg
  • scales/fill-gradient-true-true.svg
  • scales/fill-realms-false-false.svg
  • scales/fill-realms-false-true.svg
  • scales/fill-realms-true-false.svg
  • scales/fill-realms-true-true.svg
  • scales/fill-warm-false-false.svg
  • scales/fill-warm-false-true.svg
  • scales/fill-warm-true-false.svg
  • scales/fill-warm-true-true.svg
  Error: Test failures
  Execution halted