Running 'testthat.R' [24s]
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")
  -- 1. Error: (unknown) (@test2_cv_glmnet.R#11)  --------------------------------
  unused arguments (gamma = gamma, relax = relax)
  Backtrace:
   1. glmnetUtils::cv.glmnet(...)
   2. glmnetUtils:::cv.glmnet.formula(...)
   3. glmnet::cv.glmnet(...)
  
  -- 2. Error: mismatched factor levels work, cv.glmnet (@test4_predict.R#35)  ---
  unused arguments (gamma = gamma, relax = relax)
  Backtrace:
   1. glmnetUtils::cv.glmnet(y ~ x, df, lambda = l, use.model.frame = TRUE)
   2. glmnetUtils:::cv.glmnet.formula(y ~ x, df, lambda = l, use.model.frame = TRUE)
   3. glmnet::cv.glmnet(...)
  
  -- 3. Error: relaxed glmnet works (@test5_relaxed.R#7)  ------------------------
  unused argument (relax = TRUE)
  
  -- 4. Error: relaxed glmnet works with weights and offset (@test5_relaxed.R#21) 
  unused argument (relax = TRUE)
  
  -- 5. Error: relaxed predict and coef work (@test5_relaxed.R#35)  --------------
  unused argument (relax = TRUE)
  Backtrace:
   1. glmnetUtils::glmnet(x, y, family = "multinomial", relax = TRUE)
   2. glmnetUtils:::glmnet.default(x, y, family = "multinomial", relax = TRUE)
  
  -- 6. Error: relaxed predict and coef work with nondefault gamma (@test5_relaxed
  unused argument (relax = TRUE)
  Backtrace:
   1. glmnetUtils::glmnet(x, y, family = "multinomial", relax = TRUE)
   2. glmnetUtils:::glmnet.default(x, y, family = "multinomial", relax = TRUE)
  
  -- 7. Error: (unknown) (@test6_relaxed_cv.R#7)  --------------------------------
  unused arguments (gamma = (0:3)/3, relax = TRUE)
  Backtrace:
   1. glmnet::cv.glmnet(...)
  
  == testthat results  ===========================================================
  [ OK: 96 | SKIPPED: 1 | WARNINGS: 0 | FAILED: 7 ]
  1. Error: (unknown) (@test2_cv_glmnet.R#11) 
  2. Error: mismatched factor levels work, cv.glmnet (@test4_predict.R#35) 
  3. Error: relaxed glmnet works (@test5_relaxed.R#7) 
  4. Error: relaxed glmnet works with weights and offset (@test5_relaxed.R#21) 
  5. Error: relaxed predict and coef work (@test5_relaxed.R#35) 
  6. Error: relaxed predict and coef work with nondefault gamma (@test5_relaxed.R#54) 
  7. Error: (unknown) (@test6_relaxed_cv.R#7) 
  
  Error: testthat unit tests failed
  Execution halted