* using log directory ‘/data/localhost/ripley/R/packages/tests-MKL/grplasso.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-21 06:49:48 UTC * using option ‘--no-stop-on-test-error’ * checking for file ‘grplasso/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘grplasso’ version ‘0.4-7’ * 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 ‘grplasso’ 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 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 ... NOTE Found calls to structure() using deprecated special names: grplasso/tests/test_grplasso.R (.Dim: 1, .Dimnames: 1) '.Dim' should be changed to 'dim'. '.Dimnames' should be changed to 'dimnames'. * 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 ‘test_centerscaling.R’ Running ‘test_extractor.R’ Running ‘test_grplasso.R’ ERROR Running the tests in ‘tests/test_centerscaling.R’ failed. Complete output: > library(grplasso) > > set.seed(7198) > > n <- 100 > p <- 10 > > x <- matrix(runif(n * p, min = -2.5, max = 2.5), nrow = n, ncol = p) > y <- 4 * sin(x[,1]) + x[,2]^2 + rnorm(n) > > x.new <- matrix(runif(n * p, min = -2.5, max = 2.5), nrow = n, ncol = p) > > shift <- 10 > scale <- 10 > > ## Use Lasso shift, i.e. group-size = 1 > fit <- grplasso(cbind(1,x), y, index = c(NA, 1:10), + lambda = c(50, 10), center = TRUE, standardize = TRUE, + model = LinReg(), control = grpl.control(trace = 0)) > > ## Rescale > x.resc <- shift + scale * x > fit.resc <- grplasso(cbind(1,x.resc), y, index = c(NA, 1:10), + lambda = c(50, 10), center = TRUE, standardize = TRUE, + model = LinReg(), control = grpl.control(trace = 0)) > > ## Compare estimators, without intercept > stopifnot(all.equal(coef(fit)[-1,], coef(fit.resc)[-1,] * scale)) > > ## Check intercepts > mu.x <- apply(x, 2, mean) > int <- mean(y) - apply(coef(fit)[-1,] * mu.x, 2, sum) > > mu.x.resc <- apply(x.resc, 2, mean) > int.resc <- mean(y) - apply(coef(fit.resc)[-1,] * mu.x.resc, 2, sum) > > stopifnot(all.equal(int, coef(fit)[1,], tol = 10^-7)) > stopifnot(all.equal(int.resc, coef(fit.resc)[1,], tol = 10^-7)) > > ## Compare predictions > stopifnot(all.equal(predict(fit, newdata = cbind(1,x.new)), + predict(fit.resc, + newdata = cbind(1, shift + scale * x.new)))) > > ## Check situation where we have an unpenalized covariate and re-scaling > > index <- c(NA, 1:9, NA) > > fit.a <- grplasso(cbind(1,x), y, index = index, + lambda = c(50, 10), center = TRUE, standardize = TRUE, + model = LinReg(), control = grpl.control(trace = 0)) Warning message: In grplasso.default(cbind(1, x), y, index = index, lambda = c(50, : Penalization not adjusted to non-penalized predictors. > > fit.b <- grplasso(cbind(1,x.resc), y, index = index, + lambda = c(50, 10), center = TRUE, standardize = TRUE, + model = LinReg(), control = grpl.control(trace = 0)) Warning message: In grplasso.default(cbind(1, x.resc), y, index = index, lambda = c(50, : Penalization not adjusted to non-penalized predictors. > > stopifnot(all.equal(coef(fit.a)[10,], scale * coef(fit.b)[10,])) > > ######################################################################## > ## ## > ## Check whether every case is running, including function lambda.max ## > ## ## > ######################################################################## > > ## center = TRUE & unpenalized intercept > > x.use <- cbind(1, x) > index <- c(NA, 1:10) > > lambda.max <- lambdamax(x.use, y, index, model = LinReg()) > lambda <- lambda.max * c(1, 0.1) > > fit1 <- grplasso(x.use, y, index, model = LinReg(), lambda = lambda, + center = TRUE) Lambda: 546.9627 nr.var: 2 Lambda: 54.69627 nr.var: 4 > > ## center = TRUE & penalized intercept > > x.use <- cbind(1, x) > index <- c(99, 1:10) > > lambda.max <- lambdamax(x.use, y, index, model = LinReg()) > lambda <- lambda.max * c(1, 0.1) > > fit2 <- grplasso(x.use, y, index, model = LinReg(), lambda = lambda, + center = TRUE) Lambda: 546.9627 nr.var: 0 Lambda: 54.69627 nr.var: 4 Warning message: In grplasso.default(x.use, y, index, model = LinReg(), lambda = lambda, : All groups are penalized, including the intercept. > > ## center = TRUE & *no* intercept > x.use <- cbind(x) > index <- c(1:10) > > lambda.max <- lambdamax(x.use, y, index, model = LinReg()) Couldn't find intercept. Setting center = FALSE. > lambda <- lambda.max * c(1, 0.1) > > fit3 <- grplasso(x.use, y, index, model = LinReg(), lambda = lambda, + center = TRUE) Couldn't find intercept. Setting center = FALSE. Lambda: 557.2799 nr.var: 0 Lambda: 55.72799 nr.var: 2 > > ## center = FALSE & *no* intercept > x.use <- cbind(x) > index <- c(1:10) > > lambda.max <- lambdamax(x.use, y, index, model = LinReg(), + center = FALSE) > lambda <- lambda.max * c(1, 0.1) > > fit4 <- grplasso(x.use, y, index, model = LinReg(), lambda = lambda, + center = FALSE) Lambda: 557.2799 nr.var: 1 Lambda: 55.72799 nr.var: 2 > > ## Check whether fit3 and fit4 are the same > stopifnot(all.equal(coef(fit3), coef(fit4))) Error: coef(fit3) and coef(fit4) are not equal: Attributes: < Component "dimnames": Component 2: 2 string mismatches > Execution halted * checking PDF version of manual ... [5s/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, 1 NOTE See ‘/data/localhost/ripley/R/packages/tests-MKL/grplasso.Rcheck/00check.log’ for details. Command exited with non-zero status 1 Time 1:03.16, 21.79 + 4.38