Running ‘testthat.R’ [179s/407s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(projpred)
  This is projpred version 1.1.0.
  > library(rstanarm) # we need rstanarm for running the tests
  Loading required package: Rcpp
  rstanarm (Version 2.18.2, packaged: 2018-11-08 22:19:38 UTC)
  - Do not expect the default priors to remain the same in future rstanarm versions.
  Thus, R scripts should specify priors explicitly, even if they are just the defaults.
  - For execution on a local, multicore CPU with excess RAM we recommend calling
  options(mc.cores = parallel::detectCores())
  - Plotting theme set to bayesplot::theme_default().
  > 
  > test_check("projpred")
  ── 1. Failure: L1-projection with data reference gives the same results as Lasso
  max(abs(pred1[[j]] - pred2[, j])) < 3 * 0.01 isn't true.
  
  ── 2. Failure: L1-projection with data reference gives the same results as Lasso
  max(abs(pred1[[j]] - pred2[, j])) < 3 * 0.01 isn't true.
  
  ── 3. Failure: L1-projection with data reference gives the same results as Lasso
  max(abs(pred1[[j]] - pred2[, j])) < 3 * 0.01 isn't true.
  
  ── 4. Failure: L1-projection with data reference gives the same results as Lasso
  max(abs(pred1[[j]] - pred2[, j])) < 3 * 0.01 isn't true.
  
  ── 5. Error: L1-projection with data reference gives the same results as Lasso f
  Matrices must have same dimensions in .Arith.Csparse(e1, e2, .Generic, class. = "dgCMatrix")
  1: vs$spath$beta - lasso$beta[vs$spath$vind, lambdainds] at testthat/test_datafit.R:217
  2: vs$spath$beta - lasso$beta[vs$spath$vind, lambdainds]
  3: callGeneric(Matrix(e1), e2)
  4: eval(call, parent.frame())
  5: eval(call, parent.frame())
  6: Matrix(e1) - e2
  7: Matrix(e1) - e2
  8: .Arith.Csparse(e1, e2, .Generic, class. = "dgCMatrix")
  9: dimCheck(e1, e2)
  10: stop(gettextf("Matrices must have same dimensions in %s", deparse(sys.call(sys.parent()))), 
         call. = FALSE, domain = NA)
  
  ── 6. Failure: glm_ridge: gaussian, id-link, intercept, lambda = 0.5 (@test_glm_
  `exp_beta` not equal to c(ridgefit$beta0, ridgefit$beta).
  1/6 mismatches
  [5] -0.346 - -0.344 == -0.00162
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 1572 SKIPPED: 0 FAILED: 6
  1. Failure: L1-projection with data reference gives the same results as Lasso from glmnet. (@test_datafit.R#213) 
  2. Failure: L1-projection with data reference gives the same results as Lasso from glmnet. (@test_datafit.R#213) 
  3. Failure: L1-projection with data reference gives the same results as Lasso from glmnet. (@test_datafit.R#213) 
  4. Failure: L1-projection with data reference gives the same results as Lasso from glmnet. (@test_datafit.R#213) 
  5. Error: L1-projection with data reference gives the same results as Lasso from glmnet. (@test_datafit.R#217) 
  6. Failure: glm_ridge: gaussian, id-link, intercept, lambda = 0.5 (@test_glm_ridge.R#126) 
  
  Error: testthat unit tests failed
  Execution halted