* using log directory 'd:/Rcompile/CRANpkg/local/4.6/LWFBrook90R.Rcheck' * using R Under development (unstable) (2025-12-23 r89222 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 14.3.0 GNU Fortran (GCC) 14.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'LWFBrook90R/DESCRIPTION' ... OK * this is package 'LWFBrook90R' version '0.6.3' * 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 'LWFBrook90R' can be installed ... OK * used C compiler: 'gcc.exe (GCC) 14.3.0' * used Fortran compiler: 'GNU Fortran (GCC) 14.3.0' * checking installed package size ... OK * checking package directory ... OK * checking 'build' 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 ... [0s] OK * checking whether the package can be loaded with stated dependencies ... [0s] OK * checking whether the package can be unloaded cleanly ... [0s] OK * checking whether the namespace can be loaded with stated dependencies ... [0s] OK * checking whether the namespace can be unloaded cleanly ... [1s] OK * checking loading without being on the library search path ... [0s] 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 ... [5s] OK * checking Rd files ... [1s] 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 line endings in Makefiles ... OK * checking compilation flags in Makevars ... OK * checking for GNU extensions in Makefiles ... OK * checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK * checking use of PKG_*FLAGS in Makefiles ... OK * checking pragmas in C/C++ headers and code ... OK * checking compiled code ... OK * checking usage of KIND in Fortran files ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [4s] ERROR Running examples in 'LWFBrook90R-Ex.R' failed The error most likely occurred in: > ### Name: process_outputs_LWFB90 > ### Title: Aggregate and group model outputs similar to ancient LWFB90 > ### textfile outputs (.ASC-files) > ### Aliases: process_outputs_LWFB90 > > ### ** Examples > > data("slb1_soil") > data("slb1_meteo") > opts <- set_optionsLWFB90(startdate = as.Date("2002-06-01"), enddate = as.Date("2002-06-05")) > parms <- set_paramLWFB90() > soil <- cbind(slb1_soil, hydpar_wessolek_tab(texture = slb1_soil$texture)) > > outsel <- set_outputLWFB90() > outsel[,] <- 1L > > res <- run_LWFB90(options_b90 = opts, + param_b90 = parms, + climate = slb1_meteo, + soil = soil) Error in `[.data.table`(soil_dt, , `:=`(mat, .GRP), by = list(ths, thr, : attempt access index 17/17 in VECTOR_ELT Calls: run_LWFB90 -> soil_to_param -> [ -> [.data.table Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [9s] ERROR Running 'testthat.R' [9s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(LWFBrook90R) > > test_check("LWFBrook90R") Saving _problems/test-multirun-13.R Saving _problems/test-options-18.R Saving _problems/test-runLWFB90-17.R Saving _problems/test-runLWFB90_errors-26.R [ FAIL 4 | WARN 0 | SKIP 1 | PASS 9 ] ══ Skipped tests (1) ═══════════════════════════════════════════════════════════ • Will fail as long as the source codes differ slightly?! (1): 'test-output_vs_b90exe.R:1:1' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-multirun.R:13:1'): (code run outside of `test_that()`) ───────── Error in ``[.data.table`(soil_dt, , `:=`(mat, .GRP), by = list(ths, thr, alpha, npar, ksat, tort, gravel))`: attempt access index 17/17 in VECTOR_ELT Backtrace: ▆ 1. └─LWFBrook90R::soil_to_param(soil) at test-multirun.R:13:1 2. ├─...[] 3. └─data.table:::`[.data.table`(...) ── Error ('test-options.R:15:3'): Precipitation correction works ─────────────── Error in ``[.data.table`(soil_dt, , `:=`(mat, .GRP), by = list(ths, thr, alpha, npar, ksat, tort, gravel))`: attempt access index 17/17 in VECTOR_ELT Backtrace: ▆ 1. └─LWFBrook90R::run_LWFB90(...) at test-options.R:15:3 2. └─LWFBrook90R::soil_to_param(soil, options_b90$imodel) 3. ├─...[] 4. └─data.table:::`[.data.table`(...) ── Error ('test-runLWFB90.R:14:1'): (code run outside of `test_that()`) ──────── Error in ``[.data.table`(soil_dt, , `:=`(mat, .GRP), by = list(ths, thr, alpha, npar, ksat, tort, gravel))`: attempt access index 17/17 in VECTOR_ELT Backtrace: ▆ 1. └─LWFBrook90R::run_LWFB90(...) at test-runLWFB90.R:14:1 2. └─LWFBrook90R::soil_to_param(soil, options_b90$imodel) 3. ├─...[] 4. └─data.table:::`[.data.table`(...) ── Error ('test-runLWFB90_errors.R:26:1'): (code run outside of `test_that()`) ── Error in ``[.data.table`(soil_dt, , `:=`(mat, .GRP), by = list(ths, thr, alpha, npar, ksat, tort, gravel))`: attempt access index 17/17 in VECTOR_ELT Backtrace: ▆ 1. └─LWFBrook90R::soil_to_param(soil_bad) at test-runLWFB90_errors.R:26:1 2. ├─...[] 3. └─data.table:::`[.data.table`(...) [ FAIL 4 | WARN 0 | SKIP 1 | PASS 9 ] Error: ! Test failures. Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [15s] ERROR Error(s) in re-building vignettes: --- re-building 'LWFBook90R-1-Intro.Rmd' using rmarkdown --- finished re-building 'LWFBook90R-1-Intro.Rmd' --- re-building 'LWFBrook90R-2-Options_Param.Rmd' using rmarkdown Quitting from LWFBrook90R-2-Options_Param.Rmd:301-325 [unnamed-chunk-10] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error in `[.data.table`: ! attempt access index 17/17 in VECTOR_ELT --- Backtrace: ▆ 1. └─LWFBrook90R::run_LWFB90(...) 2. └─LWFBrook90R::soil_to_param(soil, options_b90$imodel) 3. ├─...[] 4. └─data.table:::`[.data.table`(...) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'LWFBrook90R-2-Options_Param.Rmd' failed with diagnostics: attempt access index 17/17 in VECTOR_ELT --- failed re-building 'LWFBrook90R-2-Options_Param.Rmd' --- re-building 'LWFBrook90R-3-Multiruns.Rmd' using rmarkdown --- finished re-building 'LWFBrook90R-3-Multiruns.Rmd' --- re-building 'LWFBrook90R-4-Multisite-Runs.Rmd' using rmarkdown Quitting from LWFBrook90R-4-Multisite-Runs.Rmd:109-117 [unnamed-chunk-8] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error in `[.data.table`: ! attempt access index 17/17 in VECTOR_ELT --- Backtrace: ▆ 1. └─LWFBrook90R::run_LWFB90(...) 2. └─LWFBrook90R::soil_to_param(soil, options_b90$imodel) 3. ├─...[] 4. └─data.table:::`[.data.table`(...) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'LWFBrook90R-4-Multisite-Runs.Rmd' failed with diagnostics: attempt access index 17/17 in VECTOR_ELT --- failed re-building 'LWFBrook90R-4-Multisite-Runs.Rmd' SUMMARY: processing the following files failed: 'LWFBrook90R-2-Options_Param.Rmd' 'LWFBrook90R-4-Multisite-Runs.Rmd' Error: Vignette re-building failed. Execution halted * checking PDF version of manual ... [20s] OK * checking HTML version of manual ... [9s] OK * DONE Status: 3 ERRORs