* using log directory ‘/data/blackswan/ripley/R/packages/tests-devel/auxvecLASSO.Rcheck’ * using R Under development (unstable) (2025-11-16 r89026) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc (GCC) 14.2.1 20240912 (Red Hat 14.2.1-3) GNU Fortran (GCC) 14.2.1 20240912 (Red Hat 14.2.1-3) * running under: Fedora Linux 40 (Workstation Edition) * using session charset: UTF-8 * checking for file ‘auxvecLASSO/DESCRIPTION’ ... OK * this is package ‘auxvecLASSO’ version ‘0.2.0’ * 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 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 ‘auxvecLASSO’ can be installed ... [11s/12s] 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 ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... 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 ... [18s/21s] OK * checking Rd files ... 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 installed files from ‘inst/doc’ ... OK * checking files in ‘vignettes’ ... OK * checking examples ... OK * checking examples with --run-donttest ... ERROR Running examples in ‘auxvecLASSO-Ex.R’ failed The error most likely occurred in: > ### Name: generate_population_totals > ### Title: Generate population totals for a calibration design matrix > ### Aliases: generate_population_totals > > ### ** Examples > > ## No test: > # Example using the API data from the survey package > library(survey) Loading required package: grid Loading required package: Matrix Loading required package: survival Attaching package: ‘survey’ The following object is masked from ‘package:graphics’: dotchart > data(api) # loads apipop, apisrs, apistrat, etc. > > # Build a population frame and create some binary fields used in a formula > pop <- apipop > pop$api00_bin <- as.factor(ifelse(pop$api00 >= 700, "700plus", "lt700")) > pop$growth_bin <- as.factor(ifelse(pop$growth >= 0, "nonneg", "neg")) > pop$ell_bin <- as.factor(ifelse(pop$ell >= 10, "highELL", "lowELL")) > pop$comp.imp_bin <- as.factor(ifelse(pop$comp.imp >= 50, "highComp", "lowComp")) Warning in Ops.factor(pop$comp.imp, 50) : ‘>=’ not meaningful for factors > pop$hsg_bin <- as.factor(ifelse(pop$hsg >= 60, "highHSG", "lowHSG")) > > # A calibration formula with main effects + a few interactions > cal_formula <- ~ stype + growth_bin + api00_bin + ell_bin + comp.imp_bin + hsg_bin + + api00_bin:stype + hsg_bin:stype + comp.imp_bin:stype + api00_bin:growth_bin > > # (Optional) frame weights if available; here we use unweighted totals > gp <- generate_population_totals( + population_df = pop, + calibration_formula = cal_formula, + include_intercept = TRUE + ) Error in `contrasts<-`(`*tmp*`, value = contr.funs[1 + isOF[nn]]) : contrasts can be applied only to factors with 2 or more levels Calls: generate_population_totals ... do.call -> -> model.matrix.default -> contrasts<- Execution halted * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... Running ‘testthat.R’ [14s/20s] [14s/20s] OK * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [20s/23s] OK * checking PDF version of manual ... OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * checking for new files in some other directories ... OK * DONE Status: 1 ERROR See ‘/data/blackswan/ripley/R/packages/tests-devel/auxvecLASSO.Rcheck/00check.log’ for details. Command exited with non-zero status 1 Time 2:49.18, 122.59 + 20.15