- using R Under development (unstable) (2025-12-18 r89199)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
Debian clang version 21.1.7 (1)
Debian flang version 21.1.7 (1)
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
- checking for file ‘effClust/DESCRIPTION’ ... OK
- this is package ‘effClust’ version ‘0.8.0’
- package encoding: UTF-8
- checking CRAN incoming feasibility ... [0s/1s] 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 whether package ‘effClust’ can be installed ... OK
See the install log for details.
- checking package directory ... OK
- checking for future file timestamps ... 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/0s] 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 ... [4s/6s] 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 sizes of PDF files under ‘inst/doc’ ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking examples ... [1s/1s] ERROR
Running examples in ‘effClust-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: effClust.default
> ### Title: Compute Approximate Effective Number of Clusters for Regression
> ### Coefficients
> ### Aliases: effClust.default effClust.fixest effClust.formula effClust.lm
> ### effClust.plm effClust
>
> ### ** Examples
>
> # some data with correlated errors
> set.seed(85914270)
> G <- 50
> cl.sizes <- sample(10:100, G, replace=TRUE)
> n <- sum(cl.sizes)
> id <- rep(1:G, cl.sizes)
> X1 <- rchisq(n, 5)
> X2 <- ifelse(id %% 4 == 0, 1, 0)
> e <- rnorm(n)
> eg <- rep(rnorm(G), cl.sizes)
> Y <- 1 + 2*X1 + 3*X2 - 1*X1*X2 + e + eg
> d <- data.frame(Y, X1, X2, id)
>
> f1 <- Y ~ X1 + X1:X2 + factor(id)
> f2 <- Y ~ X1 + X1:X2 | id # fixest syntax
>
> r <- lm(f1, data=d)
>
> effClust(r, ~d$id, exclude=c("factor\\(id\\)","Intercept"))
X1 X1:X2
27.94599 16.82615
> effClust(f2, ~id, data=d)
X1 X1:X2
27.94599 16.82615
>
> library(data.table)
Attaching package: ‘data.table’
The following object is masked from ‘package:base’:
%notin%
> setDT(d)
> d[ , `:=`(X1dot = X1 - mean(X1),
+ X2dot = X2 - mean(X2),
+ X1X2dot = X1*X2 - mean(X1*X2)),
+ by = id]
Error in `[.data.table`(d, , `:=`(X1dot = X1 - mean(X1), X2dot = X2 - :
attempt access index 4/4 in VECTOR_ELT
Calls: [ -> [.data.table
Execution halted
- checking PDF version of manual ... [4s/6s] OK
- checking HTML version of manual ... [1s/1s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR