Running 'testthat.R' [4s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(RCT)
  > 
  > test_check("RCT")
  -- 1. Error: (unknown) (@test_balance_regression.R#16)  ------------------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. RCT::balance_regression(...)
   10. dplyr::select(., inc, age, log_outcome, treat)
   14. base::getExportedValue(pkg, name)
   15. base::asNamespace(ns)
   16. base::getNamespace(ns)
   17. base::loadNamespace(name)
   18. base::library.dynam(lib, package, package.lib)
  
  -- 2. Error: (unknown) (@test_balance_table.R#15)  -----------------------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. RCT::balance_table(...)
   10. dplyr::select(., inc, age, log_outcome, treat)
   14. base::getExportedValue(pkg, name)
   15. base::asNamespace(ns)
   16. base::getNamespace(ns)
   17. base::loadNamespace(name)
   18. base::library.dynam(lib, package, package.lib)
  
  -- 3. Error: (unknown) (@test_impact_eval.R#16)  -------------------------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. RCT::impact_eval(...)
    2. purrr::map(...)
    3. RCT:::.f(.x[[i]], ...)
    4. lfe::felm(stats::as.formula(.), data = data)
   12. broom::tidy(.)
   13. base::getExportedValue(pkg, name)
   14. base::asNamespace(ns)
   15. base::getNamespace(ns)
   16. base::loadNamespace(name)
   18. base::loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]])
   19. base::library.dynam(lib, package, package.lib)
  
  -- 4. Error: ntile returns factor with n-classes (@test_ntile_label.R#16)  -----
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. testthat::expect_is(ntile_label(data_original$inc, n = 4), "factor")
    4. RCT::ntile_label(data_original$inc, n = 4)
    5. dplyr::tibble
    6. base::getExportedValue(pkg, name)
    7. base::asNamespace(ns)
    8. base::getNamespace(ns)
    9. base::loadNamespace(name)
   10. base::library.dynam(lib, package, package.lib)
  
  -- 5. Error: (unknown) (@test_summary_statistics.R#15)  ------------------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. RCT::summary_statistics(data_original)
   10. dplyr::ungroup(.)
   11. base::getExportedValue(pkg, name)
   12. base::asNamespace(ns)
   13. base::getNamespace(ns)
   14. base::loadNamespace(name)
   15. base::library.dynam(lib, package, package.lib)
  
  -- 6. Error: (unknown) (@test_tau_min.R#18)  -----------------------------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. RCT::tau_min(...)
   10. dplyr::select(., log_outcome)
   12. base::getExportedValue(pkg, name)
   13. base::asNamespace(ns)
   14. base::getNamespace(ns)
   15. base::loadNamespace(name)
   16. base::library.dynam(lib, package, package.lib)
  
  -- 7. Error: (unknown) (@test_treatment_assign.R#17)  --------------------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. RCT::treatment_assign(...)
   10. dplyr::arrange(., !!rlang::sym(key))
   11. base::getExportedValue(pkg, name)
   12. base::asNamespace(ns)
   13. base::getNamespace(ns)
   14. base::loadNamespace(name)
   15. base::library.dynam(lib, package, package.lib)
  
  == testthat results  ===========================================================
  [ OK: 0 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 7 ]
  1. Error: (unknown) (@test_balance_regression.R#16) 
  2. Error: (unknown) (@test_balance_table.R#15) 
  3. Error: (unknown) (@test_impact_eval.R#16) 
  4. Error: ntile returns factor with n-classes (@test_ntile_label.R#16) 
  5. Error: (unknown) (@test_summary_statistics.R#15) 
  6. Error: (unknown) (@test_tau_min.R#18) 
  7. Error: (unknown) (@test_treatment_assign.R#17) 
  
  Error: testthat unit tests failed
  Execution halted