* using log directory 'd:/Rcompile/CRANpkg/local/4.7/panelr.Rcheck' * using R Under development (unstable) (2026-10-24 r90762 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 * current time: 2026-10-25 23:45:35 UTC * checking for file 'panelr/DESCRIPTION' ... OK * this is package 'panelr' version '1.0.1' * 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 'panelr' can be installed ... OK * 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 ... [4s] OK * checking whether the package can be loaded with stated dependencies ... [4s] OK * checking whether the package can be unloaded cleanly ... [4s] OK * checking whether the namespace can be loaded with stated dependencies ... [4s] OK * checking whether the namespace can be unloaded cleanly ... [4s] OK * checking loading without being on the library search path ... [4s] OK * checking whether startup messages can be suppressed ... [4s] 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 ... [21s] 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 installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [10s] 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 -> -> model.frame.default Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [39s] ERROR Running 'testthat.R' [38s] 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 * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [14s] ERROR Error(s) in re-building vignettes: --- re-building 'reshape.Rmd' using rmarkdown --- finished re-building 'reshape.Rmd' --- re-building 'wbm.Rmd' using rmarkdown Quitting from wbm.Rmd:238-246 [unnamed-chunk-5] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 * checking PDF version of manual ... [23s] OK * checking HTML version of manual ... [5s] OK * DONE Status: 3 ERRORs