Running 'testthat.R' [66s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(ICD10gm)
  > 
  > test_check("ICD10gm")
  -- 1. Error: ICD code can be specified as E103, E10.3 or E10.3- (@test-icd_expan
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. testthat::expect_equal(...)
    4. ICD10gm::icd_expand(data.frame(ICD = "E103"), year = 2018)
    5. ICD10gm::is_icd_code(icd_in$icd_spec)
    6. ICD10gm::icd_parse(str, type = "strict")
    7. dplyr::bind_rows
    8. base::getExportedValue(pkg, name)
    9. base::asNamespace(ns)
   10. base::getNamespace(ns)
   11. base::loadNamespace(name)
   12. base::library.dynam(lib, package, package.lib)
  
  -- 2. Error: Expands down the hierarchy (@test-icd_expand.R#32)  ---------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. testthat::expect_equal(...)
    4. ICD10gm::icd_expand(data.frame(ICD = "A09"), year = 2018)
    5. ICD10gm::is_icd_code(icd_in$icd_spec)
    6. ICD10gm::icd_parse(str, type = "strict")
    7. dplyr::bind_rows
    8. base::getExportedValue(pkg, name)
    9. base::asNamespace(ns)
   10. base::getNamespace(ns)
   11. base::loadNamespace(name)
   12. base::library.dynam(lib, package, package.lib)
  
  -- 3. Error: (unknown) (@test-icd_history.R#14)  -------------------------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
   1. ICD10gm::icd_expand(...)
   2. ICD10gm::is_icd_code(icd_in$icd_spec)
   3. ICD10gm::icd_parse(str, type = "strict")
   4. dplyr::bind_rows
   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)
  
  -- 4. Error: Correctly identifies ICD codes (@test-icd_parse.R#5)  -------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. testthat::expect_true(is_icd_code("R10"))
    4. ICD10gm::is_icd_code("R10")
    5. ICD10gm::icd_parse(str, type = "strict")
    6. dplyr::bind_rows
    7. base::getExportedValue(pkg, name)
    8. base::asNamespace(ns)
    9. base::getNamespace(ns)
   10. base::loadNamespace(name)
   11. base::library.dynam(lib, package, package.lib)
  
  -- 5. Error: Single ICD codes are correctly parsed (@test-icd_parse.R#24)  -----
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. testthat::expect_equal(...)
    4. ICD10gm::icd_parse("E10.1")
    5. dplyr::bind_rows
    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)
  
  -- 6. Error: icd_parsed is vectorised (@test-icd_parse.R#86)  ------------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. testthat::expect_equal(...)
    4. ICD10gm::icd_parse(c("E10.1", "E10 V", "E1012"))
    5. dplyr::bind_rows
    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)
  
  -- 7. Error: Two separated with hyphens are both identified (@test-icd_parse.R#9
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. testthat::expect_equal(...)
    4. ICD10gm::icd_parse("(A04.0-A04.4)")
    5. dplyr::bind_rows
    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)
  
  -- 8. Error: All possible ICD codes can be parsed (ICD_CODE) (@test-icd_parse.R#
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
   1. ICD10gm::icd_parse(icd_meta_codes$icd_code)
   2. dplyr::bind_rows
   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)
  
  -- 9. Error: All possible ICD codes can be parsed (ICD_SUB) (@test-icd_parse.R#1
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
   1. ICD10gm::icd_parse(icd_meta_codes$icd_sub)
   2. dplyr::bind_rows
   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)
  
  -- 10. Error: All possible ICD codes can be parsed (ICD3) (@test-icd_parse.R#135
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
   1. ICD10gm::icd_parse(icd_meta_codes$icd_sub)
   2. dplyr::bind_rows
   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: 1 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 10 ]
  1.  Error: ICD code can be specified as E103, E10.3 or E10.3- (@test-icd_expand.R#8) 
  2.  Error: Expands down the hierarchy (@test-icd_expand.R#32) 
  3.  Error: (unknown) (@test-icd_history.R#14) 
  4.  Error: Correctly identifies ICD codes (@test-icd_parse.R#5) 
  5.  Error: Single ICD codes are correctly parsed (@test-icd_parse.R#24) 
  6.  Error: icd_parsed is vectorised (@test-icd_parse.R#86) 
  7.  Error: Two separated with hyphens are both identified (@test-icd_parse.R#97) 
  8.  Error: All possible ICD codes can be parsed (ICD_CODE) (@test-icd_parse.R#109) 
  9.  Error: All possible ICD codes can be parsed (ICD_SUB) (@test-icd_parse.R#122) 
  10. Error: All possible ICD codes can be parsed (ICD3) (@test-icd_parse.R#135) 
  
  Error: testthat unit tests failed
  Execution halted