CRAN Package Check Results for Package mbr

Last updated on 2025-12-20 09:49:51 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.0.1 10.93 97.05 107.98 NOTE
r-devel-linux-x86_64-debian-gcc 0.0.1 7.28 65.89 73.17 ERROR
r-devel-linux-x86_64-fedora-clang 0.0.1 19.00 144.47 163.47 ERROR
r-devel-linux-x86_64-fedora-gcc 0.0.1 17.00 147.54 164.54 ERROR
r-devel-windows-x86_64 0.0.1 12.00 104.00 116.00 OK
r-patched-linux-x86_64 0.0.1 9.20 88.43 97.63 OK
r-release-linux-x86_64 0.0.1 9.72 88.80 98.52 OK
r-release-macos-arm64 0.0.1 OK
r-release-macos-x86_64 0.0.1 7.00 95.00 102.00 OK
r-release-windows-x86_64 0.0.1 13.00 104.00 117.00 OK
r-oldrel-macos-arm64 0.0.1 OK
r-oldrel-macos-x86_64 0.0.1 6.00 71.00 77.00 OK
r-oldrel-windows-x86_64 0.0.1 16.00 128.00 144.00 OK

Check Details

Version: 0.0.1
Check: CRAN incoming feasibility
Result: 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. Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc

Version: 0.0.1
Check: examples
Result: 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 Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.0.1
Check: tests
Result: 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 Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.0.1
Check: re-building of vignette outputs
Result: 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 Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.0.1
Check: dependencies in R code
Result: NOTE Namespace in Imports field not imported from: ‘MASS’ All declared Imports should be used. Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc

Version: 0.0.1
Check: examples
Result: ERROR Running examples in ‘mbr-Ex.R’ failed The error most likely occurred in: > ### 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 Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc

Version: 0.0.1
Check: tests
Result: ERROR Running ‘testthat.R’ [6s/16s] 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 Flavor: r-devel-linux-x86_64-fedora-clang

Version: 0.0.1
Check: re-building of vignette outputs
Result: 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 Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc

Version: 0.0.1
Check: tests
Result: ERROR Running ‘testthat.R’ 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 Flavor: r-devel-linux-x86_64-fedora-gcc