Running 'testthat.R' [11s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(RZooRoH)
  > 
  > test_check("RZooRoH")
  [1] "Number of positions in original file ::"
  [2] "14831"                                  
  [1] "Number of positions after MAF filtering  ::"
  [2] "14831"                                      
  [1] "Number of positions in original file ::"
  [2] "14831"                                  
  [1] "Number of positions after MAF filtering  ::"
  [2] "11371"                                      
  [1] "Number of positions in original file ::"
  [2] "10000"                                  
  [1] "Number of positions after MAF filtering  ::"
  [2] "9598"                                       
  -- 1. Failure: Reading genosim (@test1.R#24)  ----------------------------------
  round(data1@freqs[20], 2) not equal to 0.52.
  1/1 mismatches
  [1] 0.53 - 0.52 == 0.01
  
  [1] "Number of positions in original file ::"
  [2] "1000"                                   
  [1] "Number of positions after MAF filtering  ::"
  [2] "1000"                                       
  [1] "Number of positions in original file ::"
  [2] "1000"                                   
  [1] "Number of positions after MAF filtering  ::"
  [2] "1000"                                       
  [1] "Number of positions in original file ::"
  [2] "1000"                                   
  [1] "Number of positions after MAF filtering  ::"
  [2] "1000"                                       
  [1] "Number of positions in original file ::"
  [2] "1000"                                   
  [1] "Number of positions after MAF filtering  ::"
  [2] "1000"                                       
  [1] "Number of positions in original file ::"
  [2] "6370"                                   
  [1] "Number of positions after MAF filtering  ::"
  [2] "6370"                                       
  final  value 6127.228984 
  converged
  [1] "Number of positions in original file ::"
  [2] "6370"                                   
  [1] "Number of positions after MAF filtering  ::"
  [2] "6370"                                       
  [1] "EM algorithm, iterations and loglik :: 101 -6128.59636506626"
  [1] "EM algorithm, iterations and loglik :: 101 -5767.65950055702"
  [1] "Number of positions in original file ::"
  [2] "6370"                                   
  [1] "Number of positions after MAF filtering  ::"
  [2] "6370"                                       
  final  value 6127.228984 
  converged
  final  value 5767.659061 
  converged
  final  value 5763.247991 
  converged
  final  value 5809.962884 
  converged
  final  value 5758.887693 
  converged
  final  value 5383.740551 
  converged
  [1] "Number of positions in original file ::"
  [2] "6370"                                   
  [1] "Number of positions after MAF filtering  ::"
  [2] "6370"                                       
  final  value 6128.132841 
  converged
  final  value 5768.035614 
  converged
  final  value 5762.587394 
  converged
  final  value 5811.283672 
  converged
  final  value 5760.370243 
  converged
  final  value 5387.766858 
  converged
  == testthat results  ===========================================================
  [ OK: 60 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 1 ]
  1. Failure: Reading genosim (@test1.R#24) 
  
  Error: testthat unit tests failed
  Execution halted