Running ‘testthat.R’ [13s/15s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(imagefluency)
  > 
  > test_check("imagefluency")
  Saving _problems/test_complexity-37.R
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 108 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test_complexity.R:37:3'): img_complexity normalizes input image if necessary ──
  Expected `img_complexity(array(100:500, dim = c(50, 50, 3)))` to equal 0.1111398.
  Differences:
  1/1 mismatches
  [1] 0.0915 - 0.111 == -0.0196
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 108 ]
  Error:
  ! Test failures.
  Execution halted
Running ‘testthat.R’ [12s/17s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(imagefluency)
  > 
  > test_check("imagefluency")
  Saving _problems/test_complexity-37.R
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 108 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test_complexity.R:37:3'): img_complexity normalizes input image if necessary ──
  Expected `img_complexity(array(100:500, dim = c(50, 50, 3)))` to equal 0.1111398.
  Differences:
  1/1 mismatches
  [1] 0.0981 - 0.111 == -0.0131
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 108 ]
  Error:
  ! Test failures.
  Execution halted