Running ‘testthat.R’ [66s/65s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > Sys.setenv(R_TESTS="")  # needed for cluster creation to work
  > 
  > library(testthat)
  > library(glmnetUtils)
  > 
  > test_check("glmnetUtils")
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  ● RevoScaleR cannot be loaded (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test7_family.R:9:5): enhanced family arg works with glmnet ───────────
  Error: NA/NaN/Inf in foreign function call (arg 25)
  Backtrace:
      █
   1. └─glmnet::glmnet(x, y, family = gaussian) test7_family.R:9:4
   2.   └─glmnet:::glmnet.path(...)
   3.     └─glmnet:::glmnet.fit(...)
   4.       └─glmnet:::elnet.fit(...)
  ── Error (test7_family.R:36:5): enhanced family arg works with cv.glmnet ───────
  Error: NA/NaN/Inf in foreign function call (arg 25)
  Backtrace:
      █
   1. └─glmnet::cv.glmnet(x, y, alpha = 0.5, family = gaussian) test7_family.R:36:4
   2.   └─glmnet:::cv.glmnet.raw(...)
   3.     └─glmnet::glmnet(...)
   4.       └─glmnet:::glmnet.path(...)
   5.         └─glmnet:::glmnet.fit(...)
   6.           └─glmnet:::elnet.fit(...)
  ── Error (test7_family.R:60:5): enhanced family arg works with cva.glmnet ──────
  Error: 'NA' indices are not (yet?) supported for sparse Matrices
  Backtrace:
       █
    1. ├─glmnetUtils::cva.glmnet(medv ~ ., data = Boston) test7_family.R:60:4
    2. └─glmnetUtils:::cva.glmnet.formula(medv ~ ., data = Boston)
    3.   └─glmnetUtils:::cva.glmnet.default(...)
    4.     └─base::lapply(...)
    5.       └─glmnetUtils:::FUN(X[[i]], ...)
    6.         └─glmnet::cv.glmnet(...)
    7.           └─glmnet:::cv.glmnet.raw(...)
    8.             ├─glmnet::buildPredmat(...)
    9.             └─glmnet:::buildPredmat.default(...)
   10.               ├─stats::predict(...)
   11.               ├─glmnet:::predict.elnet(...)
   12.               ├─base::NextMethod("predict")
   13.               └─glmnet::predict.glmnet(...)
   14.                 ├─nbeta[, lamlist$left, drop = FALSE]
   15.                 └─nbeta[, lamlist$left, drop = FALSE]
   16.                   └─Matrix:::subCsp_cols(x, j, drop = drop)
   17.                     └─Matrix:::intI(j, n = x@Dim[2], dn[[2]], give.dn = FALSE)
  ── Error (test7_family.R:79:5): enhanced family arg works with relaxed glmnet ──
  Error: NA/NaN/Inf in foreign function call (arg 25)
  Backtrace:
      █
   1. └─glmnet::glmnet(x, y, family = gaussian, alpha = 0.5, relax = TRUE) test7_family.R:79:4
   2.   └─glmnet:::glmnet.path(...)
   3.     └─glmnet:::glmnet.fit(...)
   4.       └─glmnet:::elnet.fit(...)
  ── Error (test7_family.R:102:5): enhanced family arg works with relaxed cv.glmnet ──
  Error: NA/NaN/Inf in foreign function call (arg 25)
  Backtrace:
      █
   1. └─glmnet::cv.glmnet(...) test7_family.R:102:4
   2.   └─glmnet:::cv.relaxed.raw(...)
   3.     └─glmnet:::relaxglmnet(...)
   4.       └─glmnet::glmnet(x, ...)
   5.         └─glmnet:::glmnet.path(...)
   6.           └─glmnet:::glmnet.fit(...)
   7.             └─glmnet:::elnet.fit(...)
  
  [ FAIL 5 | WARN 0 | SKIP 1 | PASS 159 ]
  Error: Test failures
  Execution halted