Running 'testthat.R' [7s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(stratamatch)
  > 
  > test_check("stratamatch")
  -- 1. Error: Print manual strata works (@test-S3_functions.R#16)  --------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. stratamatch::manual_stratify(test_dat, treated ~ C1)
   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)
  
  -- 2. Error: Print auto strata works (@test-S3_functions.R#22)  ----------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. stratamatch::auto_stratify(...)
   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)
  
  -- 3. Error: Summary of strata works (@test-S3_functions.R#35)  ----------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. stratamatch::manual_stratify(test_dat, treated ~ C1)
   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)
  
  -- 4. Error: Plot errors work (@test-S3_functions.R#51)  -----------------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. stratamatch::manual_stratify(test_dat, treated ~ C1)
   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)
  
  -- 5. Failure: auto_stratify errors work (@test-auto_stratify.R#63)  -----------
  `auto_stratify(...)` threw an error with unexpected message.
  Expected match: "prognostic scores must be the same length as the data"
  Actual message: "DLL 'dplyr' not found: maybe not installed for this architecture?"
  Backtrace:
    1. testthat::expect_error(...)
    6. stratamatch::auto_stratify(...)
   11. dplyr::ungroup(.)
   16. base::getExportedValue(pkg, name)
   17. base::asNamespace(ns)
   18. base::getNamespace(ns)
   19. base::loadNamespace(name)
   20. base::library.dynam(lib, package, package.lib)
  
  -- 6. Failure: auto_stratify errors work (@test-auto_stratify.R#68)  -----------
  `auto_stratify(...)` threw an error with unexpected message.
  Expected match: "If specifying prognostic scores, outcome must be specified"
  Actual message: "DLL 'dplyr' not found: maybe not installed for this architecture?"
  Backtrace:
    1. testthat::expect_error(...)
    6. stratamatch::auto_stratify(...)
   11. dplyr::ungroup(.)
   16. base::getExportedValue(pkg, name)
   17. base::asNamespace(ns)
   18. base::getNamespace(ns)
   19. base::loadNamespace(name)
   20. base::library.dynam(lib, package, package.lib)
  
  -- 7. Failure: auto_stratify errors work (@test-auto_stratify.R#74)  -----------
  `auto_stratify(...)` threw an error with unexpected message.
  Expected match: "prognostic formula must model outcome, not treatment"
  Actual message: "DLL 'dplyr' not found: maybe not installed for this architecture?"
  Backtrace:
    1. testthat::expect_error(...)
    6. stratamatch::auto_stratify(...)
   11. dplyr::ungroup(.)
   16. base::getExportedValue(pkg, name)
   17. base::asNamespace(ns)
   18. base::getNamespace(ns)
   19. base::loadNamespace(name)
   20. base::library.dynam(lib, package, package.lib)
  
  -- 8. Failure: auto_stratify errors work (@test-auto_stratify.R#78)  -----------
  `auto_stratify(...)` threw an error with unexpected message.
  Expected match: "prognostic formula must model outcome"
  Actual message: "DLL 'dplyr' not found: maybe not installed for this architecture?"
  Backtrace:
    1. testthat::expect_error(...)
    6. stratamatch::auto_stratify(...)
   11. dplyr::ungroup(.)
   16. base::getExportedValue(pkg, name)
   17. base::asNamespace(ns)
   18. base::getNamespace(ns)
   19. base::loadNamespace(name)
   20. base::library.dynam(lib, package, package.lib)
  
  -- 9. Failure: auto_stratify errors work (@test-auto_stratify.R#83)  -----------
  `auto_stratify(...)` threw an error with unexpected message.
  Expected match: "prognostic formula must model the outcome in the absence of treatment; the treatment assignment may not be a predictor for the prognostic score model"
  Actual message: "DLL 'dplyr' not found: maybe not installed for this architecture?"
  Backtrace:
    1. testthat::expect_error(...)
    6. stratamatch::auto_stratify(...)
   11. dplyr::ungroup(.)
   16. base::getExportedValue(pkg, name)
   17. base::asNamespace(ns)
   18. base::getNamespace(ns)
   19. base::loadNamespace(name)
   20. base::library.dynam(lib, package, package.lib)
  
  -- 10. Error: auto_stratify errors work (@test-auto_stratify.R#89)  ------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
   1. dplyr::select
   2. base::getExportedValue(pkg, name)
   3. base::asNamespace(ns)
   4. base::getNamespace(ns)
   5. base::loadNamespace(name)
   6. base::library.dynam(lib, package, package.lib)
  
  -- 11. Error: auto_stratify with prognostic scores works (@test-auto_stratify.R#
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. stratamatch::auto_stratify(...)
   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)
  
  -- 12. Error: auto_stratify with prognostic formula + pilot_fraction works (@tes
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. stratamatch::auto_stratify(...)
   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)
  
  -- 13. Error: auto_stratify with prognostic formula + pilot_sample works (@test-
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. stratamatch::auto_stratify(...)
   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)
  
  -- 14. Error: auto_stratify with prognostic model works (@test-auto_stratify.R#2
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. stratamatch::auto_stratify(...)
   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)
  
  -- 15. Error: auto_stratify with logical outcome works (@test-auto_stratify.R#32
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    9. dplyr::mutate(., outcomes = outcomes == 1)
   10. base::getExportedValue(pkg, name)
   11. base::asNamespace(ns)
   12. base::getNamespace(ns)
   13. base::loadNamespace(name)
   14. base::library.dynam(lib, package, package.lib)
  
  -- 16. Error: auto_stratify with logical treatment works (@test-auto_stratify.R#
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    9. dplyr::mutate(., treated = treated == 1)
   10. base::getExportedValue(pkg, name)
   11. base::asNamespace(ns)
   12. base::getNamespace(ns)
   13. base::loadNamespace(name)
   14. base::library.dynam(lib, package, package.lib)
  
  -- 17. Error: auto_stratify with continuous outcome works (@test-auto_stratify.R
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    9. dplyr::mutate(., outcomes = rnorm(100))
   10. base::getExportedValue(pkg, name)
   11. base::asNamespace(ns)
   12. base::getNamespace(ns)
   13. base::loadNamespace(name)
   14. base::library.dynam(lib, package, package.lib)
  
  -- 18. Error: manual_stratify errors work (@test-manual_stratify.R#12)  --------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. stratamatch:::make_test_data()
    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)
  
  -- 19. Error: manual stratify with logical treatment works (@test-manual_stratif
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. stratamatch:::make_test_data()
    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)
  
  -- 20. Error: manual stratify works (@test-manual_stratify.R#95)  --------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. stratamatch:::make_test_data()
    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)
  
  -- 21. Error: matching works (@test-match_functions.R#15)  ---------------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. stratamatch::manual_stratify(test_dat, treated ~ C1)
   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)
  
  -- 22. Error: matching errors work (@test-match_functions.R#33)  ---------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. stratamatch::manual_stratify(test_dat, treated ~ C1)
   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)
  
  -- 23. Error: split_pilot_set errors work (@test-split_pilot_set.R#51)  --------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. testthat::expect_warning(...)
    6. stratamatch::split_pilot_set(test_dat, treat = "treated", group_by_covariates = "X1")
   11. dplyr::ungroup(.)
   16. base::getExportedValue(pkg, name)
   17. base::asNamespace(ns)
   18. base::getNamespace(ns)
   19. base::loadNamespace(name)
   20. base::library.dynam(lib, package, package.lib)
  
  -- 24. Error: split pilot set with pilot sample specified (@test-split_pilot_set
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
   1. dplyr::sample_frac
   2. base::getExportedValue(pkg, name)
   3. base::asNamespace(ns)
   4. base::getNamespace(ns)
   5. base::loadNamespace(name)
   6. base::library.dynam(lib, package, package.lib)
  
  -- 25. Error: split pilot set with pilot_frac and group_by_covariates specified 
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. stratamatch::split_pilot_set(...)
   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)
  
  == testthat results  ===========================================================
  [ OK: 13 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 25 ]
  1. Error: Print manual strata works (@test-S3_functions.R#16) 
  2. Error: Print auto strata works (@test-S3_functions.R#22) 
  3. Error: Summary of strata works (@test-S3_functions.R#35) 
  4. Error: Plot errors work (@test-S3_functions.R#51) 
  5. Failure: auto_stratify errors work (@test-auto_stratify.R#63) 
  6. Failure: auto_stratify errors work (@test-auto_stratify.R#68) 
  7. Failure: auto_stratify errors work (@test-auto_stratify.R#74) 
  8. Failure: auto_stratify errors work (@test-auto_stratify.R#78) 
  9. Failure: auto_stratify errors work (@test-auto_stratify.R#83) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted