Running 'testthat.R' [4s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(rfm)
  > 
  > test_check("rfm")
  -- 1. Error: (unknown) (@test-rfm-plots.R#85)  ---------------------------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. rfm::rfm_table_order(...)
    2. rfm:::rfm_table_order.default(...)
   10. dplyr::select(., !!cust_id, !!odate, !!revenues)
   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: first 10 rows of output from rfm_segment are as expected (@test-rfm
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. rfm::rfm_table_order(...)
    2. rfm:::rfm_table_order.default(...)
   10. dplyr::select(., !!cust_id, !!odate, !!revenues)
   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: output from rfm_table_order is as expected (@test-rfm-table.R#6)  -
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. rfm::rfm_table_order(...)
    2. rfm:::rfm_table_order.default(...)
   10. dplyr::select(., !!cust_id, !!odate, !!revenues)
   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: output from rfm_table_order is as expected when using custom thresh
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. rfm::rfm_table_order(...)
    2. rfm:::rfm_table_order.default(...)
   10. dplyr::select(., !!cust_id, !!odate, !!revenues)
   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. Error: output from rfm_table_customer is as expected (@test-rfm-table.R#43
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. rfm::rfm_table_customer(...)
    2. rfm:::rfm_table_customer.default(...)
   10. dplyr::select(., !!cust_id, !!n_recency, !!order_count, !!revenues)
   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: output from rfm_table_customer is as expected when using custom
     
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. rfm::rfm_table_customer(...)
    2. rfm:::rfm_table_customer.default(...)
   10. dplyr::select(., !!cust_id, !!n_recency, !!order_count, !!revenues)
   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)
  
  -- 7. Error: output from rfm_table_customer_2 is as expected (@test-rfm-table.R#
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. rfm::rfm_table_customer_2(...)
    2. rfm:::rfm_table_customer_2.default(...)
   10. dplyr::mutate(., recency_days = (analysis_date - !!recent_visit)/lubridate::ddays())
   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)
  
  -- 8. Error: output from rfm_table_customer_2 is as expected when using custom
   
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. rfm::rfm_table_customer_2(...)
    2. rfm:::rfm_table_customer_2.default(...)
   10. dplyr::mutate(., recency_days = (analysis_date - !!recent_visit)/lubridate::ddays())
   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)
  
  -- 9. Error: output from bins is as expected (@test-utils.R#5)  ----------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. rfm:::bins(mtcars, mpg, 5)
    9. dplyr::pull(., !!my_value)
   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: output from bins_lower is as expected (@test-utils.R#13)  --------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. rfm:::bins_lower(mtcars, mpg, 5)
    9. dplyr::pull(., !!my_value)
   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: output from bins_upper is as expected (@test-utils.R#20)  --------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. rfm:::bins_upper(mtcars, mpg, 5)
    9. dplyr::pull(., !!my_value)
   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: output from rfm_heatmap_data is as expected  ---------------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. rfm::rfm_table_order(...)
    2. rfm:::rfm_table_order.default(...)
   10. dplyr::select(., !!cust_id, !!odate, !!revenues)
   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: output from check_levels is as expected  -------------------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. rfm::rfm_table_order(...)
    2. rfm:::rfm_table_order.default(...)
   10. dplyr::select(., !!cust_id, !!odate, !!revenues)
   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: output from modify_rfm is as expected  ---------------------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. rfm::rfm_table_order(...)
    2. rfm:::rfm_table_order.default(...)
   10. dplyr::select(., !!cust_id, !!odate, !!revenues)
   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: 7 | WARNINGS: 0 | FAILED: 14 ]
  1. Error: (unknown) (@test-rfm-plots.R#85) 
  2. Error: first 10 rows of output from rfm_segment are as expected (@test-rfm-segment.R#7) 
  3. Error: output from rfm_table_order is as expected (@test-rfm-table.R#6) 
  4. Error: output from rfm_table_order is as expected when using custom thresholds (@test-rfm-table.R#23) 
  5. Error: output from rfm_table_customer is as expected (@test-rfm-table.R#43) 
  6. Error: output from rfm_table_customer is as expected when using custom
            thresholds (@test-rfm-table.R#62) 
  7. Error: output from rfm_table_customer_2 is as expected (@test-rfm-table.R#83) 
  8. Error: output from rfm_table_customer_2 is as expected when using custom
            thresholds (@test-rfm-table.R#101) 
  9. Error: output from bins is as expected (@test-utils.R#5) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted