Running 'testthat.R' [4s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(JSmediation)
  > 
  > test_check("JSmediation")
  -- 1. Error: apastylr does not throw an error when used as intended (@test-apast
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. testthat::expect_silent(apastylr(test, "linkedfate"))
   10. JSmediation:::apastylr.lm(test, "linkedfate")
   11. broom::tidy
   12. base::getExportedValue(pkg, name)
   13. base::asNamespace(ns)
   14. base::getNamespace(ns)
   15. base::loadNamespace(name)
   17. base::loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]])
   18. base::library.dynam(lib, package, package.lib)
  
  -- 2. Error: Correctly reports p < .001 (@test-apastylr.R#12)  -----------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. testthat::expect_output(...)
   12. JSmediation:::apastylr.lm(test, "linkedfate")
   13. broom::tidy
   14. base::getExportedValue(pkg, name)
   15. base::asNamespace(ns)
   16. base::getNamespace(ns)
   17. base::loadNamespace(name)
   19. base::loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]])
   20. base::library.dynam(lib, package, package.lib)
  
  -- 3. Error: display_models does not throw an error when used as intented (@test
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. JSmediation::mdt_simple(...)
    2. JSmediation:::mdt_simple.data.frame(...)
   11. dplyr::pull(., !!IV_var)
   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)
  
  -- 4. Error: extract_model throws an error when `step` = NULL (@test-extract_mod
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. JSmediation::mdt_simple(...)
    2. JSmediation:::mdt_simple.data.frame(...)
   11. dplyr::pull(., !!IV_var)
   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)
  
  -- 5. Error: extract_model does not throw an error when used as intented (@test-
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. JSmediation::mdt_simple(...)
    2. JSmediation:::mdt_simple.data.frame(...)
   11. dplyr::pull(., !!IV_var)
   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)
  
  -- 6. Error: extract_models does not throw an error when used as intented (@test
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. JSmediation::mdt_simple(...)
    2. JSmediation:::mdt_simple.data.frame(...)
   11. dplyr::pull(., !!IV_var)
   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: extract_models does not throw an error when used as intented (@test
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. JSmediation::mdt_simple(...)
    2. JSmediation:::mdt_simple.data.frame(...)
   11. dplyr::pull(., !!IV_var)
   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)
  
  -- 8. Error: print method does not throw error (@test-indirect_effect-methods.R#
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. JSmediation::mdt_simple(...)
    2. JSmediation:::mdt_simple.data.frame(...)
   11. dplyr::pull(., !!IV_var)
   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)
  
  -- 9. Error: used models are correctly specified (@test-mdt_moderated.R#4)  ----
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    9. dplyr::mutate(...)
   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)
  
  -- 10. Error: mdt_moderated does not throw error (@test-mdt_moderated.R#27)  ---
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    9. dplyr::mutate(...)
   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)
  
  -- 11. Error: print method for mdt_moderated does not throw error (@test-mdt_mod
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    9. dplyr::mutate(...)
   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)
  
  -- 12. Error: print method for mdt_moderated throws message when a variable is n
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    9. dplyr::mutate(...)
   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)
  
  -- 13. Error: add_index method for mdt_moderated does not throw error when used 
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    9. dplyr::mutate(...)
   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)
  
  -- 14. Error: mdt_simple does not throw an error (@test-mdt_simple.R#8)  -------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. testthat::expect_silent(...)
   10. JSmediation:::mdt_simple.data.frame(...)
   11. dplyr::pull(., !!IV_var)
   20. base::getExportedValue(pkg, name)
   21. base::asNamespace(ns)
   22. base::getNamespace(ns)
   23. base::loadNamespace(name)
   24. base::library.dynam(lib, package, package.lib)
  
  -- 15. Error: mdt_simple print method does not throw an error (@test-mdt_simple.
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. JSmediation::mdt_simple(...)
    2. JSmediation:::mdt_simple.data.frame(...)
   11. dplyr::pull(., !!IV_var)
   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)
  
  -- 16. Error: add_index method does not throw error (@test-mdt_simple_index.R#9)
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. JSmediation::mdt_simple(...)
    2. JSmediation:::mdt_simple.data.frame(...)
   11. dplyr::pull(., !!IV_var)
   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)
  
  -- 17. Error: mdt_within does not throw error (@test-mdt_within.R#4)  ----------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. testthat::expect_silent(...)
   10. JSmediation:::mdt_within.data.frame(...)
   11. dplyr::pull(., !!IV_var)
   20. base::getExportedValue(pkg, name)
   21. base::asNamespace(ns)
   22. base::getNamespace(ns)
   23. base::loadNamespace(name)
   24. base::library.dynam(lib, package, package.lib)
  
  -- 18. Error: add_index method for mdt_within does not throw error (@test-mdt_wi
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. JSmediation::mdt_within(...)
    2. JSmediation:::mdt_within.data.frame(...)
   11. dplyr::pull(., !!IV_var)
   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)
  
  -- 19. Error: print method for mdt_within does not throw error (@test-mdt_within
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. JSmediation::mdt_within(...)
    2. JSmediation:::mdt_within.data.frame(...)
   11. dplyr::pull(., !!IV_var)
   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)
  
  -- 20. Error: mdt_within_wide does not throw an error when used as intended (@te
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. testthat::expect_silent(...)
   10. JSmediation:::mdt_within_wide.data.frame(...)
   11. dplyr::pull(., !!DV_A_var)
   20. base::getExportedValue(pkg, name)
   21. base::asNamespace(ns)
   22. base::getNamespace(ns)
   23. base::loadNamespace(name)
   24. base::library.dynam(lib, package, package.lib)
  
  == testthat results  ===========================================================
  [ OK: 6 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 20 ]
  1. Error: apastylr does not throw an error when used as intended (@test-apastylr.R#6) 
  2. Error: Correctly reports p < .001 (@test-apastylr.R#12) 
  3. Error: display_models does not throw an error when used as intented (@test-display_models.R#8) 
  4. Error: extract_model throws an error when `step` = NULL (@test-extract_models.R#9) 
  5. Error: extract_model does not throw an error when used as intented (@test-extract_models.R#23) 
  6. Error: extract_models does not throw an error when used as intented (@test-extract_models.R#37) 
  7. Error: extract_models does not throw an error when used as intented (@test-extract_models.R#51) 
  8. Error: print method does not throw error (@test-indirect_effect-methods.R#8) 
  9. Error: used models are correctly specified (@test-mdt_moderated.R#4) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted