Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library('testthat')
  > library('Meiosis')
  Package Meiosis, version 1.0.0
  Dominik Mueller
  Use Meiosis::seed_rng to seed the random number generator (Mersenne Twister, std::mt19937)
  Otherwise a random seed is used.
  > 
  > test_check("Meiosis")
  1. Failure: convert (@test_convert.R#21) ---------------------------------------
  `val` not equal to `ref`.
  Component 1: Component 1: Mean relative difference: 1
  Component 1: Component 2: Mean relative difference: 2
  Component 1: Component 3: Mean relative difference: 1
  Component 2: Component 1: Mean relative difference: 1.666667
  
  
  2. Failure: cross_xo (@test_meiosis.R#28) --------------------------------------
  `val` not equal to `ref`.
  Component "paternal": Component 1: Component 1: Mean relative difference: 0.8741722
  Component "paternal": Component 2: Component 1: Numeric: lengths (5, 6) differ
  Component "paternal": Component 2: Component 2: Numeric: lengths (5, 6) differ
  Component "paternal": Component 3: Component 1: Mean relative difference: 0.8741722
  Component "maternal": Component 1: Component 1: Numeric: lengths (6, 9) differ
  Component "maternal": Component 1: Component 2: Numeric: lengths (6, 9) differ
  Component "maternal": Component 3: Component 1: Mean relative difference: 2.095238
  
  
  3. Failure: cross_geno (@test_meiosis.R#44) ------------------------------------
  `val` not equal to `ref`.
  Component "paternal": Component 1: Mean relative difference: 1
  Component "paternal": Component 2: Mean relative difference: 2
  Component "paternal": Component 3: Mean relative difference: 1
  Component "maternal": Component 1: Mean relative difference: 1.666667
  
  
  testthat results ================================================================
  OK: 11 SKIPPED: 0 FAILED: 3
  1. Failure: convert (@test_convert.R#21) 
  2. Failure: cross_xo (@test_meiosis.R#28) 
  3. Failure: cross_geno (@test_meiosis.R#44) 
  
  Error: testthat unit tests failed
  Execution halted