CRAN Package Check Results for Package panelr

Last updated on 2026-10-24 12:51:41 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.0.1 18.78 267.90 286.68 OK
r-devel-linux-x86_64-debian-gcc 1.0.1 13.31 184.21 197.52 OK
r-devel-linux-x86_64-fedora-clang 1.0.1 15.00 144.05 159.05 ERROR
r-devel-linux-x86_64-fedora-gcc 1.0.1 14.00 147.19 161.19 ERROR
r-devel-windows-x86_64 1.0.1 23.00 260.00 283.00 OK
r-patched-linux-x86_64 1.0.1 18.75 252.72 271.47 OK
r-release-linux-x86_64 1.0.1 17.71 250.39 268.10 OK
r-release-macos-arm64 1.0.1 5.00 60.00 65.00 OK
r-release-macos-x86_64 1.0.1 13.00 238.00 251.00 OK
r-release-windows-x86_64 1.0.1 20.00 248.00 268.00 OK
r-oldrel-macos-arm64 1.0.1 4.00 59.00 63.00 OK
r-oldrel-macos-x86_64 1.0.1 14.00 265.00 279.00 OK
r-oldrel-windows-x86_64 1.0.1 29.00 343.00 372.00 OK

Check Details

Version: 1.0.1
Check: examples
Result: ERROR Running examples in ‘panelr-Ex.R’ failed The error most likely occurred in: > ### Name: formula.wbm > ### Title: Retrieve model formulas from 'wbm' objects > ### Aliases: formula.wbm > > ### ** Examples > > data("WageData") > wages <- panel_data(WageData, id = id, wave = t) > model <- wbm(lwage ~ lag(union) + wks, data = wages) Error in model.frame.default(data = data, weights = weights, offset = offset, : invalid type (closure) for variable '(weights)' Calls: wbm ... mkFormula -> eval -> eval -> <Anonymous> -> model.frame.default Execution halted Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc

Version: 1.0.1
Check: tests
Result: ERROR Running ‘testthat.R’ [31s/81s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(panelr) Loading required package: lme4 Loading required package: Matrix Attaching package: 'panelr' The following object is masked from 'package:stats': filter > > test_check("panelr") Saving _problems/test-utils-286.R Saving _problems/test_splines-16.R Saving _problems/test_splines-26.R Saving _problems/test_splines-35.R Saving _problems/test_wbm-15.R [ FAIL 5 | WARN 0 | SKIP 0 | PASS 265 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-utils.R:286:1'): (code run outside of `test_that()`) ─────────── Error in `model.frame.default(data = data, weights = weights, offset = offset, drop.unused.levels = TRUE, formula = lwage ~ `imean(union)` + union + (1 + id))`: invalid type (closure) for variable '(weights)' Backtrace: ▆ 1. └─panelr::wbm(lwage ~ union, data = w, pvals = FALSE) at test-utils.R:286:1 2. ├─lme4::lmer(...) 3. │ └─base::eval(mc, parent.frame(1L)) 4. │ └─base::eval(mc, parent.frame(1L)) 5. ├─lme4::lFormula(...) 6. │ └─lme4:::mkFormula(...) 7. │ └─base::eval(mf, parent_env) 8. │ └─base::eval(mf, parent_env) 9. ├─stats::model.frame(...) 10. └─stats::model.frame.default(...) ── Error ('test_splines.R:16:3'): wbm works with ns() in formula ─────────────── Error in `model.frame.default(data = data, weights = weights, offset = offset, drop.unused.levels = TRUE, formula = lwage ~ +ns_exp.w1 + ns_exp.w2 + ns_exp.w3 + blk + ns_exp.b1 + ns_exp.b2 + ns_exp.b3 + (1 + id))`: invalid type (closure) for variable '(weights)' Backtrace: ▆ 1. └─panelr::wbm(lwage ~ ns(exp, df = 3) | blk, data = wages) at test_splines.R:16:3 2. ├─lme4::lmer(...) 3. │ └─base::eval(mc, parent.frame(1L)) 4. │ └─base::eval(mc, parent.frame(1L)) 5. ├─lme4::lFormula(...) 6. │ └─lme4:::mkFormula(...) 7. │ └─base::eval(mf, parent_env) 8. │ └─base::eval(mf, parent_env) 9. ├─stats::model.frame(...) 10. └─stats::model.frame.default(...) ── Error ('test_splines.R:26:3'): wbm works with bs() in formula ─────────────── Error in `model.frame.default(data = data, weights = weights, offset = offset, drop.unused.levels = TRUE, formula = lwage ~ +bs_exp.w1 + bs_exp.w2 + bs_exp.w3 + blk + bs_exp.b1 + bs_exp.b2 + bs_exp.b3 + (1 + id))`: invalid type (closure) for variable '(weights)' Backtrace: ▆ 1. ├─base::suppressWarnings(...) at test_splines.R:25:3 2. │ └─base::withCallingHandlers(...) 3. └─panelr::wbm(lwage ~ bs(exp, df = 3) | blk, data = wages) at test_splines.R:26:3 4. ├─lme4::lmer(...) 5. │ └─base::eval(mc, parent.frame(1L)) 6. │ └─base::eval(mc, parent.frame(1L)) 7. ├─lme4::lFormula(...) 8. │ └─lme4:::mkFormula(...) 9. │ └─base::eval(mf, parent_env) 10. │ └─base::eval(mf, parent_env) 11. ├─stats::model.frame(...) 12. └─stats::model.frame.default(...) ── Error ('test_splines.R:35:3'): wbm works with poly() in formula ───────────── Error in `model.frame.default(data = data, weights = weights, offset = offset, drop.unused.levels = TRUE, formula = lwage ~ +poly_exp.w1 + poly_exp.w2 + blk + poly_exp.b1 + poly_exp.b2 + (1 + id))`: invalid type (closure) for variable '(weights)' Backtrace: ▆ 1. └─panelr::wbm(lwage ~ poly(exp, degree = 2) | blk, data = wages) at test_splines.R:35:3 2. ├─lme4::lmer(...) 3. │ └─base::eval(mc, parent.frame(1L)) 4. │ └─base::eval(mc, parent.frame(1L)) 5. ├─lme4::lFormula(...) 6. │ └─lme4:::mkFormula(...) 7. │ └─base::eval(mf, parent_env) 8. │ └─base::eval(mf, parent_env) 9. ├─stats::model.frame(...) 10. └─stats::model.frame.default(...) ── Error ('test_wbm.R:15:1'): (code run outside of `test_that()`) ────────────── Error in `model.frame.default(data = data, weights = weights, offset = offset, drop.unused.levels = TRUE, formula = wks ~ `imean(union)` + `imean(lwage)` + union + lwage + blk + (1 + id))`: invalid type (closure) for variable '(weights)' Backtrace: ▆ 1. └─panelr::wbm(wks ~ union + lwage | blk, data = wages) at test_wbm.R:15:1 2. ├─lme4::lmer(...) 3. │ └─base::eval(mc, parent.frame(1L)) 4. │ └─base::eval(mc, parent.frame(1L)) 5. ├─lme4::lFormula(...) 6. │ └─lme4:::mkFormula(...) 7. │ └─base::eval(mf, parent_env) 8. │ └─base::eval(mf, parent_env) 9. ├─stats::model.frame(...) 10. └─stats::model.frame.default(...) [ FAIL 5 | WARN 0 | SKIP 0 | PASS 265 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-fedora-clang

Version: 1.0.1
Check: re-building of vignette outputs
Result: ERROR Error(s) in re-building vignettes: --- re-building ‘reshape.Rmd’ using rmarkdown [WARNING] Deprecated: --mathjax. Use --math-method=mathjax[:URL] instead. --- finished re-building ‘reshape.Rmd’ --- re-building ‘wbm.Rmd’ using rmarkdown Quitting from wbm.Rmd:238-246 [unnamed-chunk-5] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <error/rlang_error> Error in `model.frame.default()`: ! invalid type (closure) for variable '(weights)' --- Backtrace: ▆ 1. └─panelr::wbm(lwage ~ ns(exp, df = 3) | blk, data = wages) 2. ├─lme4::lmer(...) 3. │ └─base::eval(mc, parent.frame(1L)) 4. │ └─base::eval(mc, parent.frame(1L)) 5. ├─lme4::lFormula(...) 6. │ └─lme4:::mkFormula(...) 7. │ └─base::eval(mf, parent_env) 8. │ └─base::eval(mf, parent_env) 9. ├─stats::model.frame(...) 10. └─stats::model.frame.default(...) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'wbm.Rmd' failed with diagnostics: invalid type (closure) for variable '(weights)' --- failed re-building ‘wbm.Rmd’ SUMMARY: processing the following file failed: ‘wbm.Rmd’ Error: Vignette re-building failed. Execution halted Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc

Version: 1.0.1
Check: tests
Result: ERROR Running ‘testthat.R’ [30s/71s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(panelr) Loading required package: lme4 Loading required package: Matrix Attaching package: 'panelr' The following object is masked from 'package:stats': filter > > test_check("panelr") Saving _problems/test-utils-286.R Saving _problems/test_splines-16.R Saving _problems/test_splines-26.R Saving _problems/test_splines-35.R Saving _problems/test_wbm-15.R [ FAIL 5 | WARN 0 | SKIP 0 | PASS 265 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-utils.R:286:1'): (code run outside of `test_that()`) ─────────── Error in `model.frame.default(data = data, weights = weights, offset = offset, drop.unused.levels = TRUE, formula = lwage ~ `imean(union)` + union + (1 + id))`: invalid type (closure) for variable '(weights)' Backtrace: ▆ 1. └─panelr::wbm(lwage ~ union, data = w, pvals = FALSE) at test-utils.R:286:1 2. ├─lme4::lmer(...) 3. │ └─base::eval(mc, parent.frame(1L)) 4. │ └─base::eval(mc, parent.frame(1L)) 5. ├─lme4::lFormula(...) 6. │ └─lme4:::mkFormula(...) 7. │ └─base::eval(mf, parent_env) 8. │ └─base::eval(mf, parent_env) 9. ├─stats::model.frame(...) 10. └─stats::model.frame.default(...) ── Error ('test_splines.R:16:3'): wbm works with ns() in formula ─────────────── Error in `model.frame.default(data = data, weights = weights, offset = offset, drop.unused.levels = TRUE, formula = lwage ~ +ns_exp.w1 + ns_exp.w2 + ns_exp.w3 + blk + ns_exp.b1 + ns_exp.b2 + ns_exp.b3 + (1 + id))`: invalid type (closure) for variable '(weights)' Backtrace: ▆ 1. └─panelr::wbm(lwage ~ ns(exp, df = 3) | blk, data = wages) at test_splines.R:16:3 2. ├─lme4::lmer(...) 3. │ └─base::eval(mc, parent.frame(1L)) 4. │ └─base::eval(mc, parent.frame(1L)) 5. ├─lme4::lFormula(...) 6. │ └─lme4:::mkFormula(...) 7. │ └─base::eval(mf, parent_env) 8. │ └─base::eval(mf, parent_env) 9. ├─stats::model.frame(...) 10. └─stats::model.frame.default(...) ── Error ('test_splines.R:26:3'): wbm works with bs() in formula ─────────────── Error in `model.frame.default(data = data, weights = weights, offset = offset, drop.unused.levels = TRUE, formula = lwage ~ +bs_exp.w1 + bs_exp.w2 + bs_exp.w3 + blk + bs_exp.b1 + bs_exp.b2 + bs_exp.b3 + (1 + id))`: invalid type (closure) for variable '(weights)' Backtrace: ▆ 1. ├─base::suppressWarnings(...) at test_splines.R:25:3 2. │ └─base::withCallingHandlers(...) 3. └─panelr::wbm(lwage ~ bs(exp, df = 3) | blk, data = wages) at test_splines.R:26:3 4. ├─lme4::lmer(...) 5. │ └─base::eval(mc, parent.frame(1L)) 6. │ └─base::eval(mc, parent.frame(1L)) 7. ├─lme4::lFormula(...) 8. │ └─lme4:::mkFormula(...) 9. │ └─base::eval(mf, parent_env) 10. │ └─base::eval(mf, parent_env) 11. ├─stats::model.frame(...) 12. └─stats::model.frame.default(...) ── Error ('test_splines.R:35:3'): wbm works with poly() in formula ───────────── Error in `model.frame.default(data = data, weights = weights, offset = offset, drop.unused.levels = TRUE, formula = lwage ~ +poly_exp.w1 + poly_exp.w2 + blk + poly_exp.b1 + poly_exp.b2 + (1 + id))`: invalid type (closure) for variable '(weights)' Backtrace: ▆ 1. └─panelr::wbm(lwage ~ poly(exp, degree = 2) | blk, data = wages) at test_splines.R:35:3 2. ├─lme4::lmer(...) 3. │ └─base::eval(mc, parent.frame(1L)) 4. │ └─base::eval(mc, parent.frame(1L)) 5. ├─lme4::lFormula(...) 6. │ └─lme4:::mkFormula(...) 7. │ └─base::eval(mf, parent_env) 8. │ └─base::eval(mf, parent_env) 9. ├─stats::model.frame(...) 10. └─stats::model.frame.default(...) ── Error ('test_wbm.R:15:1'): (code run outside of `test_that()`) ────────────── Error in `model.frame.default(data = data, weights = weights, offset = offset, drop.unused.levels = TRUE, formula = wks ~ `imean(union)` + `imean(lwage)` + union + lwage + blk + (1 + id))`: invalid type (closure) for variable '(weights)' Backtrace: ▆ 1. └─panelr::wbm(wks ~ union + lwage | blk, data = wages) at test_wbm.R:15:1 2. ├─lme4::lmer(...) 3. │ └─base::eval(mc, parent.frame(1L)) 4. │ └─base::eval(mc, parent.frame(1L)) 5. ├─lme4::lFormula(...) 6. │ └─lme4:::mkFormula(...) 7. │ └─base::eval(mf, parent_env) 8. │ └─base::eval(mf, parent_env) 9. ├─stats::model.frame(...) 10. └─stats::model.frame.default(...) [ FAIL 5 | WARN 0 | SKIP 0 | PASS 265 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-fedora-gcc