Running 'testthat.R' [28s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(medfate)
  Package 'medfate' [ver. 4.8.0]
  > 
  > test_check("medfate")
  Package 'meteoland' [ver. 2.2.3]
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  c++ error: NA Idf
  [ FAIL 10 | WARN 0 | SKIP 0 | PASS 453 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_growth.R:105:3'): growth can be run disabling output ───────────
  Error in `medfate::growth_day(growthInput(exampleforest, examplesoil, SpParamsMED, 
      control), date, meteovec, latitude = 41.82592, elevation = 100, 
      slope = 0, aspect = 0, modifyInput = FALSE)`: NA Idf
  Backtrace:
      ▆
   1. ├─testthat::expect_s3_class(...) at test_growth.R:105:3
   2. │ └─testthat::quasi_label(enquo(object), arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─medfate::growth_day(...)
  ── Error ('test_growth.R:120:3'): growth_day gives same result with inner and direct calls ──
  Error in `medfate::growth_day_inner(ic, x2, date, meteovec, latitude = 41.82592, 
      elevation = 100, slope = 0, aspect = 0, modifyInput = FALSE)`: NA Idf
  Backtrace:
      ▆
   1. └─medfate::growth_day_inner(...) at test_growth.R:120:3
  ── Error ('test_growth.R:156:3'): growth_day gives same result with inner and direct calls with general communication ──
  Error in `medfate::growth_day(x2d, date, meteovec, latitude = 41.82592, 
      elevation = 100, slope = 0, aspect = 0, modifyInput = TRUE)`: NA Idf
  Backtrace:
      ▆
   1. └─medfate::growth_day(...) at test_growth.R:156:3
  ── Error ('test_post_processing.R:148:5'): Can produce all advanced subdaily spwb plots ──
  Error in `t.default(ori)`: argument is not a matrix
  Backtrace:
      ▆
   1. ├─testthat::expect_s3_class(...) at test_post_processing.R:148:5
   2. │ └─testthat::quasi_label(enquo(object), arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─base::plot(S2, "LeafPsi", subdaily = TRUE)
   5. └─medfate::plot.spwb(S2, "LeafPsi", subdaily = TRUE)
   6.   └─medfate:::.plotsubdaily(...)
   7.     └─medfate:::.extractSubdaily(x, "SunlitLeaves$Psi", dates)
   8.       ├─base::t(ori)
   9.       └─base::t.default(ori)
  ── Error ('test_post_processing.R:216:5'): Can produce all advanced spwb_day plots ──
  Error in `spwb_day(x2, examplemeteo$dates[d1], unlist(examplemeteo[d1, 
      ]), latitude = 41.82592, elevation = 100, slope = 0, aspect = 0)`: NA Idf
  Backtrace:
      ▆
   1. └─medfate::spwb_day(...) at test_post_processing.R:216:5
  ── Error ('test_post_processing.R:345:5'): Can produce all advanced subdaily growth plots ──
  Error in `matrix(nrow = numDates * numSteps, ncol = ncols + 1)`: invalid 'ncol' value (too large or NA)
  Backtrace:
      ▆
   1. ├─testthat::expect_s3_class(...) at test_post_processing.R:345:5
   2. │ └─testthat::quasi_label(enquo(object), arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─base::plot(G2, "GrossPhotosynthesis", subdaily = TRUE)
   5. └─medfate::plot.growth(G2, "GrossPhotosynthesis", subdaily = TRUE)
   6.   └─medfate:::.plotsubdaily(...)
   7.     └─medfate:::.extractSubdaily(x, type, dates)
   8.       ├─base::data.frame(...)
   9.       └─base::matrix(nrow = numDates * numSteps, ncol = ncols + 1)
  ── Error ('test_post_processing.R:379:5'): Can produce all advanced growth_day plots ──
  Error in `growth_day(x2, examplemeteo$dates[d1], unlist(examplemeteo[d1, 
      ]), latitude = 41.82592, elevation = 100, slope = 0, aspect = 0)`: NA Idf
  Backtrace:
      ▆
   1. └─medfate::growth_day(...) at test_post_processing.R:379:5
  ── Error ('test_pre_processing.R:52:3'): Stomatal regulation plot can be shown ──
  <Rcpp::exception/C++Error/error/condition>
  Error: NA Idf
  Backtrace:
      ▆
   1. ├─testthat::expect_s3_class(...) at test_pre_processing.R:52:3
   2. │ └─testthat::quasi_label(enquo(object), arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─medfate::transp_stomatalRegulationPlot(...)
   5.   └─medfate::transp_transpirationSperry(...)
  ── Error ('test_spwb.R:114:3'): spwb_day gives same result with inner and direct calls ──
  Error in `medfate::spwb_day(x2, date, meteovec, latitude = 41.82592, elevation = 100, 
      slope = 0, aspect = 0, modifyInput = FALSE)`: NA Idf
  Backtrace:
      ▆
   1. └─medfate::spwb_day(...) at test_spwb.R:114:3
  ── Error ('test_spwb.R:149:3'): spwb_day gives same result with inner and direct calls with general communication ──
  Error in `medfate::spwb_day_inner(ic, x2i, date, meteovec, latitude = 41.82592, 
      elevation = 100, slope = 0, aspect = 0, modifyInput = TRUE)`: NA Idf
  Backtrace:
      ▆
   1. └─medfate::spwb_day_inner(...) at test_spwb.R:149:3
  
  [ FAIL 10 | WARN 0 | SKIP 0 | PASS 453 ]
  Error: Test failures
  Execution halted