Running 'testthat.R' [25s/39s]
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. Failure: xlev handling works (@test0_simple_mm.R#119)  -------------------
  length(xy1$xlev[[1]]$a) not equal to 4.
  1/1 mismatches
  [1] 0 - 4 == -4
  
  -- 2. Failure: xlev handling works (@test0_simple_mm.R#120)  -------------------
  length(xy1$xlev[[2]]$b) not equal to 6.
  1/1 mismatches
  [1] 0 - 6 == -6
  
  -- 3. Error: mismatched factor levels work, glmnet (@test4_predict.R#28)  ------
  Cholmod error 'X and/or Y have wrong dimensions' at file ../MatrixOps/cholmod_sdmult.c, line 90
  Backtrace:
    1. testthat::expect_equal(predict(m1, newdf3a), predict(m1, newdf3b))
    5. glmnetUtils:::predict.glmnet.formula(m1, newdf3a)
    9. glmnet::predict.glmnet(object, x, offset = offset, ...)
   12. cbind2(1, newx) %*% nbeta
  
  -- 4. Error: mismatched factor levels work, cv.glmnet (@test4_predict.R#56)  ---
  Cholmod error 'X and/or Y have wrong dimensions' at file ../MatrixOps/cholmod_sdmult.c, line 90
  Backtrace:
    1. testthat::expect_equal(predict(m1, newdf3a), predict(m1, newdf3b))
    5. glmnetUtils:::predict.cv.glmnet.formula(m1, newdf3a)
    7. glmnet:::predict.cv.glmnet(object, x, ...)
   11. glmnet::predict.glmnet(object$glmnet.fit, newx, s = lambda, ...)
   14. cbind2(1, newx) %*% nbeta
  
  -- 5. Error: mismatched factor levels work, cva.glmnet (@test4_predict.R#84)  --
  Cholmod error 'X and/or Y have wrong dimensions' at file ../MatrixOps/cholmod_sdmult.c, line 90
  Backtrace:
    1. testthat::expect_equal(...)
    5. glmnetUtils:::predict.cva.glmnet.formula(m1, newdf3a, alpha = 1)
    6. glmnetUtils:::predict.cva.glmnet(object, x, which = which, ...)
    8. glmnet:::predict.cv.glmnet(mod, newx, ...)
   12. glmnet::predict.glmnet(object$glmnet.fit, newx, s = lambda, ...)
   15. cbind2(1, newx) %*% nbeta
  
  == testthat results  ===========================================================
  [ OK: 145 | SKIPPED: 1 | WARNINGS: 0 | FAILED: 5 ]
  1. Failure: xlev handling works (@test0_simple_mm.R#119) 
  2. Failure: xlev handling works (@test0_simple_mm.R#120) 
  3. Error: mismatched factor levels work, glmnet (@test4_predict.R#28) 
  4. Error: mismatched factor levels work, cv.glmnet (@test4_predict.R#56) 
  5. Error: mismatched factor levels work, cva.glmnet (@test4_predict.R#84) 
  
  Error: testthat unit tests failed
  Execution halted