* using log directory 'd:/Rcompile/CRANpkg/local/4.5/medfate.Rcheck' * using R Under development (unstable) (2025-03-11 r87944 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 14.2.0 GNU Fortran (GCC) 14.2.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'medfate/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'medfate' version '4.8.0' * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'medfate' can be installed ... OK * used C++ compiler: 'g++.exe (GCC) 14.2.0' * checking installed package size ... INFO installed size is 5.8Mb sub-directories of 1Mb or more: libs 4.5Mb * checking package directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [2s] OK * checking whether the package can be loaded with stated dependencies ... [1s] OK * checking whether the package can be unloaded cleanly ... [1s] OK * checking whether the namespace can be loaded with stated dependencies ... [1s] OK * checking whether the namespace can be unloaded cleanly ... [2s] OK * checking loading without being on the library search path ... [2s] OK * checking whether startup messages can be suppressed ... [1s] OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [24s] OK * checking Rd files ... [4s] OK * checking Rd metadata ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking contents of 'data' directory ... OK * checking data for non-ASCII characters ... [0s] OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking R/sysdata.rda ... OK * checking line endings in C/C++/Fortran sources/headers ... OK * checking pragmas in C/C++ headers and code ... OK * checking compiled code ... OK * checking examples ... [10s] ERROR Running examples in 'medfate-Ex.R' failed The error most likely occurred in: > ### Name: plot.spwb_day > ### Title: Plots simulation results for one day > ### Aliases: plot.spwb_day plot.growth_day plot.pwb_day > > ### ** Examples > > #Load example daily meteorological data > data(examplemeteo) > > #Load example plot plant data > data(exampleforest) > > #Default species parameterization > data(SpParamsMED) > > #Define soil with default soil params (2 layers) > examplesoil <- defaultSoilParams(4) > > #Switch to 'Sperry' transpiration mode > control <- defaultControl("Sperry") > > #Enable subdaily results for plotting > control["subdailyResults"] <- TRUE > > #Initialize model inputs > x2 <- spwbInput(exampleforest,examplesoil, SpParamsMED, control) > > #Simulate one day only > d <- 100 > date <- examplemeteo$dates[d] > meteovec <- unlist(examplemeteo[d,]) > sd2 <- spwb_day(x2, date, meteovec, + latitude = 41.82592, elevation = 100, slope= 0, aspect = 0) Package 'meteoland' [ver. 2.2.3] Error in spwb_day(x2, date, meteovec, latitude = 41.82592, elevation = 100, : NA Idf Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [28s] ERROR 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 ── 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 * checking PDF version of manual ... [35s] OK * checking HTML version of manual ... [19s] OK * DONE Status: 2 ERRORs