Running ‘doRUnit.R’
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
  ── 1. Error: (unknown) (@test_UStarFilter.R#18)  ───────────────────────────────
  (0-based) yday 365 in year 1998 is invalid
  Backtrace:
   1. base::suppressMessages(...)
   3. REddyProc::fConvertTimeToPosix(...)
   4. base::strptime(...)
  
  ── 2. Error: Time Format YDH (@test_fConvertTimeToPosix.R#62)  ─────────────────
  (0-based) yday 365 in year 1995 is invalid
  Backtrace:
   1. testthat::expect_warning(...)
   6. REddyProc::fConvertTimeToPosix(...)
   7. base::strptime(...)
  
  ── 3. Error: (unknown) (@test_gapfilling.R#12)  ────────────────────────────────
  (0-based) yday 365 in year 1998 is invalid
  Backtrace:
   1. base::suppressMessages(...)
   3. REddyProc::fConvertTimeToPosix(...)
   4. base::strptime(...)
  
  ── 4. Error: (unknown) (@test_partGL.R#17)  ────────────────────────────────────
  (0-based) yday 365 in year 1998 is invalid
  Backtrace:
    1. REddyProc::getFilledExampleDETha98Data()
    2. REddyProc::Example_DETha98
    2. REddyProc::filterLongRuns(., c("NEE", "H", "LE"))
   10. REddyProc::fConvertTimeToPosix(...)
   11. base::strptime(...)
  
  ── 5. Error: (unknown) (@test_plotFingerprint.R#9)  ────────────────────────────
  (0-based) yday 365 in year 1998 is invalid
  Backtrace:
   1. base::suppressMessages(...)
   3. REddyProc::fConvertTimeToPosix(...)
   4. base::strptime(...)
  
  ── 6. Error: (unknown)  ────────────────────────────────────────────────────────
  (0-based) yday 365 in year 1998 is invalid
  Backtrace:
   1. base::suppressMessages(...)
   3. REddyProc::fConvertTimeToPosix(...)
   4. base::strptime(...)
  
  ── 7. Error: (unknown)  ────────────────────────────────────────────────────────
  (0-based) yday 365 in year 1998 is invalid
  Backtrace:
   1. base::suppressMessages(...)
   3. REddyProc::fConvertTimeToPosix(...)
   4. base::strptime(...)
  
  ── 8. Error: (unknown) (@test_uStarProc.R#14)  ─────────────────────────────────
  (0-based) yday 365 in year 1998 is invalid
  Backtrace:
   1. base::suppressMessages(...)
   3. REddyProc::fConvertTimeToPosix(...)
   4. base::strptime(...)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 117 | SKIPPED: 2 | WARNINGS: 0 | FAILED: 8 ]
  1. Error: (unknown) (@test_UStarFilter.R#18) 
  2. Error: Time Format YDH (@test_fConvertTimeToPosix.R#62) 
  3. Error: (unknown) (@test_gapfilling.R#12) 
  4. Error: (unknown) (@test_partGL.R#17) 
  5. Error: (unknown) (@test_plotFingerprint.R#9) 
  6. Error: (unknown) 
  7. Error: (unknown) 
  8. Error: (unknown) (@test_uStarProc.R#14) 
  
  Error: testthat unit tests failed
  Execution halted