Running 'testthat.R' [3s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(apyramid)
  > 
  > test_check("apyramid")
  -- 1. Error: (unknown) (@test-age-pyramid.R#77)  -------------------------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
   1. apyramid::age_pyramid(dat, age_group = "AGE")
   2. apyramid:::aggregate_by_age(...)
   3. apyramid:::treat_nas(data, age_group, split_by, stack_by, na.rm)
   4. dplyr::select
   5. base::getExportedValue(pkg, name)
   6. base::asNamespace(ns)
   7. base::getNamespace(ns)
   8. base::loadNamespace(name)
   9. base::library.dynam(lib, package, package.lib)
  
  -- 2. Error: aggregation will do sums without missing (@test-aggregate_by_age.R#
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. testthat::expect_warning(...)
    6. apyramid:::aggregate_by_age(f, "age", "gender", na.rm = TRUE)
    7. apyramid:::treat_nas(data, age_group, split_by, stack_by, na.rm)
    8. dplyr::select
    9. base::getExportedValue(pkg, name)
   10. base::asNamespace(ns)
   11. base::getNamespace(ns)
   12. base::loadNamespace(name)
   13. base::library.dynam(lib, package, package.lib)
  
  -- 3. Error: aggregation will do proportions without missing (@test-aggregate_by
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. testthat::expect_warning(...)
    6. apyramid:::aggregate_by_age(...)
    7. apyramid:::treat_nas(data, age_group, split_by, stack_by, na.rm)
    8. dplyr::select
    9. base::getExportedValue(pkg, name)
   10. base::asNamespace(ns)
   11. base::getNamespace(ns)
   12. base::loadNamespace(name)
   13. base::library.dynam(lib, package, package.lib)
  
  -- 4. Error: aggregation will do sums with missing (@test-aggregate_by_age.R#86)
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. testthat::expect_silent(...)
    9. apyramid:::aggregate_by_age(f, "age", "gender", na.rm = FALSE)
   10. apyramid:::treat_nas(data, age_group, split_by, stack_by, na.rm)
   11. dplyr::select
   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: aggregation will do proportions with missing (@test-aggregate_by_ag
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. testthat::expect_silent(...)
    9. apyramid:::aggregate_by_age(...)
   10. apyramid:::treat_nas(data, age_group, split_by, stack_by, na.rm)
   11. dplyr::select
   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)
  
  == testthat results  ===========================================================
  [ OK: 1 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 5 ]
  1. Error: (unknown) (@test-age-pyramid.R#77) 
  2. Error: aggregation will do sums without missing (@test-aggregate_by_age.R#23) 
  3. Error: aggregation will do proportions without missing (@test-aggregate_by_age.R#54) 
  4. Error: aggregation will do sums with missing (@test-aggregate_by_age.R#86) 
  5. Error: aggregation will do proportions with missing (@test-aggregate_by_age.R#107) 
  
  Error: testthat unit tests failed
  Execution halted