CRAN Package Check Results for Package glmnet

Last updated on 2021-09-25 00:51:35 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 4.1-2 31.35 275.82 307.17 OK
r-devel-linux-x86_64-debian-gcc 4.1-2 24.66 201.55 226.21 OK
r-devel-linux-x86_64-fedora-clang 4.1-2 368.14 OK
r-devel-linux-x86_64-fedora-gcc 4.1-2 357.84 OK
r-devel-windows-x86_64 4.1-2 31.00 272.00 303.00 OK
r-devel-windows-x86_64-gcc10-UCRT 4.1-2 OK
r-patched-linux-x86_64 4.1-2 30.55 272.53 303.08 OK
r-patched-solaris-x86 4.1-2 206.20 ERROR
r-release-linux-x86_64 4.1-2 29.40 273.33 302.73 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 68.00 320.00 388.00 OK
r-oldrel-macos-x86_64 4.1-2 OK
r-oldrel-windows-ix86+x86_64 4.1-2 48.00 324.00 372.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