* using log directory ‘/data/localhost/ripley/R/packages/tests-MKL/arm.Rcheck’ * using R Under development (unstable) (2026-11-20 r90940) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc (GCC) 16.2.1 20261029 (Red Hat 16.2.1-3) GNU Fortran (GCC) 16.2.1 20261029 (Red Hat 16.2.1-3) * running under: Fedora Linux 44 (Server Edition) * using session charset: UTF-8 * current time: 2026-11-20 21:53:58 UTC * using option ‘--no-stop-on-test-error’ * checking for file ‘arm/DESCRIPTION’ ... OK * this is package ‘arm’ version ‘1.15-4’ * 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 ‘arm’ can be installed ... OK * checking package 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 whether startup messages can be suppressed ... 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 ... [14s/15s] 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 contents of ‘data’ directory ... OK * checking data for non-ASCII characters ... OK * checking data for ASCII and uncompressed saves ... OK * checking examples ... OK * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... Running ‘balance-matrix-names.R’ Running ‘balance-ratio-column.R’ Running ‘balance-treated-weights.R’ Running ‘bayesglm-aic-trials.R’ Running ‘bayesglm-control-maxit.R’ Running ‘bayesglm-gaussian-scaling.R’ Running ‘bayesglm-keep-order-terms.R’ Running ‘bayesglm-log-posterior.R’ Running ‘bayesglm-model-frame.R’ Running ‘bayesglm-offset-vector-prior.R’ Running ‘bayesglm-rank-deficient.R’ Running ‘bayesglm-start-length.R’ Running ‘bayesglm-terms-newdata.R’ Running ‘bayesglm-transformed-terms.R’ Running ‘bayesglm-warning-arg.R’ Running ‘bayesglm-weights-scaling.R’ Running ‘bayesglm-zero-weights.R’ Running ‘bayespolr-deviance.R’ Running ‘bayespolr-maxit.R’ Running ‘bayespolr-start-zeta.R’ Running ‘bayespolr.R’ Running ‘binned-resids-xbreaks.R’ Running ‘binnedplot-band.R’ Running ‘coefplot-bugs-pch.R’ Running ‘coefplot-ci-other.R’ Running ‘coefplot-conf-bounds.R’ Running ‘discrete-histogram-edge.R’ Running ‘display-glmer-residual.R’ Running ‘display-lmer-intercept-only.R’ Running ‘display-svyglm-n.R’ Running ‘dwish-non-matrix-w.R’ Running ‘go-source-extension.R’ Running ‘load-first.R’ Running ‘matching-without-replacement.R’ Running ‘merMod-dic.R’ Running ‘model-matrix-bayes-formula.R’ Running ‘multicomp-plot-shortlabel.R’ Running ‘plot-balance-dots.R’ Running ‘plot-balance-labels.R’ Running ‘print-balance-combined.R’ Running ‘rescale-constant.R’ Running ‘rescale.R’ Running ‘se-coef-postvar-list.R’ Running ‘sigma-hat-glm.R’ Running ‘sim-edge-sizes.R’ Running ‘sim-lm-aliased.R’ Running ‘sim-plm-coxph-dispatch.R’ Running ‘simmer.R’ Running ‘standardize-environment.R’ Running ‘standardize-transformed-inputs.R’ Running ‘standardize.R’ Running ‘traceplot-xlab.R’ Running ‘triangleplot-close-correlations.R’ [98s/147s] ERROR Running the tests in ‘tests/bayesglm-keep-order-terms.R’ failed. Complete output: > ## ===================================================================== > ## Regression test: bayesglm() terms follow keep.order > ## > ## The bug: bayesglm() builds its design matrix with keep.order = TRUE (the > ## default), so for y ~ x:z + x the coefficients are ordered > ## (Intercept), x:z, x. But the terms object stored in the fit came from > ## model.frame() with the default keep.order = FALSE, ordered > ## (Intercept), x, x:z. Everything that rebuilds the design matrix from the > ## stored terms -- model.matrix(fit), predict(fit, se.fit = TRUE) and > ## predict(fit, type = "terms") without newdata -- then multiplied columns > ## by the wrong coefficients. > ## > ## Identities: predict(fit, se.fit = TRUE)$fit equals the stored linear > ## predictors; model.matrix(fit) has the coefficients' column order; the > ## "terms" contributions plus their constant add up to the linear predictor. > ## ===================================================================== > > library(arm) Loading required package: MASS Loading required package: Matrix Loading required package: lme4 arm (Version 1.15-4, built: 2026-11-07) Working directory is /data/localhost/ripley/R/packages/tests-MKL/arm.Rcheck/tests > > close <- function(a, b) isTRUE(all.equal(a, b, tolerance = 1e-8)) > > set.seed(8) > n <- 50 > d <- data.frame(x = rnorm(n), z = rnorm(n)) > d$y <- rbinom(n, 1, plogis(0.5 * d$x + d$x * d$z)) > > b <- bayesglm(y ~ x:z + x, binomial, d) > stopifnot("keep.order: model.matrix(fit) columns are not in coefficient order" = + identical(colnames(model.matrix(b)), names(coef(b)))) > stopifnot("keep.order: predict(se.fit = TRUE)$fit differs from the linear predictors" = + close(unname(predict(b, se.fit = TRUE)$fit), + unname(b$linear.predictors))) > stopifnot("keep.order: se.fit without newdata differs from se.fit with newdata = data" = + close(unname(predict(b, se.fit = TRUE)$se.fit), + unname(predict(b, newdata = d, se.fit = TRUE)$se.fit))) > tr <- predict(b, type = "terms") > stopifnot("keep.order: type = 'terms' does not add up to the linear predictor" = + close(unname(rowSums(tr) + attr(tr, "constant")), + unname(b$linear.predictors))) > > ## the ordering really is kept, and keep.order = FALSE is unchanged > stopifnot("keep.order = TRUE did not keep the formula's term order" = + identical(attr(terms(b), "term.labels"), c("x:z", "x"))) > b2 <- bayesglm(y ~ x:z + x, binomial, d, keep.order = FALSE) > stopifnot("keep.order = FALSE: predict(se.fit = TRUE)$fit differs from the linear predictors" = + close(unname(predict(b2, se.fit = TRUE)$fit), + unname(b2$linear.predictors))) > stopifnot("keep.order = FALSE should reorder terms by degree" = + identical(attr(terms(b2), "term.labels"), c("x", "x:z"))) > > ## a formula given as a character string still works, as it does for glm() > b3 <- bayesglm("y ~ x:z + x", binomial, d) > stopifnot("a character formula should give the same fit as the formula" = + identical(coef(b3), coef(b))) Error: a character formula should give the same fit as the formula Execution halted * checking PDF version of manual ... [6s/12s] OK * checking HTML version of manual ... OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * DONE Status: 1 ERROR See ‘/data/localhost/ripley/R/packages/tests-MKL/arm.Rcheck/00check.log’ for details. Command exited with non-zero status 1 Time 3:50.98, 153.48 + 16.78