CRAN Package Check Results for Package pacta.multi.loanbook

Last updated on 2025-12-21 09:50:50 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.1.1 6.93 84.44 91.37 ERROR
r-devel-linux-x86_64-debian-gcc 0.1.1 4.70 61.55 66.25 ERROR
r-devel-linux-x86_64-fedora-clang 0.1.1 13.00 134.68 147.68 ERROR
r-devel-linux-x86_64-fedora-gcc 0.1.1 12.00 230.66 242.66 OK
r-devel-windows-x86_64 0.1.1 9.00 131.00 140.00 OK
r-patched-linux-x86_64 0.1.1 6.20 123.31 129.51 OK
r-release-linux-x86_64 0.1.1 6.88 124.47 131.35 OK
r-release-macos-arm64 0.1.1 OK
r-release-macos-x86_64 0.1.1 5.00 116.00 121.00 OK
r-release-windows-x86_64 0.1.1 8.00 133.00 141.00 OK
r-oldrel-macos-arm64 0.1.1 OK
r-oldrel-macos-x86_64 0.1.1 4.00 130.00 134.00 OK
r-oldrel-windows-x86_64 0.1.1 12.00 170.00 182.00 OK

Check Details

Version: 0.1.1
Check: tests
Result: ERROR Running ‘testthat.R’ [13s/17s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > # This file is part of the standard setup for testthat. > # It is recommended that you do not modify it. > # > # Where should you do additional test configuration? > # Learn more about the roles of various files in: > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview > # * https://testthat.r-lib.org/articles/special-files.html > > library(testthat) > library(pacta.multi.loanbook) > > test_check("pacta.multi.loanbook") Saving _problems/test-2-match_loanbooks-24.R Saving _problems/test-3-prioritise_and_diagnose-43.R Saving _problems/test-4-analyse-30.R Saving _problems/test-run_calculate_match_success_rate-29.R Saving _problems/test-run_calculate_match_success_rate-64.R Saving _problems/test-run_calculate_match_success_rate-94.R Saving _problems/test-run_calculate_match_success_rate-132.R Saving _problems/test-run_calculate_match_success_rate-193.R [ FAIL 8 | WARN 0 | SKIP 0 | PASS 140 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-2-match_loanbooks.R:24:3'): with known input, runs without error ── Expected `suppressMessages(match_loanbooks(config))` not to throw any errors. Actually got a <simpleError> with message: attempt access index 10/10 in VECTOR_ELT ── Error ('test-3-prioritise_and_diagnose.R:40:3'): with known input, runs without error ── Error: '/home/hornik/tmp/scratch/RtmpDMbdoi/test-data/output/matched_loanbooks/matched_lbk_raw_loanbook_1.csv' does not exist. Backtrace: ▆ 1. ├─... %>% readr::write_csv(manual_path, na = "") at test-3-prioritise_and_diagnose.R:40:3 2. ├─readr::write_csv(., manual_path, na = "") 3. │ └─readr::write_delim(...) 4. │ ├─base::stopifnot(is.data.frame(x)) 5. │ └─base::is.data.frame(x) 6. ├─dplyr::slice_head(., by = id_loan) 7. ├─dplyr::slice_max(., order_by = score, by = id_loan) 8. ├─readr::read_csv(matched_path, show_col_types = FALSE) 9. │ └─vroom::vroom(...) 10. │ └─vroom:::vroom_(...) 11. └─vroom (local) `<fn>`("/home/hornik/tmp/scratch/RtmpDMbdoi/test-data/output/matched_loanbooks/matched_lbk_raw_loanbook_1.csv") 12. └─vroom:::check_path(path) ── Failure ('test-4-analyse.R:30:3'): with known input, runs without error ───── Expected `suppressMessages(suppressWarnings(analyse(config)))` not to throw any errors. Actually got a <rlang_error> with message: x No matched prioritized loan book CSVs found. i Directory searched: '/home/hornik/tmp/scratch/RtmpDMbdoi/test-data/output/prioritized_loanbooks_and_diagnostics' i Check the `dir_prioritized_loanbooks_and_diagnostics` parameter in your 'config.yml'. ── Error ('test-run_calculate_match_success_rate.R:28:3'): combine_raw_and_matched_loan_books identifies correct matched and unmatched loans ── Error in ``[.data.table`(matched, , `:=`(pick, none_is_one(score) | some_is_one(score)), by = id_2dii)`: attempt access index 10/10 in VECTOR_ELT Backtrace: ▆ 1. ├─test_raw %>% ... at test-run_calculate_match_success_rate.R:28:3 2. └─r2dii.match::match_name(...) 3. └─r2dii.match:::match_name_impl(...) 4. ├─...[] 5. └─data.table:::`[.data.table`(...) ── Error ('test-run_calculate_match_success_rate.R:62:3'): combine_raw_and_matched_loan_books removes group_id from id_loan where needed (GH #90) ── Error in ``[.data.table`(matched, , `:=`(pick, none_is_one(score) | some_is_one(score)), by = id_2dii)`: attempt access index 10/10 in VECTOR_ELT Backtrace: ▆ 1. ├─... %>% ... at test-run_calculate_match_success_rate.R:62:3 2. ├─dplyr::mutate(., id_loan = paste(id_loan, group_id, sep = "_")) 3. └─r2dii.match::match_name(...) 4. └─r2dii.match:::match_name_impl(...) 5. ├─...[] 6. └─data.table:::`[.data.table`(...) ── Error ('test-run_calculate_match_success_rate.R:92:3'): combine_raw_and_matched_loan_books removes sector_abcd from id_loan where needed (GH #90) ── Error in ``[.data.table`(matched, , `:=`(pick, none_is_one(score) | some_is_one(score)), by = id_2dii)`: attempt access index 10/10 in VECTOR_ELT Backtrace: ▆ 1. ├─... %>% ... at test-run_calculate_match_success_rate.R:92:3 2. ├─dplyr::mutate(., id_loan = paste(id_loan, sector_abcd, sep = "_")) 3. └─r2dii.match::match_name(...) 4. └─r2dii.match:::match_name_impl(...) 5. ├─...[] 6. └─data.table:::`[.data.table`(...) ── Error ('test-run_calculate_match_success_rate.R:130:3'): calculate_match_success_rate returns results for each group of variable by_group available in matched_prioritized ── Error in ``[.data.table`(matched, , `:=`(pick, none_is_one(score) | some_is_one(score)), by = id_2dii)`: attempt access index 10/10 in VECTOR_ELT Backtrace: ▆ 1. ├─... %>% ... at test-run_calculate_match_success_rate.R:130:3 2. ├─dplyr::filter(., .data[["level"]] == "direct_loantaker") 3. └─r2dii.match::match_name(...) 4. └─r2dii.match:::match_name_impl(...) 5. ├─...[] 6. └─data.table:::`[.data.table`(...) ── Error ('test-run_calculate_match_success_rate.R:191:3'): calculate_match_success_rate can only be calculated for by_groups that are available the raw and the matched priortized loan books ── Error in ``[.data.table`(matched, , `:=`(pick, none_is_one(score) | some_is_one(score)), by = id_2dii)`: attempt access index 10/10 in VECTOR_ELT Backtrace: ▆ 1. ├─... %>% ... at test-run_calculate_match_success_rate.R:191:3 2. ├─dplyr::filter(., .data[["level"]] == "direct_loantaker") 3. └─r2dii.match::match_name(...) 4. └─r2dii.match:::match_name_impl(...) 5. ├─...[] 6. └─data.table:::`[.data.table`(...) [ FAIL 8 | WARN 0 | SKIP 0 | PASS 140 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-debian-clang

Version: 0.1.1
Check: tests
Result: ERROR Running ‘testthat.R’ [9s/12s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > # This file is part of the standard setup for testthat. > # It is recommended that you do not modify it. > # > # Where should you do additional test configuration? > # Learn more about the roles of various files in: > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview > # * https://testthat.r-lib.org/articles/special-files.html > > library(testthat) > library(pacta.multi.loanbook) > > test_check("pacta.multi.loanbook") Saving _problems/test-2-match_loanbooks-24.R Saving _problems/test-3-prioritise_and_diagnose-43.R Saving _problems/test-4-analyse-30.R Saving _problems/test-run_calculate_match_success_rate-29.R Saving _problems/test-run_calculate_match_success_rate-64.R Saving _problems/test-run_calculate_match_success_rate-94.R Saving _problems/test-run_calculate_match_success_rate-132.R Saving _problems/test-run_calculate_match_success_rate-193.R [ FAIL 8 | WARN 0 | SKIP 0 | PASS 140 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-2-match_loanbooks.R:24:3'): with known input, runs without error ── Expected `suppressMessages(match_loanbooks(config))` not to throw any errors. Actually got a <simpleError> with message: attempt access index 10/10 in VECTOR_ELT ── Error ('test-3-prioritise_and_diagnose.R:40:3'): with known input, runs without error ── Error: '/tmp/RtmpqIKLBA/test-data/output/matched_loanbooks/matched_lbk_raw_loanbook_1.csv' does not exist. Backtrace: ▆ 1. ├─... %>% readr::write_csv(manual_path, na = "") at test-3-prioritise_and_diagnose.R:40:3 2. ├─readr::write_csv(., manual_path, na = "") 3. │ └─readr::write_delim(...) 4. │ ├─base::stopifnot(is.data.frame(x)) 5. │ └─base::is.data.frame(x) 6. ├─dplyr::slice_head(., by = id_loan) 7. ├─dplyr::slice_max(., order_by = score, by = id_loan) 8. ├─readr::read_csv(matched_path, show_col_types = FALSE) 9. │ └─vroom::vroom(...) 10. │ └─vroom:::vroom_(...) 11. └─vroom (local) `<fn>`("/tmp/RtmpqIKLBA/test-data/output/matched_loanbooks/matched_lbk_raw_loanbook_1.csv") 12. └─vroom:::check_path(path) ── Failure ('test-4-analyse.R:30:3'): with known input, runs without error ───── Expected `suppressMessages(suppressWarnings(analyse(config)))` not to throw any errors. Actually got a <rlang_error> with message: x No matched prioritized loan book CSVs found. i Directory searched: '/tmp/RtmpqIKLBA/test-data/output/prioritized_loanbooks_and_diagnostics' i Check the `dir_prioritized_loanbooks_and_diagnostics` parameter in your 'config.yml'. ── Error ('test-run_calculate_match_success_rate.R:28:3'): combine_raw_and_matched_loan_books identifies correct matched and unmatched loans ── Error in ``[.data.table`(matched, , `:=`(pick, none_is_one(score) | some_is_one(score)), by = id_2dii)`: attempt access index 10/10 in VECTOR_ELT Backtrace: ▆ 1. ├─test_raw %>% ... at test-run_calculate_match_success_rate.R:28:3 2. └─r2dii.match::match_name(...) 3. └─r2dii.match:::match_name_impl(...) 4. ├─...[] 5. └─data.table:::`[.data.table`(...) ── Error ('test-run_calculate_match_success_rate.R:62:3'): combine_raw_and_matched_loan_books removes group_id from id_loan where needed (GH #90) ── Error in ``[.data.table`(matched, , `:=`(pick, none_is_one(score) | some_is_one(score)), by = id_2dii)`: attempt access index 10/10 in VECTOR_ELT Backtrace: ▆ 1. ├─... %>% ... at test-run_calculate_match_success_rate.R:62:3 2. ├─dplyr::mutate(., id_loan = paste(id_loan, group_id, sep = "_")) 3. └─r2dii.match::match_name(...) 4. └─r2dii.match:::match_name_impl(...) 5. ├─...[] 6. └─data.table:::`[.data.table`(...) ── Error ('test-run_calculate_match_success_rate.R:92:3'): combine_raw_and_matched_loan_books removes sector_abcd from id_loan where needed (GH #90) ── Error in ``[.data.table`(matched, , `:=`(pick, none_is_one(score) | some_is_one(score)), by = id_2dii)`: attempt access index 10/10 in VECTOR_ELT Backtrace: ▆ 1. ├─... %>% ... at test-run_calculate_match_success_rate.R:92:3 2. ├─dplyr::mutate(., id_loan = paste(id_loan, sector_abcd, sep = "_")) 3. └─r2dii.match::match_name(...) 4. └─r2dii.match:::match_name_impl(...) 5. ├─...[] 6. └─data.table:::`[.data.table`(...) ── Error ('test-run_calculate_match_success_rate.R:130:3'): calculate_match_success_rate returns results for each group of variable by_group available in matched_prioritized ── Error in ``[.data.table`(matched, , `:=`(pick, none_is_one(score) | some_is_one(score)), by = id_2dii)`: attempt access index 10/10 in VECTOR_ELT Backtrace: ▆ 1. ├─... %>% ... at test-run_calculate_match_success_rate.R:130:3 2. ├─dplyr::filter(., .data[["level"]] == "direct_loantaker") 3. └─r2dii.match::match_name(...) 4. └─r2dii.match:::match_name_impl(...) 5. ├─...[] 6. └─data.table:::`[.data.table`(...) ── Error ('test-run_calculate_match_success_rate.R:191:3'): calculate_match_success_rate can only be calculated for by_groups that are available the raw and the matched priortized loan books ── Error in ``[.data.table`(matched, , `:=`(pick, none_is_one(score) | some_is_one(score)), by = id_2dii)`: attempt access index 10/10 in VECTOR_ELT Backtrace: ▆ 1. ├─... %>% ... at test-run_calculate_match_success_rate.R:191:3 2. ├─dplyr::filter(., .data[["level"]] == "direct_loantaker") 3. └─r2dii.match::match_name(...) 4. └─r2dii.match:::match_name_impl(...) 5. ├─...[] 6. └─data.table:::`[.data.table`(...) [ FAIL 8 | WARN 0 | SKIP 0 | PASS 140 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.1.1
Check: tests
Result: ERROR Running ‘testthat.R’ [18s/45s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > # This file is part of the standard setup for testthat. > # It is recommended that you do not modify it. > # > # Where should you do additional test configuration? > # Learn more about the roles of various files in: > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview > # * https://testthat.r-lib.org/articles/special-files.html > > library(testthat) > library(pacta.multi.loanbook) > > test_check("pacta.multi.loanbook") Saving _problems/test-2-match_loanbooks-24.R Saving _problems/test-3-prioritise_and_diagnose-43.R Saving _problems/test-4-analyse-30.R Saving _problems/test-run_calculate_match_success_rate-29.R Saving _problems/test-run_calculate_match_success_rate-64.R Saving _problems/test-run_calculate_match_success_rate-94.R Saving _problems/test-run_calculate_match_success_rate-132.R Saving _problems/test-run_calculate_match_success_rate-193.R [ FAIL 8 | WARN 0 | SKIP 0 | PASS 140 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-2-match_loanbooks.R:24:3'): with known input, runs without error ── Expected `suppressMessages(match_loanbooks(config))` not to throw any errors. Actually got a <simpleError> with message: attempt access index 10/10 in VECTOR_ELT ── Error ('test-3-prioritise_and_diagnose.R:40:3'): with known input, runs without error ── Error: '/tmp/RtmpPIJh4d/working_dir/RtmpP96NzC/test-data/output/matched_loanbooks/matched_lbk_raw_loanbook_1.csv' does not exist. Backtrace: ▆ 1. ├─... %>% readr::write_csv(manual_path, na = "") at test-3-prioritise_and_diagnose.R:40:3 2. ├─readr::write_csv(., manual_path, na = "") 3. │ └─readr::write_delim(...) 4. │ ├─base::stopifnot(is.data.frame(x)) 5. │ └─base::is.data.frame(x) 6. ├─dplyr::slice_head(., by = id_loan) 7. ├─dplyr::slice_max(., order_by = score, by = id_loan) 8. ├─readr::read_csv(matched_path, show_col_types = FALSE) 9. │ └─vroom::vroom(...) 10. │ └─vroom:::vroom_(...) 11. └─vroom (local) `<fn>`("/tmp/RtmpPIJh4d/working_dir/RtmpP96NzC/test-data/output/matched_loanbooks/matched_lbk_raw_loanbook_1.csv") 12. └─vroom:::check_path(path) ── Failure ('test-4-analyse.R:30:3'): with known input, runs without error ───── Expected `suppressMessages(suppressWarnings(analyse(config)))` not to throw any errors. Actually got a <rlang_error> with message: x No matched prioritized loan book CSVs found. i Directory searched: '/tmp/RtmpPIJh4d/working_dir/RtmpP96NzC/test-data/output/prioritized_loanbooks_and_diagnostics' i Check the `dir_prioritized_loanbooks_and_diagnostics` parameter in your 'config.yml'. ── Error ('test-run_calculate_match_success_rate.R:28:3'): combine_raw_and_matched_loan_books identifies correct matched and unmatched loans ── Error in ``[.data.table`(matched, , `:=`(pick, none_is_one(score) | some_is_one(score)), by = id_2dii)`: attempt access index 10/10 in VECTOR_ELT Backtrace: ▆ 1. ├─test_raw %>% ... at test-run_calculate_match_success_rate.R:28:3 2. └─r2dii.match::match_name(...) 3. └─r2dii.match:::match_name_impl(...) 4. ├─...[] 5. └─data.table:::`[.data.table`(...) ── Error ('test-run_calculate_match_success_rate.R:62:3'): combine_raw_and_matched_loan_books removes group_id from id_loan where needed (GH #90) ── Error in ``[.data.table`(matched, , `:=`(pick, none_is_one(score) | some_is_one(score)), by = id_2dii)`: attempt access index 10/10 in VECTOR_ELT Backtrace: ▆ 1. ├─... %>% ... at test-run_calculate_match_success_rate.R:62:3 2. ├─dplyr::mutate(., id_loan = paste(id_loan, group_id, sep = "_")) 3. └─r2dii.match::match_name(...) 4. └─r2dii.match:::match_name_impl(...) 5. ├─...[] 6. └─data.table:::`[.data.table`(...) ── Error ('test-run_calculate_match_success_rate.R:92:3'): combine_raw_and_matched_loan_books removes sector_abcd from id_loan where needed (GH #90) ── Error in ``[.data.table`(matched, , `:=`(pick, none_is_one(score) | some_is_one(score)), by = id_2dii)`: attempt access index 10/10 in VECTOR_ELT Backtrace: ▆ 1. ├─... %>% ... at test-run_calculate_match_success_rate.R:92:3 2. ├─dplyr::mutate(., id_loan = paste(id_loan, sector_abcd, sep = "_")) 3. └─r2dii.match::match_name(...) 4. └─r2dii.match:::match_name_impl(...) 5. ├─...[] 6. └─data.table:::`[.data.table`(...) ── Error ('test-run_calculate_match_success_rate.R:130:3'): calculate_match_success_rate returns results for each group of variable by_group available in matched_prioritized ── Error in ``[.data.table`(matched, , `:=`(pick, none_is_one(score) | some_is_one(score)), by = id_2dii)`: attempt access index 10/10 in VECTOR_ELT Backtrace: ▆ 1. ├─... %>% ... at test-run_calculate_match_success_rate.R:130:3 2. ├─dplyr::filter(., .data[["level"]] == "direct_loantaker") 3. └─r2dii.match::match_name(...) 4. └─r2dii.match:::match_name_impl(...) 5. ├─...[] 6. └─data.table:::`[.data.table`(...) ── Error ('test-run_calculate_match_success_rate.R:191:3'): calculate_match_success_rate can only be calculated for by_groups that are available the raw and the matched priortized loan books ── Error in ``[.data.table`(matched, , `:=`(pick, none_is_one(score) | some_is_one(score)), by = id_2dii)`: attempt access index 10/10 in VECTOR_ELT Backtrace: ▆ 1. ├─... %>% ... at test-run_calculate_match_success_rate.R:191:3 2. ├─dplyr::filter(., .data[["level"]] == "direct_loantaker") 3. └─r2dii.match::match_name(...) 4. └─r2dii.match:::match_name_impl(...) 5. ├─...[] 6. └─data.table:::`[.data.table`(...) [ FAIL 8 | WARN 0 | SKIP 0 | PASS 140 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-fedora-clang