* using log directory ‘/data/localhost/ripley/R/packages/tests-vg/Gtheory4LLM.Rcheck’ * using R Under development (unstable) (2026-12-01 r91013) * 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-12-01 23:47:49 UTC * using options ‘--use-valgrind --no-stop-on-test-error’ * checking for file ‘Gtheory4LLM/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘Gtheory4LLM’ version ‘1.0.0’ * package encoding: UTF-8 * 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 ‘Gtheory4LLM’ can be installed ... [7s/12s] OK * used C compiler: ‘gcc (GCC) 16.2.1 20261029 (Red Hat 16.2.1-3)’ * checking package directory ... 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 compiled code ... OK * checking installed files from ‘inst/doc’ ... OK * checking files in ‘vignettes’ ... OK * checking examples ... [10m/15m] OK * checking tests ... Running ‘package-analysis-report.R’ [119s/182s] Running ‘package-argument-parity.R’ [201s/335s] Running ‘package-batch-reliability.R’ [7m/11m] Running ‘package-batch.R’ [9m/14m] Running ‘package-binary-probabilities.R’ [17s/28s] Running ‘package-bootstrap.R’ [54m/78m] Running ‘package-categorical-target-moments.R’ [10s/10s] Running ‘package-categorical-target-numerics.R’ [44s/44s] Running ‘package-characterization.R’ [252s/253s] Running ‘package-dense-memory-guard.R’ [25s/25s] Running ‘package-development.R’ [112s/113s] Running ‘package-discrete-backend.R’ [23s/23s] Running ‘package-discrete-boundary-escape.R’ [521s/566s] Running ‘package-discrete-controls.R’ [88s/95s] Running ‘package-discrete-domain.R’ [17s/18s] Running ‘package-discrete-gradient-fit.R’ [211s/212s] Running ‘package-discrete-gradient-information.R’ [231s/233s] Running ‘package-discrete-gradient.R’ [251s/252s] Running ‘package-discrete-information.R’ [240s/242s] Running ‘package-discrete-safety.R’ [272s/273s] Running ‘package-discrete-scaling.R’ [88s/88s] Running ‘package-engines.R’ [150s/151s] Running ‘package-formula-interface.R’ [373s/375s] Running ‘package-fuzz-inputs.R’ [132s/133s] Running ‘package-gaussian-initialization.R’ [309s/310s] Running ‘package-gaussian-starts.R’ [119s/120s] Running ‘package-installed-examples.R’ [60s/61s] Running ‘package-laplace-check.R’ [557s/560s] Running ‘package-mixed-model.R’ [112s/113s] Running ‘package-native-workflow.R’ [179s/182s] Running ‘package-nested-designs.R’ [165s/167s] Running ‘package-nominal-reliability.R’ [85s/86s] Running ‘package-nominal-tails.R’ [38s/38s] Running ‘package-ordinal-tail.R’ [10s/11s] Running ‘package-outcome-profile.R’ [19s/19s] Running ‘package-planning.R’ [92s/92s] Running ‘package-preflight.R’ [151s/156s] Running ‘package-properties.R’ [11m/12m] Running ‘package-reporting.R’ [103s/103s] Running ‘package-response-third.R’ [19s/19s] Running ‘package-retry-behavior.R’ [244s/245s] Running ‘package-selected-inverse.R’ [54s/54s] Running ‘package-simulation.R’ [120s/135s] Running ‘package-smoke.R’ [341s/343s] Running ‘package-sparse-envelope.R’ [42s/51s] Running ‘package-sparse-estimated.R’ [418s/432s] Running ‘package-sparse-resources.R’ [39s/40s] Running ‘package-staged-diagnostics.R’ [90s/90s] Running ‘package-standard-methods.R’ [356s/357s] Running ‘package-stationarity-validity.R’ [47s/47s] Running ‘package-tuple-keys.R’ [39s/39s] Running ‘package-uncertainty.R’ [148s/149s] Running ‘package-user-interface.R’ [72s/72s] Running ‘package-visualizations.R’ [80s/80s] [206m/244m] ERROR Running the tests in ‘tests/package-discrete-backend.R’ failed. Complete output: > # Independent matrix and conditional-objective checks for the private backend. > library(Gtheory4LLM) > internal <- function(name) get(name, envir = asNamespace("Gtheory4LLM"), inherits = FALSE) > prepare <- internal(".gt_d_prepare") > make_backend <- internal(".gt_d_dense_backend") > kernel <- internal(".gt_d_response_kernel") > evaluate <- internal(".gt_d_dense_evaluate") > mode <- internal(".gt_d_dense_mode") > control <- internal(".gt_d_control") > near <- function(a, b, tolerance = 1e-8) + stopifnot(max(abs(a - b)) < tolerance) > expect_error <- function(expr, pattern) { + error <- tryCatch({ force(expr); NULL }, error = identity) + stopifnot(inherits(error, "error"), grepl(pattern, conditionMessage(error))) + } > > # The same observation can contain Bernoulli, ordered and nominal responses. > # Non-diagonal factors and repeated groups expose column-ordering mistakes. > panel <- data.frame(binary = c(0, 1, 1, 0), + ordinal = ordered(c("low", "mid", "high", "low"), levels = c("low", "mid", "high")), + category = factor(c("a", "b", "c", "b"), levels = c("a", "b", "c"))) > families <- list(list(family = "binary", link = "logit"), + list(family = "ordinal", link = "probit"), list(family = "categorical", link = "softmax")) > prep <- prepare(panel, names(panel), families) > groups <- list(item = list(index = c(1L, 1L, 2L, 2L), nlevels = 2L), + rater = list(index = c(1L, 2L, 1L, 2L), nlevels = 2L)) > factors <- list(item = matrix(c(.4, .1, -.1, .2, 0, .3, .1, 0, + 0, 0, .5, .2, 0, 0, 0, .6), 4L), + rater = diag(c(.2, .3, .1, 0))) > backend <- make_backend(groups, factors, prep$n, prep$q) > # Independent Kronecker-product construction; the implementation fills entries. > reference_W <- do.call(cbind, lapply(seq_along(groups), function(j) { + incidence <- outer(groups[[j]]$index, seq_len(groups[[j]]$nlevels), `==`) * 1 + kronecker(factors[[j]], incidence) + })) > near(backend$W, reference_W, 1e-14) > stopifnot(ncol(backend$W) == 16L) # Zero columns are retained, never dropped. > > u <- seq(-.3, .4, length.out = ncol(backend$W)) > baseline <- internal(".gt_d_baseline")(prep$start, prep) > eta <- baseline + matrix(reference_W %*% u, prep$n, prep$q) > response <- kernel(eta, prep$start, prep) > assembled <- evaluate(eta, prep$start, prep, backend) > stopifnot(response$valid, assembled$valid, is.null(response$H), + identical(response, assembled[names(response)])) > # Differentiate the scalar conditional objective in random-effect coordinates. > # This catches missing prior curvature and off-diagonal multinomial terms. > objective <- function(at) { + e <- baseline + matrix(reference_W %*% at, prep$n, prep$q) + kernel(e, prep$start, prep)$nll + sum(at^2) / 2 + } > epsilon <- 2e-4 > gradient <- numeric(length(u)) > H <- matrix(0, length(u), length(u)) > for (a in seq_along(u)) { + da <- numeric(length(u)); da[a] <- epsilon + gradient[a] <- (objective(u + da) - objective(u - da)) / (2 * epsilon) + for (b in seq_along(u)) { + db <- numeric(length(u)); db[b] <- epsilon + H[a, b] <- (objective(u + da + db) - objective(u + da - db) - + objective(u - da + db) + objective(u - da - db)) / (4 * epsilon^2) + } + } > near(as.vector(crossprod(reference_W, response$gradient)) + u, gradient, 1e-7) > near(assembled$H, H, 2e-7) > > # The backend carries design matrices only; solves restart from zero and cannot > # consume a hidden previous mode. Unrelated evaluations cannot change a solve. > ctl <- control(list()) > first <- mode(prep$start, prep, backend, ctl, details = TRUE) > invisible(mode(prep$start + .1, prep, backend, ctl, details = TRUE)) > second <- mode(prep$start, prep, backend, ctl, details = TRUE) > stopifnot(first$valid, identical(first, second), + identical(names(backend), c("W", "n", "q"))) > # Return conventions stay scalar for optimization and structured for diagnosis. > near(mode(prep$start, prep, backend, ctl), first$nll, 1e-14) > truncated <- mode(prep$start, prep, backend, + control(list(inner_maxit = 1L, inner_tol = 1e-12)), details = TRUE) > stopifnot(!truncated$valid, !truncated$inner_converged) > stopifnot(mode(prep$start, prep, backend, + control(list(inner_maxit = 1L, inner_tol = 1e-12))) == 1e100) Error: mode(prep$start, prep, backend, control(list(inner_maxit = 1L, .... is not TRUE Execution halted ==1005981== ==1005981== HEAP SUMMARY: ==1005981== in use at exit: 58,429,829 bytes in 11,142 blocks ==1005981== total heap usage: 27,524 allocs, 16,382 frees, 84,540,530 bytes allocated ==1005981== ==1005981== LEAK SUMMARY: ==1005981== definitely lost: 0 bytes in 0 blocks ==1005981== indirectly lost: 0 bytes in 0 blocks ==1005981== possibly lost: 0 bytes in 0 blocks ==1005981== still reachable: 58,429,829 bytes in 11,142 blocks ==1005981== suppressed: 0 bytes in 0 blocks ==1005981== Reachable blocks (those to which a pointer was found) are not shown. ==1005981== To see them, rerun with: --leak-check=full --show-leak-kinds=all ==1005981== ==1005981== For lists of detected and suppressed errors, rerun with: -s ==1005981== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) * checking package vignettes ... OK * checking re-building of vignette outputs ... [23s/23s] OK * DONE Status: 1 ERROR See ‘/data/localhost/ripley/R/packages/tests-vg/Gtheory4LLM.Rcheck/00check.log’ for details. Command exited with non-zero status 1 Time 4:19:55, 12884.30 + 105.41