- using R Under development (unstable) (2026-04-26 r89963)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
Debian clang version 21.1.8 (3+b1)
Debian flang version 21.1.8 (3+b1)
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
* current time: 2026-04-27 21:56:44 UTC
- checking for file ‘clubSandwich/DESCRIPTION’ ... OK
- this is package ‘clubSandwich’ version ‘0.6.2’
- package encoding: UTF-8
- checking CRAN incoming feasibility ... [1s/2s] OK
- 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 serialization versions ... OK
- checking whether package ‘clubSandwich’ 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 ... [0s/0s] OK
- checking whether the package can be loaded with stated dependencies ... [0s/0s] OK
- checking whether the package can be unloaded cleanly ... [0s/0s] OK
- checking whether the namespace can be loaded with stated dependencies ... [0s/0s] OK
- checking whether the namespace can be unloaded cleanly ... [0s/1s] OK
- checking loading without being on the library search path ... [0s/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 ... [15s/18s] OK
- checking Rd files ... [1s/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 ... [10s/13s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [171s/190s] ERROR
Running ‘testthat.R’ [171s/190s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(clubSandwich)
Registered S3 method overwritten by 'clubSandwich':
method from
bread.mlm sandwich
>
> test_check("clubSandwich")
Saving _problems/test_gls-90.R
Saving _problems/test_gls-98.R
Saving _problems/test_gls-113.R
Saving _problems/test_gls-127.R
Saving _problems/test_gls-157.R
[ FAIL 5 | WARN 0 | SKIP 29 | PASS 1650 ]
══ Skipped tests (29) ══════════════════════════════════════════════════════════
• Need to understand target-unbiasedness for ivreg objects. (2):
'test_AER_ivreg.R:141:3', 'test_ivreg_ivreg.R:141:3'
• On CRAN (25): 'test_Wald.R:155:3', 'test_Wald.R:209:3', 'test_Wald.R:243:3',
'test_geeglm.R:161:3', 'test_linear_contrast.R:136:3',
'test_lme_3level.R:39:3', 'test_lme_3level.R:76:3',
'test_lme_3level.R:116:3', 'test_lme_3level.R:127:3',
'test_lme_3level.R:138:3', 'test_lme_3level.R:179:3', 'test_lme_MVML.R:4:1',
'test_lmerMod.R:124:3', 'test_mlm.R:94:3',
'test_plm-first-differences.R:92:3', 'test_plm-fixed-effects.R:146:3',
'test_plm-unbalanced-fixed-effects.R:170:3', 'test_rma-ls.R:26:3',
'test_rma-mv.R:101:3', 'test_rma-mv.R:202:3', 'test_rma-mv.R:306:3',
'test_rma-uni.R:76:3', 'test_robu.R:173:3', 'test_robu.R:210:3',
'test_robu.R:252:3'
• empty test (1): 'test_estfun.R:50:1'
• packageVersion("plm") > "2.6-1" is TRUE (1):
'test_plm-first-differences.R:41:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test_gls.R:90:3'): get_data works. ────────────────────────────────
Expected `egg_scramble` to equal `scramble_dat`.
Differences:
Names: 4 string mismatches
Attributes: < Length mismatch: comparison on first 1 components >
Attributes: < Component "class": Lengths (4, 3) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Component 1: 'current' is not a factor
Component 2: Modes: numeric, call
Component 2: Lengths: 308, 3
Component 2: names for current but not for target
Component 2: target is numeric, current is call
...
── Error ('test_gls.R:98:3'): get_data works. ──────────────────────────────────
Error in `as.data.frame.default(data, optional = TRUE)`: cannot coerce class 'c("objectNotFoundError", "error", "condition")' to a data.frame
Backtrace:
▆
1. ├─clubSandwich::vcovCR(m2, cluster = cars_30, type = "CR0") at test_gls.R:98:3
2. └─clubSandwich:::vcovCR.gls(m2, cluster = cars_30, type = "CR0")
3. └─clubSandwich:::vcov_CR(...)
4. ├─clubSandwich:::model_matrix(obj)
5. └─clubSandwich:::model_matrix.gls(obj)
6. ├─stats::model.matrix(formula(obj), data = dat)
7. └─stats::model.matrix.default(formula(obj), data = dat)
8. ├─stats::terms(object, data = data)
9. └─stats::terms.formula(object, data = data)
10. ├─base::as.data.frame(data, optional = TRUE)
11. └─base::as.data.frame.default(data, optional = TRUE)
── Error ('test_gls.R:112:3'): Order doesn't matter. ───────────────────────────
Error in `as.data.frame.default(data, optional = TRUE)`: cannot coerce class 'c("objectNotFoundError", "error", "condition")' to a data.frame
Backtrace:
▆
1. └─clubSandwich:::check_sort_order(...) at test_gls.R:112:3
2. └─base::lapply(CR_types, function(x) vcovCR(obj_scramble, type = x))
3. └─clubSandwich (local) FUN(X[[i]], ...)
4. ├─clubSandwich::vcovCR(obj_scramble, type = x)
5. └─clubSandwich:::vcovCR.gls(obj_scramble, type = x)
6. └─clubSandwich:::vcov_CR(...)
7. ├─clubSandwich:::model_matrix(obj)
8. └─clubSandwich:::model_matrix.gls(obj)
9. ├─stats::model.matrix(formula(obj), data = dat)
10. └─stats::model.matrix.default(formula(obj), data = dat)
11. ├─stats::terms(object, data = data)
12. └─stats::terms.formula(object, data = data)
13. ├─base::as.data.frame(data, optional = TRUE)
14. └─base::as.data.frame.default(data, optional = TRUE)
── Error ('test_gls.R:127:31'): clubSandwich works with dropped observations ───
Error in `data[-naAct, ]`: incorrect number of dimensions
Backtrace:
▆
1. └─base::lapply(CR_types, function(x) vcovCR(lm_dropped, type = x)) at test_gls.R:127:3
2. └─clubSandwich (local) FUN(X[[i]], ...)
3. ├─clubSandwich::vcovCR(lm_dropped, type = x) at test_gls.R:127:31
4. └─clubSandwich:::vcovCR.gls(lm_dropped, type = x)
5. └─clubSandwich:::vcov_CR(...)
6. ├─clubSandwich:::model_matrix(obj)
7. └─clubSandwich:::model_matrix.gls(obj)
8. └─clubSandwich:::get_data(obj)
── Error ('test_gls.R:156:3'): Possible to cluster at higher level than random effects ──
Error in `as.data.frame.default(data, optional = TRUE)`: cannot coerce class 'c("objectNotFoundError", "error", "condition")' to a data.frame
Backtrace:
▆
1. ├─clubSandwich::vcovCR(...) at test_gls.R:156:3
2. └─clubSandwich:::vcovCR.gls(...)
3. └─clubSandwich:::vcov_CR(...)
4. ├─clubSandwich:::model_matrix(obj)
5. └─clubSandwich:::model_matrix.gls(obj)
6. ├─stats::model.matrix(formula(obj), data = dat)
7. └─stats::model.matrix.default(formula(obj), data = dat)
8. ├─stats::terms(object, data = data)
9. └─stats::terms.formula(object, data = data)
10. ├─base::as.data.frame(data, optional = TRUE)
11. └─base::as.data.frame.default(data, optional = TRUE)
[ FAIL 5 | WARN 0 | SKIP 29 | PASS 1650 ]
Error:
! Test failures.
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [21s/25s] OK
- checking PDF version of manual ... [6s/9s] OK
- checking HTML version of manual ... [5s/7s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR