Running 'testthat.R' [3s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(riskclustr)
  > 
  > test_check("riskclustr")
  -- 1. Error: d produces expected value (@test-d.R#4)  --------------------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. testthat::expect_equal(...)
    4. riskclustr::d("subtype", 4, list("x1", "x2", "x3"), subtype_data)
    5. mlogit::mFormula
    6. base::getExportedValue(pkg, name)
    7. base::asNamespace(ns)
    8. base::getNamespace(ns)
    9. base::loadNamespace(name)
   11. base::loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]])
   14. base::loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
   15. base::library.dynam(lib, package, package.lib)
  
  -- 2. Error: dstar produces expected value (@test-dstar.R#4)  ------------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. testthat::expect_equal(...)
    4. riskclustr::dstar(...)
    5. mlogit::mFormula
    6. base::getExportedValue(pkg, name)
    7. base::asNamespace(ns)
    8. base::getNamespace(ns)
    9. base::loadNamespace(name)
   11. base::loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]])
   14. base::loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
   15. base::library.dynam(lib, package, package.lib)
  
  -- 3. Error: (unknown) (@test-eh_test_marker.R#3)  -----------------------------
  package or namespace load failed for 'dplyr' in library.dynam(lib, package, package.lib):
   DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
   1. base::library(dplyr)
   2. base::tryCatch(...)
   3. base:::tryCatchList(expr, classes, parentenv, handlers)
   4. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5. value[[3L]](cond)
  
  -- 4. Error: (unknown) (@test-eh_test_subtype.R#3)  ----------------------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. riskclustr::eh_test_subtype(...)
    2. mlogit::mFormula
    3. base::getExportedValue(pkg, name)
    4. base::asNamespace(ns)
    5. base::getNamespace(ns)
    6. base::loadNamespace(name)
    8. base::loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]])
   11. base::loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
   12. base::library.dynam(lib, package, package.lib)
  
  -- 5. Error: (unknown) (@test-optimal_kmeans_d.R#3)  ---------------------------
  package or namespace load failed for 'dplyr' in library.dynam(lib, package, package.lib):
   DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
   1. base::library(dplyr)
   2. base::tryCatch(...)
   3. base:::tryCatchList(expr, classes, parentenv, handlers)
   4. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5. value[[3L]](cond)
  
  == testthat results  ===========================================================
  [ OK: 8 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 5 ]
  1. Error: d produces expected value (@test-d.R#4) 
  2. Error: dstar produces expected value (@test-dstar.R#4) 
  3. Error: (unknown) (@test-eh_test_marker.R#3) 
  4. Error: (unknown) (@test-eh_test_subtype.R#3) 
  5. Error: (unknown) (@test-optimal_kmeans_d.R#3) 
  
  Error: testthat unit tests failed
  Execution halted