Running 'doRUnit.R' [233s]
Running the tests in 'tests/doRUnit.R' failed.
Complete output:
  > #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  > #+++ call testthat unit tests in directory inst\tests +++
  > #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  > 
  > if (require("testthat", quietly = TRUE)) {
  + 	pkg <- "REddyProc"
  + 	#library(pkg, character.only = TRUE)
  + 	#test_package(pkg)
  + 	test_check(pkg)
  + } else {
  + 	warning("cannot run unit tests -- package testthat is not available")
  + }
  Loading required package: REddyProc
  [ FAIL 1 | WARN 6 | SKIP 34 | PASS 309 ]
  
  ══ Skipped tests (34) ══════════════════════════════════════════════════════════
  • On CRAN (23): 'test_UStarFilter.R:138:3', 'test_UStarFilter.R:155:3',
    'test_gapfilling.R:93:3', 'test_getExamplePath.R:9:3',
    'test_getExamplePath.R:31:3', 'test_partGL.R:586:3', 'test_partGL.R:634:3',
    'test_partGL.R:701:3', 'test_partGL.R:743:3', 'test_partGL.R:909:3',
    'test_partGL.R:976:3', 'test_partGL.R:1047:3', 'test_plotFingerprint.R:49:3',
    'test_plotFingerprint.R:54:3', 'test_plotFingerprint.R:59:3',
    'test_plotFingerprint.R:64:3', 'test_sEddyProc.R:132:3',
    'test_sEddyProc.R:149:3', 'test_sEddyProc.R:184:3', 'test_sEddyProc.R:229:3',
    'test_sEddyProc.R:243:3', 'test_uStarProc.R:25:3', 'test_uStarProc.R:59:3'
  • cannot repoduce SmoothTempSens failing (1): 'test_partGL.R:963:3'
  • empty test (8): 'test_checkval.R:6:1', 'test_checkval.R:25:1',
    'test_checkval.R:30:1', 'test_plotFingerprint.R:22:1',
    'test_plotFingerprint.R:26:1', 'test_plotFingerprint.R:34:1',
    'test_plotFingerprint.R:38:1', 'test_plotFingerprint.R:42:1'
  • only interactively test issue #34 (1): 'test_partGL.R:1029:3'
  • testing exporting (after filling) QC of several uStar thresholds takes too
    long (1): 'test_FileHandlingFormats.R:23:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_FileHandlingFormats.R:97:3'): read_from_ameriflux22 ────────────
  Error in `nrow(x)/100/num_threads`: non-numeric argument to binary operator
  Backtrace:
      ▆
   1. └─readr::write_csv(ds_af22, fname, na = "-9999") at test_FileHandlingFormats.R:97:2
   2.   └─readr::write_delim(...)
   3.     └─vroom::vroom_write(...)
   4.       └─base::Sys.getenv("VROOM_WRITE_BUFFER_LINES", nrow(x)/100/num_threads)
  
  [ FAIL 1 | WARN 6 | SKIP 34 | PASS 309 ]
  Error: Test failures
  Execution halted