* using log directory ‘/home/hornik/tmp/CRAN_special_donttest/DebiasInfer.Rcheck’ * using R Under development (unstable) (2026-03-10 r89593) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc-15 (Debian 15.2.0-14) 15.2.0 GNU Fortran (Debian 15.2.0-14) 15.2.0 * running under: Debian GNU/Linux forky/sid * using session charset: UTF-8 * current time: 2026-03-11 19:11:05 UTC * using option ‘--run-donttest’ * checking for file ‘DebiasInfer/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘DebiasInfer’ version ‘0.2.1’ * package encoding: UTF-8 * checking CRAN incoming feasibility ... [4s/5s] 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 ‘DebiasInfer’ can be installed ... [9s/9s] OK * 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 ... [3s/3s] OK * checking whether the package can be loaded with stated dependencies ... [3s/3s] OK * checking whether the package can be unloaded cleanly ... [2s/2s] OK * checking whether the namespace can be loaded with stated dependencies ... [2s/2s] OK * checking whether the namespace can be unloaded cleanly ... [3s/3s] OK * checking loading without being on the library search path ... [3s/3s] 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 ... [12s/12s] OK * checking Rd files ... [0s/0s] 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 examples ... [5s/5s] ERROR Running examples in ‘DebiasInfer-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: DebiasProg > ### Title: The proposed debiasing (primal) program. > ### Aliases: DebiasProg > ### Keywords: debiasing primal program > > ### ** Examples > > ## No test: > require(MASS) Loading required package: MASS > require(glmnet) Loading required package: glmnet Loading required package: Matrix Loaded glmnet 4.1-10 > d = 1000 > n = 900 > > Sigma = array(0, dim = c(d,d)) + diag(d) > rho = 0.1 > for(i in 1:(d-1)){ + for(j in (i+1):d){ + if ((j < i+6) | (j > i+d-6)){ + Sigma[i,j] = rho + Sigma[j,i] = rho + } + } + } > sig = 1 > > ## Current query point > x_cur = rep(0, d) > x_cur[c(1, 2, 3, 7, 8)] = c(1, 1/2, 1/4, 1/2, 1/8) > x_cur = array(x_cur, dim = c(1,d)) > > ## True regression coefficient > s_beta = 5 > beta_0 = rep(0, d) > beta_0[1:s_beta] = sqrt(5) > > ## Generate the design matrix and outcomes > X_sim = mvrnorm(n, mu = rep(0, d), Sigma) > eps_err_sim = sig * rnorm(n) > Y_sim = drop(X_sim %*% beta_0) + eps_err_sim > > obs_prob = 1 / (1 + exp(-1 + X_sim[, 7] - X_sim[, 8])) > R_sim = rep(1, n) > R_sim[runif(n) >= obs_prob] = 0 > > ## Estimate the propensity scores via the Lasso-type generalized linear model > zeta = 5*sqrt(log(d)/n)/n > lr1 = glmnet(X_sim, R_sim, family = "binomial", alpha = 1, lambda = zeta, + standardize = TRUE, thresh=1e-6) > prop_score = drop(predict(lr1, newx = X_sim, type = "response")) > > ## Estimate the debiasing weights > w_obs = DebiasProg(X_sim, x_cur, Pi=diag(prop_score), gamma_n = 0.1) Error in (function (shape, nonneg = FALSE, nonpos = FALSE, complex = FALSE, : unused arguments (rows = 900, cols = 1) Calls: DebiasProg -> Variable -> do.call Execution halted * checking PDF version of manual ... [3s/3s] OK * checking HTML version of manual ... [1s/1s] OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * DONE Status: 1 ERROR