* using log directory 'd:/Rcompile/CRANpkg/local/4.6/catregs.Rcheck' * using R Under development (unstable) (2025-12-18 r89199 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 * checking for file 'catregs/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'catregs' version '1.3' * 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 'catregs' 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 ... [0s] OK * checking whether the package can be loaded with stated dependencies ... [0s] OK * checking whether the package can be unloaded cleanly ... [0s] OK * checking whether the namespace can be loaded with stated dependencies ... [0s] OK * checking whether the namespace can be unloaded cleanly ... [0s] OK * checking loading without being on the library search path ... [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 ... [6s] 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 ... [2s] 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 ... [2s] ERROR Running examples in 'catregs-Ex.R' failed The error most likely occurred in: > ### Name: compare.margins > ### Title: Compares two marginal effects (MEMs or AMEs). Estimate of > ### uncertainty is from a simulated draw from a normal distribution. > ### Aliases: compare.margins > > ### ** Examples > > data("essUK") > m1 <- glm(safe ~ religious + minority*female + age,data=essUK,family="binomial") > des<-margins.des(m1,expand.grid(minority=c(0,1),female=c(0,1))) > des minority female religious age 1 0 0 3.602404 53.14563 2 1 0 3.602404 53.14563 3 0 1 3.602404 53.14563 4 1 1 3.602404 53.14563 > ma1 <- suppressWarnings(as.data.frame(marginaleffects::avg_slopes(m1, + variables="female",newdata=marginaleffects::datagrid(minority=0, + religious=3.6024,age=53.146)))) Error in `[.data.table`(out, , `:=`(tmp_idx, seq_len(.N)), by = tmp) : attempt access index 13/13 in VECTOR_ELT Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [27s] ERROR Error(s) in re-building vignettes: --- re-building 'compare.margins.Rmd' using rmarkdown Quitting from compare.margins.Rmd:15-29 [unnamed-chunk-1] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error in `[.data.table`: ! attempt access index 13/13 in VECTOR_ELT --- Backtrace: ▆ 1. └─marginaleffects::comparisons(...) 2. ├─base::do.call("get_comparisons", args) 3. └─marginaleffects:::get_comparisons(...) 4. ├─out[, `:=`(tmp_idx, seq_len(.N)), by = tmp] 5. └─data.table:::`[.data.table`(...) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'compare.margins.Rmd' failed with diagnostics: attempt access index 13/13 in VECTOR_ELT --- failed re-building 'compare.margins.Rmd' --- re-building 'count.fit.Rmd' using rmarkdown --- finished re-building 'count.fit.Rmd' --- re-building 'daign.Rmd' using rmarkdown --- finished re-building 'daign.Rmd' --- re-building 'first.diff.fitted.Rmd' using rmarkdown --- finished re-building 'first.diff.fitted.Rmd' --- re-building 'list.coef.Rmd' using rmarkdown --- finished re-building 'list.coef.Rmd' --- re-building 'margins.dat.Rmd' using rmarkdown --- finished re-building 'margins.dat.Rmd' --- re-building 'margins.dat.clogit.Rmd' using rmarkdown --- finished re-building 'margins.dat.clogit.Rmd' --- re-building 'margins.des.Rmd' using rmarkdown --- finished re-building 'margins.des.Rmd' --- re-building 'rubins.rule.Rmd' using rmarkdown --- finished re-building 'rubins.rule.Rmd' --- re-building 'second.diff.fitted.Rmd' using rmarkdown --- finished re-building 'second.diff.fitted.Rmd' SUMMARY: processing the following file failed: 'compare.margins.Rmd' Error: Vignette re-building failed. Execution halted * checking PDF version of manual ... [20s] OK * checking HTML version of manual ... [6s] OK * DONE Status: 2 ERRORs