Running 'testthat.R' [3s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(dmtools)
  
  Attaching package: 'dmtools'
  
  The following object is masked from 'package:base':
  
      date
  
  > 
  > test_check("dmtools")
  -- 1. Error: (unknown) (@test_date.R#12)  --------------------------------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
   1. dmtools::date("dates.xlsx", id, dplyr::contains)
   2. dplyr::enquo
   3. base::getExportedValue(pkg, name)
   4. base::asNamespace(ns)
   5. base::getNamespace(ns)
   6. base::loadNamespace(name)
   7. base::library.dynam(lib, package, package.lib)
  
  -- 2. Error: (unknown) (@test_lab.R#17)  ---------------------------------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
   1. dmtools::lab(...)
   2. dplyr::enquo
   3. base::getExportedValue(pkg, name)
   4. base::asNamespace(ns)
   5. base::getNamespace(ns)
   6. base::loadNamespace(name)
   7. base::library.dynam(lib, package, package.lib)
  
  -- 3. Error: check names of renamed dataset (@test_rename.R#20)  ---------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. dmtools::rename_dataset(...)
    3. base::lapply(...)
    4. dmtools:::FUN(X[[i]], ...)
    4. readxl::read_xlsx(file, sheet = num_sheet)
   12. dplyr::rename(., !!vars)
   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)
  
  -- 4. Error: check the number of columns with common variables (@test_short.R#16
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
   1. dmtools::short("preg.xlsx", id, "res", c("site", "sex"))
   2. dplyr::enquo
   3. base::getExportedValue(pkg, name)
   4. base::asNamespace(ns)
   5. base::getNamespace(ns)
   6. base::loadNamespace(name)
   7. base::library.dynam(lib, package, package.lib)
  
  -- 5. Error: check the number of columns without common variables (@test_short.R
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
   1. dmtools::short("preg.xlsx", id, "res")
   2. dplyr::enquo
   3. base::getExportedValue(pkg, name)
   4. base::asNamespace(ns)
   5. base::getNamespace(ns)
   6. base::loadNamespace(name)
   7. base::library.dynam(lib, package, package.lib)
  
  -- 6. Error: check the number of columns with extra variables (@test_short.R#30)
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
   1. dmtools::short("preg_extra.xlsx", id, "res", extra = "human_name")
   2. dplyr::enquo
   3. base::getExportedValue(pkg, name)
   4. base::asNamespace(ns)
   5. base::getNamespace(ns)
   6. base::loadNamespace(name)
   7. base::library.dynam(lib, package, package.lib)
  
  -- 7. Error: (unknown) (@test_wbc.R#11)  ---------------------------------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
   1. dmtools::wbc("wbcc.xlsx", id)
   2. dplyr::enquo
   3. base::getExportedValue(pkg, name)
   4. base::asNamespace(ns)
   5. base::getNamespace(ns)
   6. base::loadNamespace(name)
   7. base::library.dynam(lib, package, package.lib)
  
  == testthat results  ===========================================================
  [ OK: 0 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 7 ]
  1. Error: (unknown) (@test_date.R#12) 
  2. Error: (unknown) (@test_lab.R#17) 
  3. Error: check names of renamed dataset (@test_rename.R#20) 
  4. Error: check the number of columns with common variables (@test_short.R#16) 
  5. Error: check the number of columns without common variables (@test_short.R#23) 
  6. Error: check the number of columns with extra variables (@test_short.R#30) 
  7. Error: (unknown) (@test_wbc.R#11) 
  
  Error: testthat unit tests failed
  Execution halted