Running ‘testthat.R’ [12s/34s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(nandb)
  > 
  > test_check("nandb")
  1. Failure: Brightness works (@test_brightness.R#7) ----------------------------
  round(mean(brightness, na.rm = TRUE), 4) not equal to 1.0263.
  1/1 mismatches
  [1] 0.989 - 1.03 == -0.0377
  
  
  2. Failure: Brightness works (@test_brightness.R#10) ---------------------------
  round(mean(brightness, na.rm = TRUE), 4) not equal to 1.2823.
  1/1 mismatches
  [1] 1.08 - 1.28 == -0.199
  
  
  3. Failure: BrightnessTimeSeries works (@test_brightness.R#34) -----------------
  round(mean(bts, na.rm = TRUE), 3) not equal to 0.988.
  1/1 mismatches
  [1] 0.991 - 0.988 == 0.003
  
  
  4. Failure: BrightnessTimeSeries works (@test_brightness.R#40) -----------------
  round(mean(bts, na.rm = TRUE), 3) not equal to 1.181.
  1/1 mismatches
  [1] 1.1 - 1.18 == -0.081
  
  
  5. Failure: Brightnesses works (@test_brightness.R#98) -------------------------
  round(mean(unlist(brightnesses), na.rm = TRUE), 3) not equal to 1.222.
  1/1 mismatches
  [1] 1.07 - 1.22 == -0.155
  
  
  6. Failure: CorrectForBleachingFolder works (@test_detrend.R#28) ---------------
  all(...) isn't true.
  
  
  7. Failure: BestTau works (@test_detrend.R#40) ---------------------------------
  round(BestTau(img, mst = "H")) not equal to 32.
  Attributes: < Modes: list, NULL >
  Attributes: < Lengths: 1, 0 >
  Attributes: < names for target but not for current >
  Attributes: < current is not list-like >
  
  
  8. Failure: MeanIntensity works (@test_intensity.R#13) -------------------------
  round(mean(mean.intensity, na.rm = TRUE), 3) not equal to 17.237.
  1/1 mismatches
  [1] 18.4 - 17.2 == 1.13
  
  
  9. Failure: MeanIntensity works (@test_intensity.R#30) -------------------------
  round(mean(unlist(mean.intensities), na.rm = TRUE), 3) not equal to 26.659.
  1/1 mismatches
  [1] 26.6 - 26.7 == -0.031
  
  
  [1] "Now processing: /data/gannet/ripley/R/packages/tests-devel/nandb.Rcheck/nandb/extdata/50.tif."
  10. Failure: KmersFromImage works (@test_kmers.R#21) ---------------------------
  KmersFromImage(img, 1.6, tau = NA, mst = "Huang") not equal to `expected`.
  Lengths differ: 1 vs 2
  
  
  [1] "Now processing: /data/gannet/ripley/R/packages/tests-devel/nandb.Rcheck/nandb/extdata/50.tif."
  [2] "Now processing: /data/gannet/ripley/R/packages/tests-devel/nandb.Rcheck/nandb/extdata/50.tif."
  11. Failure: KmersFromImage works (@test_kmers.R#24) ---------------------------
  KmersFromImages(c(img, img), 1.6, tau = NA, mst = "Huang", seed = 8) not equal to list(expected)[c(1, 1)].
  Component 1: Numeric: lengths (1, 2) differ
  Component 2: Numeric: lengths (1, 2) differ
  
  
  [1] "Now processing: 50.tif."
  [1] "Done. Please check folder."
  12. Failure: KmerTIFFsFromBrightnessCSVs works (@test_kmers.R#48) --------------
  round(...) not equal to 2.55.
  1/1 mismatches
  [1] 0.97 - 2.55 == -1.58
  
  
  13. Failure: KmerArray works (@test_kmers.R#62) --------------------------------
  round(mean(ka), 3) not equal to 2.84.
  1/1 mismatches
  [1] 1.07 - 2.84 == -1.77
  
  
  14. Failure: Number works (@test_number.R#6) -----------------------------------
  round(mean(number, na.rm = TRUE), 4) not equal to 17.4385.
  1/1 mismatches
  [1] 18.8 - 17.4 == 1.38
  
  
  15. Failure: Numbers works (@test_number.R#74) ---------------------------------
  round(mean(unlist(numbers), na.rm = TRUE), 3) not equal to 19.916.
  1/1 mismatches
  [1] 21.4 - 19.9 == 1.51
  
  
  16. Failure: Numbers works (@test_number.R#79) ---------------------------------
  round(mean(unlist(numbers), na.rm = TRUE), 3) not equal to 15.987.
  1/1 mismatches
  [1] 18.1 - 16 == 2.07
  
  
  testthat results ================================================================
  OK: 463 SKIPPED: 0 FAILED: 16
  1. Failure: Brightness works (@test_brightness.R#7) 
  2. Failure: Brightness works (@test_brightness.R#10) 
  3. Failure: BrightnessTimeSeries works (@test_brightness.R#34) 
  4. Failure: BrightnessTimeSeries works (@test_brightness.R#40) 
  5. Failure: Brightnesses works (@test_brightness.R#98) 
  6. Failure: CorrectForBleachingFolder works (@test_detrend.R#28) 
  7. Failure: BestTau works (@test_detrend.R#40) 
  8. Failure: MeanIntensity works (@test_intensity.R#13) 
  9. Failure: MeanIntensity works (@test_intensity.R#30) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted