Running 'spelling.R' [0s]
  Running 'testthat.R' [17s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(r2dii.match)
  > 
  > test_check("r2dii.match")
  [ FAIL 13 | WARN 1 | SKIP 4 | PASS 157 ]
  
  ══ Skipped tests (4) ═══════════════════════════════════════════════════════════
  • On CRAN (4): 'test-add_sector_and_borderline.R:12:3',
    'test-helper-fake_lbk.R:21:3', 'test-match_name.R:459:3',
    'test-match_name.R:664:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-match_name.R:129:3'): w/ 1 row of full loanbook_demo yields expected names ──
  names(out) (`actual`) not equal to `expect_names_match_name` (`expected`).
  
      actual                     | expected                      
                                 - "id_loan"                  [1]
  [1] "id_direct_loantaker"      | "id_direct_loantaker"      [2]
  [2] "name_direct_loantaker"    | "name_direct_loantaker"    [3]
  [3] "id_intermediate_parent_1" | "id_intermediate_parent_1" [4]
  
       actual                  | expected                    
  [16] "name_project"          | "name_project"          [17]
  [17] "lei_direct_loantaker"  | "lei_direct_loantaker"  [18]
  [18] "isin_direct_loantaker" | "isin_direct_loantaker" [19]
  [19] "id_loan"               -                             
  [20] "id_2dii"               | "id_2dii"               [20]
  [21] "level"                 | "level"                 [21]
  [22] "sector"                | "sector"                [22]
  ── Failure ('test-match_name.R:139:3'): w/ loanbook that matches nothing, yields expected ──
  `out <- match_name(lbk2, abcd_demo)` did not throw the expected warning.
  ── Failure ('test-match_name.R:143:3'): w/ loanbook that matches nothing, yields expected ──
  nrow(out) (`actual`) not equal to 0L (`expected`).
  
    `actual`: 2
  `expected`: 0
  ── Failure ('test-match_name.R:145:3'): w/ loanbook that matches nothing, yields expected ──
  names(out) (`actual`) not equal to `expect_names_match_name` (`expected`).
  
      actual                     | expected                      
                                 - "id_loan"                  [1]
  [1] "id_direct_loantaker"      | "id_direct_loantaker"      [2]
  [2] "name_direct_loantaker"    | "name_direct_loantaker"    [3]
  [3] "id_intermediate_parent_1" | "id_intermediate_parent_1" [4]
  
       actual                  | expected                    
  [16] "name_project"          | "name_project"          [17]
  [17] "lei_direct_loantaker"  | "lei_direct_loantaker"  [18]
  [18] "isin_direct_loantaker" | "isin_direct_loantaker" [19]
  [19] "id_loan"               -                             
  [20] "id_2dii"               | "id_2dii"               [20]
  [21] "level"                 | "level"                 [21]
  [22] "sector"                | "sector"                [22]
  ── Failure ('test-match_name.R:155:3'): w/ 2 lbk rows matching 2 abcd rows, yields expected names ──
  Names of match_name(lbk45, abcd_demo) ('id_direct_loantaker', 'name_direct_loantaker', 'id_intermediate_parent_1', 'name_intermediate_parent_1', 'id_ultimate_parent', 'name_ultimate_parent', 'loan_size_outstanding', 'loan_size_outstanding_currency', 'loan_size_credit_limit', 'loan_size_credit_limit_currency', 'sector_classification_system', 'sector_classification_input_type', 'sector_classification_direct_loantaker', 'fi_type', 'flag_project_finance_loan', 'name_project', 'lei_direct_loantaker', 'isin_direct_loantaker', 'id_loan', 'id_2dii', 'level', 'sector', 'sector_abcd', 'name', 'name_abcd', 'score', 'source', 'borderline') don't match 'id_loan', 'id_direct_loantaker', 'name_direct_loantaker', 'id_intermediate_parent_1', 'name_intermediate_parent_1', 'id_ultimate_parent', 'name_ultimate_parent', 'loan_size_outstanding', 'loan_size_outstanding_currency', 'loan_size_credit_limit', 'loan_size_credit_limit_currency', 'sector_classification_system', 'sector_classification_input_type', 'sector_classification_direct_loantaker', 'fi_type', 'flag_project_finance_loan', 'name_project', 'lei_direct_loantaker', 'isin_direct_loantaker', 'id_2dii', 'level', 'sector', 'sector_abcd', 'name', 'name_abcd', 'score', 'source', 'borderline'
  ── Failure ('test-match_name.R:164:3'): w/ 1 lbk row matching ultimate, yields expected names ──
  Names of match_name(lbk1, abcd_demo) ('id_direct_loantaker', 'name_direct_loantaker', 'id_intermediate_parent_1', 'name_intermediate_parent_1', 'id_ultimate_parent', 'name_ultimate_parent', 'loan_size_outstanding', 'loan_size_outstanding_currency', 'loan_size_credit_limit', 'loan_size_credit_limit_currency', 'sector_classification_system', 'sector_classification_input_type', 'sector_classification_direct_loantaker', 'fi_type', 'flag_project_finance_loan', 'name_project', 'lei_direct_loantaker', 'isin_direct_loantaker', 'id_loan', 'id_2dii', 'level', 'sector', 'sector_abcd', 'name', 'name_abcd', 'score', 'source', 'borderline') don't match 'id_loan', 'id_direct_loantaker', 'name_direct_loantaker', 'id_intermediate_parent_1', 'name_intermediate_parent_1', 'id_ultimate_parent', 'name_ultimate_parent', 'loan_size_outstanding', 'loan_size_outstanding_currency', 'loan_size_credit_limit', 'loan_size_credit_limit_currency', 'sector_classification_system', 'sector_classification_input_type', 'sector_classification_direct_loantaker', 'fi_type', 'flag_project_finance_loan', 'name_project', 'lei_direct_loantaker', 'isin_direct_loantaker', 'id_2dii', 'level', 'sector', 'sector_abcd', 'name', 'name_abcd', 'score', 'source', 'borderline'
  ── Failure ('test-match_name.R:177:3'): takes `method` ─────────────────────────
  identical(...) is not FALSE
  
  `actual`:   TRUE 
  `expected`: FALSE
  ── Failure ('test-match_name.R:188:3'): takes `p` ──────────────────────────────
  identical(...) is not FALSE
  
  `actual`:   TRUE 
  `expected`: FALSE
  ── Failure ('test-match_name.R:199:3'): takes `overwrite` ──────────────────────
  identical(...) is not FALSE
  
  `actual`:   TRUE 
  `expected`: FALSE
  ── Error ('test-match_name.R:244:3'): outputs only perfect matches if any (#40 @2diiKlaus) ──
  <all_sec_classif_unknown/rlang_error/error/condition>
  Error in `abort_all_sec_classif_unknown(column, known)`: Some `sector_classification_system` must be known, i.e. one of:
  CNB, GICS, ISIC, NACE, NAICS, PSIC and SIC
  Backtrace:
       ▆
    1. ├─... %>% pull(score) at test-match_name.R:244:2
    2. ├─dplyr::pull(., score)
    3. ├─dplyr::filter(., alias == this_alias)
    4. ├─dplyr::mutate(., alias = to_alias(name))
    5. ├─r2dii.match::match_name(., abcd_demo)
    6. │ └─r2dii.match:::match_name_impl(...)
    7. │   └─r2dii.match:::restructure_loanbook(loanbook_rowid, overwrite = overwrite)
    8. │     └─r2dii.match:::may_add_sector_and_borderline(data)
    9. │       └─r2dii.match:::add_sector_and_borderline(data)
   10. │         └─... %>% ...
   11. ├─r2dii.match:::check_classification(., column = "sector_classification_direct_loantaker")
   12. │ └─data[[column]] %in% reference[[column]]
   13. └─r2dii.match:::check_classification(., column = "sector_classification_system")
   14.   └─r2dii.match:::abort_all_sec_classif_unknown(column, known)
   15.     └─rlang::abort(class = "all_sec_classif_unknown", message = glue("Some `{column}` must be known, i.e. one of:\n      {collapse2(known)}"))
  ── Failure ('test-match_name.R:434:3'): 0-row output has expected column type ──
  `match_name(lbk, abcd_demo)` did not throw the expected warning.
  ── Failure ('test-match_name.R:440:3'): 0-row output has expected column type ──
  lbk_types[same] (`actual`) not identical to out_types[same] (`expected`).
  
  `names(actual)` is a character vector ()
  `names(expected)` is absent
  ── Error ('test-match_name.R:445:3'): works with UP266 ─────────────────────────
  <all_sec_classif_unknown/rlang_error/error/condition>
  Error in `abort_all_sec_classif_unknown(column, known)`: Some `sector_classification_system` must be known, i.e. one of:
  CNB, GICS, ISIC, NACE, NAICS, PSIC and SIC
  Backtrace:
       ▆
    1. ├─r2dii.match::match_name(up266, abcd_demo) at test-match_name.R:445:2
    2. │ └─r2dii.match:::match_name_impl(...)
    3. │   └─r2dii.match:::restructure_loanbook(loanbook_rowid, overwrite = overwrite)
    4. │     └─r2dii.match:::may_add_sector_and_borderline(data)
    5. │       └─r2dii.match:::add_sector_and_borderline(data)
    6. │         └─... %>% ...
    7. ├─r2dii.match:::check_classification(., column = "sector_classification_direct_loantaker")
    8. │ └─data[[column]] %in% reference[[column]]
    9. └─r2dii.match:::check_classification(., column = "sector_classification_system")
   10.   └─r2dii.match:::abort_all_sec_classif_unknown(column, known)
   11.     └─rlang::abort(class = "all_sec_classif_unknown", message = glue("Some `{column}` must be known, i.e. one of:\n      {collapse2(known)}"))
  
  [ FAIL 13 | WARN 1 | SKIP 4 | PASS 157 ]
  Error: Test failures
  Execution halted