- using R Under development (unstable) (2025-12-19 r89206)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-15 (Debian 15.2.0-11) 15.2.0
GNU Fortran (Debian 15.2.0-11) 15.2.0
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
- checking for file ‘mbr/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘mbr’ version ‘0.0.1’
- package encoding: UTF-8
- checking CRAN incoming feasibility ... [1s/2s] NOTE
Maintainer: ‘Hung Nguyen <ntthung@gmail.com>’
No Authors@R field in DESCRIPTION.
Please add one, modifying
Authors@R: person(given = "Hung",
family = "Nguyen",
role = c("aut", "cre"),
email = "ntthung@gmail.com")
as necessary.
- 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 executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘mbr’ can be installed ... OK
See the install log for details.
- checking package directory ... OK
- checking for future file timestamps ... 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 ... [2s/2s] OK
- checking whether the package can be loaded with stated dependencies ... [2s/2s] OK
- checking whether the package can be unloaded cleanly ... [2s/2s] OK
- checking whether the namespace can be loaded with stated dependencies ... [2s/2s] OK
- checking whether the namespace can be unloaded cleanly ... [2s/2s] OK
- checking loading without being on the library search path ... [2s/3s] 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 ... [11s/12s] OK
- checking Rd files ... [0s/1s] OK
- checking Rd metadata ... OK
- checking Rd line widths ... 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/0s] OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [2s/3s] ERROR
Running examples in ‘mbr-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: cv_mb
> ### Title: Cross-validation
> ### Aliases: cv_mb
>
> ### ** Examples
>
> cvFolds <- make_Z(1922:2003, nRuns = 50, frac = 0.25, contiguous = TRUE)
> cv <- cv_mb(p1Seasonal, pc3seasons, cvFolds, 1750, log.trans = 1:3, return.type = 'metrics')
Error in `[.data.table`(metrics, , `:=`(fval, fval), by = season) :
attempt access index 6/6 in VECTOR_ELT
Calls: cv_mb -> rbindlist -> lapply -> FUN -> [ -> [.data.table
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [3s/3s] ERROR
Running ‘testthat.R’ [3s/3s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(mbr)
>
> test_check("mbr")
Saving _problems/test-p1-6.R
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-p1.R:6:1'): (code run outside of `test_that()`) ────────────────
Error in ``[.data.table`(metrics, , `:=`(fval, fval), by = season)`: attempt access index 6/6 in VECTOR_ELT
Backtrace:
▆
1. └─mbr::cv_mb(...) at test-p1.R:6:1
2. ├─data.table::rbindlist(lapply(cv.folds, one_cv), idcol = "rep")
3. └─base::lapply(cv.folds, one_cv)
4. └─mbr (local) FUN(X[[i]], ...)
5. ├─metrics[, `:=`(fval, fval), by = season]
6. └─data.table:::`[.data.table`(metrics, , `:=`(fval, fval), by = season)
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ]
Error:
! Test failures.
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [3s/4s] ERROR
Error(s) in re-building vignettes:
...
--- re-building ‘Mass-balance-adjusted-regression.Rmd’ using rmarkdown
Quitting from Mass-balance-adjusted-regression.Rmd:73-94 [unnamed-chunk-7]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `[.data.table`:
! attempt access index 6/6 in VECTOR_ELT
---
Backtrace:
▆
1. └─mbr::cv_mb(...)
2. ├─data.table::rbindlist(lapply(cv.folds, one_cv), idcol = "rep")
3. └─base::lapply(cv.folds, one_cv)
4. └─mbr (local) FUN(X[[i]], ...)
5. ├─metrics[, `:=`(fval, fval), by = season]
6. └─data.table:::`[.data.table`(metrics, , `:=`(fval, fval), by = season)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'Mass-balance-adjusted-regression.Rmd' failed with diagnostics:
attempt access index 6/6 in VECTOR_ELT
--- failed re-building ‘Mass-balance-adjusted-regression.Rmd’
SUMMARY: processing the following file failed:
‘Mass-balance-adjusted-regression.Rmd’
Error: Vignette re-building failed.
Execution halted
- checking PDF version of manual ... [4s/5s] OK
- checking HTML version of manual ... [1s/1s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 3 ERRORs, 1 NOTE