CRAN Package Check Results for Package glmnet

Last updated on 2021-10-21 09:54:52 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 4.1-2 27.85 269.14 296.99 OK
r-devel-linux-x86_64-debian-gcc 4.1-2 27.24 201.15 228.39 OK
r-devel-linux-x86_64-fedora-clang 4.1-2 393.08 OK
r-devel-linux-x86_64-fedora-gcc 4.1-2 375.96 OK
r-devel-windows-x86_64 4.1-2 41.00 370.00 411.00 OK
r-devel-windows-x86_64-gcc10-UCRT 4.1-2 OK
r-patched-linux-x86_64 4.1-2 28.53 268.77 297.30 OK
r-patched-solaris-x86 4.1-2 207.60 ERROR
r-release-linux-x86_64 4.1-2 32.38 266.65 299.03 OK
r-release-macos-arm64 4.1-2 OK
r-release-macos-x86_64 4.1-2 OK
r-release-windows-ix86+x86_64 4.1-2 48.00 437.00 485.00 OK
r-oldrel-macos-x86_64 4.1-2 OK
r-oldrel-windows-ix86+x86_64 4.1-2 68.00 441.00 509.00 OK

Check Details

Version: 4.1-2
Check: examples
Result: ERROR
    Running examples in ‘glmnet-Ex.R’ failed
    The error most likely occurred in:
    
    > ### Name: cox.path
    > ### Title: Fit a Cox regression model with elastic net regularization for a
    > ### path of lambda values
    > ### Aliases: cox.path
    >
    > ### ** Examples
    >
    > set.seed(2)
    > nobs <- 100; nvars <- 15
    > xvec <- rnorm(nobs * nvars)
    > xvec[sample.int(nobs * nvars, size = 0.4 * nobs * nvars)] <- 0
    > x <- matrix(xvec, nrow = nobs)
    > beta <- rnorm(nvars / 3)
    > fx <- x[, seq(nvars / 3)] %*% beta / 3
    > ty <- rexp(nobs, exp(fx))
    > tcens <- rbinom(n = nobs, prob = 0.3, size = 1)
    > jsurv <- survival::Surv(ty, tcens)
    > fit1 <- glmnet:::cox.path(x, jsurv)
    >
    > # works with sparse x matrix
    > x_sparse <- Matrix::Matrix(x, sparse = TRUE)
    > fit2 <- glmnet:::cox.path(x_sparse, jsurv)
    Error in elnet.fit(x, z, w, lambda, alpha, intercept = FALSE, thresh = thresh, :
     NA/NaN/Inf in foreign function call (arg 23)
    Calls: <Anonymous> -> cox.fit -> elnet.fit
    Execution halted
Flavor: r-patched-solaris-x86