CRAN Package Check Results for Package faersquarterlydata

Last updated on 2026-02-08 17:49:47 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.2.0 5.60 107.48 113.08 ERROR
r-devel-linux-x86_64-debian-gcc 1.2.0 2.98 77.11 80.09 ERROR
r-devel-linux-x86_64-fedora-clang 1.2.0 10.00 162.70 172.70 ERROR
r-devel-linux-x86_64-fedora-gcc 1.2.0 10.00 166.09 176.09 ERROR
r-devel-windows-x86_64 1.2.0 9.00 107.00 116.00 ERROR
r-patched-linux-x86_64 1.2.0 6.36 100.32 106.68 ERROR
r-release-linux-x86_64 1.2.0 4.92 100.56 105.48 ERROR
r-release-macos-arm64 1.2.0 OK
r-release-macos-x86_64 1.2.0 4.00 112.00 116.00 OK
r-release-windows-x86_64 1.2.0 8.00 108.00 116.00 OK
r-oldrel-macos-arm64 1.2.0 OK
r-oldrel-macos-x86_64 1.2.0 4.00 156.00 160.00 OK
r-oldrel-windows-x86_64 1.2.0 10.00 148.00 158.00 ERROR

Check Details

Version: 1.2.0
Check: examples
Result: ERROR Running examples in ‘faersquarterlydata-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: unify_tabular_ascii > ### Title: Unify the list to a tabular format > ### Aliases: unify_tabular_ascii > > ### ** Examples > > unify_tabular_ascii(ascii_list = als_faers_data) Error in `summarise()`: ℹ In argument: `indi_pt_ps = sort(unique(indi_pt))`. ℹ In group 79: `primaryid = 129433992`, `caseid = 12943399`. Caused by error: ! `indi_pt_ps` must be size 1, not 0. ℹ To return more or less than 1 row per group, use `reframe()`. Backtrace: ▆ 1. ├─faersquarterlydata::unify_tabular_ascii(ascii_list = als_faers_data) 2. │ └─... %>% relocate(age_YR, .after = "age") 3. ├─dplyr::relocate(., age_YR, .after = "age") 4. ├─dplyr::mutate(...) 5. ├─dplyr::left_join(...) 6. ├─dplyr:::left_join.data.frame(...) 7. │ └─dplyr::auto_copy(x, y, copy = copy) 8. │ ├─dplyr::same_src(x, y) 9. │ └─dplyr:::same_src.data.frame(x, y) 10. │ └─base::is.data.frame(y) 11. ├─... %>% suppressWarnings() 12. ├─base::suppressWarnings(.) 13. │ └─base::withCallingHandlers(...) 14. ├─dplyr::ungroup(.) 15. ├─dplyr::summarise(...) 16. ├─dplyr:::summarise.grouped_df(...) 17. │ └─dplyr:::summarise_cols(.data, dplyr_quosures(...), by, "summarise") 18. │ └─base::withCallingHandlers(...) 19. ├─dplyr:::dplyr_internal_error(...) 20. │ └─rlang::abort(class = c(class, "dplyr:::internal_error"), dplyr_error_data = data) 21. │ └─rlang:::signal_abort(cnd, .file) 22. │ └─base::signalCondition(cnd) 23. └─dplyr (local) `<fn>`(`<dpl:::__>`) 24. └─dplyr (local) handler(cnd) 25. └─rlang::abort(message, class = error_class, parent = parent, call = error_call) Execution halted Examples with CPU (user + system) or elapsed time > 5s user system elapsed summary_faersdata 5.077 0.275 7.53 Flavor: r-devel-linux-x86_64-debian-clang

Version: 1.2.0
Check: tests
Result: ERROR Running ‘testthat.R’ [55s/69s] 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/tests.html > # * https://testthat.r-lib.org/reference/test_package.html#special-files > > library(testthat) > library(faersquarterlydata) > > test_check("faersquarterlydata") Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 Saving _problems/test-read_func_ascii-51.R retrieving resources/1_ADR22Q1_example.xml retrieving resources/1_ADR22Q1_example.xml retrieving resources/1_ADR22Q1_example.xml retrieving resources/1_ADR22Q1_example.xml retrieving resources/1_ADR22Q1_example.xml 1 out of 1 retrieving resources/1_ADR22Q1_example.xml 1 out of 1 retrieving resources/1_ADR22Q1_example.xml saving resources/1_ADR22Q1_example.xml into cache: resources/cache/cache_xml.Rdata 1 out of 1 retrieving resources/1_ADR22Q1_example.xml Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 Saving _problems/test-ror-23.R Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 Saving _problems/test-summary-4.R unzipping resources/xml_files/faers_xml_2012q4.zip unzipping resources/ascii_files//faers_ascii_2022Q4.zip [ FAIL 3 | WARN 36 | SKIP 0 | PASS 37 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-read_func_ascii.R:51:3'): unify_tabular_ascii ────────────────── Error in `summarise(., indi_pt_ps = sort(unique(indi_pt)), drugname_ps = paste(sort(unique(drugname)), collapse = " + "), start_dt_ps = unique(start_dt), .groups = "keep")`: i In argument: `indi_pt_ps = sort(unique(indi_pt))`. i In group 1: `primaryid = 100115733`, `caseid = 10011573`. Caused by error: ! `indi_pt_ps` must be size 1, not 0. i To return more or less than 1 row per group, use `reframe()`. Backtrace: ▆ 1. ├─faersquarterlydata::unify_tabular_ascii(ascii_list = faers_ascii_data) at test-read_func_ascii.R:51:3 2. │ └─... %>% relocate(age_YR, .after = "age") 3. ├─dplyr::relocate(., age_YR, .after = "age") 4. ├─dplyr::mutate(...) 5. ├─dplyr::left_join(...) 6. ├─dplyr:::left_join.data.frame(...) 7. │ └─dplyr::auto_copy(x, y, copy = copy) 8. │ ├─dplyr::same_src(x, y) 9. │ └─dplyr:::same_src.data.frame(x, y) 10. │ └─base::is.data.frame(y) 11. ├─... %>% suppressWarnings() 12. ├─base::suppressWarnings(.) 13. │ └─base::withCallingHandlers(...) 14. ├─dplyr::ungroup(.) 15. ├─dplyr::summarise(...) 16. ├─dplyr:::summarise.grouped_df(...) 17. │ └─dplyr:::summarise_cols(.data, dplyr_quosures(...), by, "summarise") 18. │ └─base::withCallingHandlers(...) 19. ├─dplyr:::dplyr_internal_error(...) 20. │ └─rlang::abort(class = c(class, "dplyr:::internal_error"), dplyr_error_data = data) 21. │ └─rlang:::signal_abort(cnd, .file) 22. │ └─base::signalCondition(cnd) 23. └─dplyr (local) `<fn>`(`<dpl:::__>`) 24. └─dplyr (local) handler(cnd) 25. └─rlang::abort(message, class = error_class, parent = parent, call = error_call) ── Error ('test-ror.R:23:3'): estimate_ror_bygroup ───────────────────────────── Error in `summarise(., indi_pt_ps = sort(unique(indi_pt)), drugname_ps = paste(sort(unique(drugname)), collapse = " + "), start_dt_ps = unique(start_dt), .groups = "keep")`: i In argument: `indi_pt_ps = sort(unique(indi_pt))`. i In group 1: `primaryid = 100115733`, `caseid = 10011573`. Caused by error: ! `indi_pt_ps` must be size 1, not 0. i To return more or less than 1 row per group, use `reframe()`. Backtrace: ▆ 1. ├─faersquarterlydata::unify_tabular_ascii(ascii_list = faers_ascii_data) at test-ror.R:23:3 2. │ └─... %>% relocate(age_YR, .after = "age") 3. ├─dplyr::relocate(., age_YR, .after = "age") 4. ├─dplyr::mutate(...) 5. ├─dplyr::left_join(...) 6. ├─dplyr:::left_join.data.frame(...) 7. │ └─dplyr::auto_copy(x, y, copy = copy) 8. │ ├─dplyr::same_src(x, y) 9. │ └─dplyr:::same_src.data.frame(x, y) 10. │ └─base::is.data.frame(y) 11. ├─... %>% suppressWarnings() 12. ├─base::suppressWarnings(.) 13. │ └─base::withCallingHandlers(...) 14. ├─dplyr::ungroup(.) 15. ├─dplyr::summarise(...) 16. ├─dplyr:::summarise.grouped_df(...) 17. │ └─dplyr:::summarise_cols(.data, dplyr_quosures(...), by, "summarise") 18. │ └─base::withCallingHandlers(...) 19. ├─dplyr:::dplyr_internal_error(...) 20. │ └─rlang::abort(class = c(class, "dplyr:::internal_error"), dplyr_error_data = data) 21. │ └─rlang:::signal_abort(cnd, .file) 22. │ └─base::signalCondition(cnd) 23. └─dplyr (local) `<fn>`(`<dpl:::__>`) 24. └─dplyr (local) handler(cnd) 25. └─rlang::abort(message, class = error_class, parent = parent, call = error_call) ── Error ('test-summary.R:4:3'): summary_faersdata ───────────────────────────── Error in `summarise(., indi_pt_ps = sort(unique(indi_pt)), drugname_ps = paste(sort(unique(drugname)), collapse = " + "), start_dt_ps = unique(start_dt), .groups = "keep")`: i In argument: `indi_pt_ps = sort(unique(indi_pt))`. i In group 1: `primaryid = 100115733`, `caseid = 10011573`. Caused by error: ! `indi_pt_ps` must be size 1, not 0. i To return more or less than 1 row per group, use `reframe()`. Backtrace: ▆ 1. ├─faersquarterlydata::unify_tabular_ascii(ascii_list = faers_ascii_data) at test-summary.R:4:3 2. │ └─... %>% relocate(age_YR, .after = "age") 3. ├─dplyr::relocate(., age_YR, .after = "age") 4. ├─dplyr::mutate(...) 5. ├─dplyr::left_join(...) 6. ├─dplyr:::left_join.data.frame(...) 7. │ └─dplyr::auto_copy(x, y, copy = copy) 8. │ ├─dplyr::same_src(x, y) 9. │ └─dplyr:::same_src.data.frame(x, y) 10. │ └─base::is.data.frame(y) 11. ├─... %>% suppressWarnings() 12. ├─base::suppressWarnings(.) 13. │ └─base::withCallingHandlers(...) 14. ├─dplyr::ungroup(.) 15. ├─dplyr::summarise(...) 16. ├─dplyr:::summarise.grouped_df(...) 17. │ └─dplyr:::summarise_cols(.data, dplyr_quosures(...), by, "summarise") 18. │ └─base::withCallingHandlers(...) 19. ├─dplyr:::dplyr_internal_error(...) 20. │ └─rlang::abort(class = c(class, "dplyr:::internal_error"), dplyr_error_data = data) 21. │ └─rlang:::signal_abort(cnd, .file) 22. │ └─base::signalCondition(cnd) 23. └─dplyr (local) `<fn>`(`<dpl:::__>`) 24. └─dplyr (local) handler(cnd) 25. └─rlang::abort(message, class = error_class, parent = parent, call = error_call) [ FAIL 3 | WARN 36 | SKIP 0 | PASS 37 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-debian-clang

Version: 1.2.0
Check: examples
Result: ERROR Running examples in ‘faersquarterlydata-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: unify_tabular_ascii > ### Title: Unify the list to a tabular format > ### Aliases: unify_tabular_ascii > > ### ** Examples > > unify_tabular_ascii(ascii_list = als_faers_data) Error in `summarise()`: ℹ In argument: `indi_pt_ps = sort(unique(indi_pt))`. ℹ In group 79: `primaryid = 129433992`, `caseid = 12943399`. Caused by error: ! `indi_pt_ps` must be size 1, not 0. ℹ To return more or less than 1 row per group, use `reframe()`. Backtrace: ▆ 1. ├─faersquarterlydata::unify_tabular_ascii(ascii_list = als_faers_data) 2. │ └─... %>% relocate(age_YR, .after = "age") 3. ├─dplyr::relocate(., age_YR, .after = "age") 4. ├─dplyr::mutate(...) 5. ├─dplyr::left_join(...) 6. ├─dplyr:::left_join.data.frame(...) 7. │ └─dplyr::auto_copy(x, y, copy = copy) 8. │ ├─dplyr::same_src(x, y) 9. │ └─dplyr:::same_src.data.frame(x, y) 10. │ └─base::is.data.frame(y) 11. ├─... %>% suppressWarnings() 12. ├─base::suppressWarnings(.) 13. │ └─base::withCallingHandlers(...) 14. ├─dplyr::ungroup(.) 15. ├─dplyr::summarise(...) 16. ├─dplyr:::summarise.grouped_df(...) 17. │ └─dplyr:::summarise_cols(.data, dplyr_quosures(...), by, "summarise") 18. │ └─base::withCallingHandlers(...) 19. ├─dplyr:::dplyr_internal_error(...) 20. │ └─rlang::abort(class = c(class, "dplyr:::internal_error"), dplyr_error_data = data) 21. │ └─rlang:::signal_abort(cnd, .file) 22. │ └─base::signalCondition(cnd) 23. └─dplyr (local) `<fn>`(`<dpl:::__>`) 24. └─dplyr (local) handler(cnd) 25. └─rlang::abort(message, class = error_class, parent = parent, call = error_call) Execution halted Examples with CPU (user + system) or elapsed time > 5s user system elapsed summary_faersdata 3.345 0.16 5.031 Flavor: r-devel-linux-x86_64-debian-gcc

Version: 1.2.0
Check: tests
Result: ERROR Running ‘testthat.R’ [40s/43s] 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/tests.html > # * https://testthat.r-lib.org/reference/test_package.html#special-files > > library(testthat) > library(faersquarterlydata) > > test_check("faersquarterlydata") Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 Saving _problems/test-read_func_ascii-51.R retrieving resources/1_ADR22Q1_example.xml retrieving resources/1_ADR22Q1_example.xml retrieving resources/1_ADR22Q1_example.xml retrieving resources/1_ADR22Q1_example.xml retrieving resources/1_ADR22Q1_example.xml 1 out of 1 retrieving resources/1_ADR22Q1_example.xml 1 out of 1 retrieving resources/1_ADR22Q1_example.xml saving resources/1_ADR22Q1_example.xml into cache: resources/cache/cache_xml.Rdata 1 out of 1 retrieving resources/1_ADR22Q1_example.xml Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 Saving _problems/test-ror-23.R Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 Saving _problems/test-summary-4.R unzipping resources/xml_files/faers_xml_2012q4.zip unzipping resources/ascii_files//faers_ascii_2022Q4.zip [ FAIL 3 | WARN 36 | SKIP 0 | PASS 37 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-read_func_ascii.R:51:3'): unify_tabular_ascii ────────────────── Error in `summarise(., indi_pt_ps = sort(unique(indi_pt)), drugname_ps = paste(sort(unique(drugname)), collapse = " + "), start_dt_ps = unique(start_dt), .groups = "keep")`: i In argument: `indi_pt_ps = sort(unique(indi_pt))`. i In group 1: `primaryid = 100115733`, `caseid = 10011573`. Caused by error: ! `indi_pt_ps` must be size 1, not 0. i To return more or less than 1 row per group, use `reframe()`. Backtrace: ▆ 1. ├─faersquarterlydata::unify_tabular_ascii(ascii_list = faers_ascii_data) at test-read_func_ascii.R:51:3 2. │ └─... %>% relocate(age_YR, .after = "age") 3. ├─dplyr::relocate(., age_YR, .after = "age") 4. ├─dplyr::mutate(...) 5. ├─dplyr::left_join(...) 6. ├─dplyr:::left_join.data.frame(...) 7. │ └─dplyr::auto_copy(x, y, copy = copy) 8. │ ├─dplyr::same_src(x, y) 9. │ └─dplyr:::same_src.data.frame(x, y) 10. │ └─base::is.data.frame(y) 11. ├─... %>% suppressWarnings() 12. ├─base::suppressWarnings(.) 13. │ └─base::withCallingHandlers(...) 14. ├─dplyr::ungroup(.) 15. ├─dplyr::summarise(...) 16. ├─dplyr:::summarise.grouped_df(...) 17. │ └─dplyr:::summarise_cols(.data, dplyr_quosures(...), by, "summarise") 18. │ └─base::withCallingHandlers(...) 19. ├─dplyr:::dplyr_internal_error(...) 20. │ └─rlang::abort(class = c(class, "dplyr:::internal_error"), dplyr_error_data = data) 21. │ └─rlang:::signal_abort(cnd, .file) 22. │ └─base::signalCondition(cnd) 23. └─dplyr (local) `<fn>`(`<dpl:::__>`) 24. └─dplyr (local) handler(cnd) 25. └─rlang::abort(message, class = error_class, parent = parent, call = error_call) ── Error ('test-ror.R:23:3'): estimate_ror_bygroup ───────────────────────────── Error in `summarise(., indi_pt_ps = sort(unique(indi_pt)), drugname_ps = paste(sort(unique(drugname)), collapse = " + "), start_dt_ps = unique(start_dt), .groups = "keep")`: i In argument: `indi_pt_ps = sort(unique(indi_pt))`. i In group 1: `primaryid = 100115733`, `caseid = 10011573`. Caused by error: ! `indi_pt_ps` must be size 1, not 0. i To return more or less than 1 row per group, use `reframe()`. Backtrace: ▆ 1. ├─faersquarterlydata::unify_tabular_ascii(ascii_list = faers_ascii_data) at test-ror.R:23:3 2. │ └─... %>% relocate(age_YR, .after = "age") 3. ├─dplyr::relocate(., age_YR, .after = "age") 4. ├─dplyr::mutate(...) 5. ├─dplyr::left_join(...) 6. ├─dplyr:::left_join.data.frame(...) 7. │ └─dplyr::auto_copy(x, y, copy = copy) 8. │ ├─dplyr::same_src(x, y) 9. │ └─dplyr:::same_src.data.frame(x, y) 10. │ └─base::is.data.frame(y) 11. ├─... %>% suppressWarnings() 12. ├─base::suppressWarnings(.) 13. │ └─base::withCallingHandlers(...) 14. ├─dplyr::ungroup(.) 15. ├─dplyr::summarise(...) 16. ├─dplyr:::summarise.grouped_df(...) 17. │ └─dplyr:::summarise_cols(.data, dplyr_quosures(...), by, "summarise") 18. │ └─base::withCallingHandlers(...) 19. ├─dplyr:::dplyr_internal_error(...) 20. │ └─rlang::abort(class = c(class, "dplyr:::internal_error"), dplyr_error_data = data) 21. │ └─rlang:::signal_abort(cnd, .file) 22. │ └─base::signalCondition(cnd) 23. └─dplyr (local) `<fn>`(`<dpl:::__>`) 24. └─dplyr (local) handler(cnd) 25. └─rlang::abort(message, class = error_class, parent = parent, call = error_call) ── Error ('test-summary.R:4:3'): summary_faersdata ───────────────────────────── Error in `summarise(., indi_pt_ps = sort(unique(indi_pt)), drugname_ps = paste(sort(unique(drugname)), collapse = " + "), start_dt_ps = unique(start_dt), .groups = "keep")`: i In argument: `indi_pt_ps = sort(unique(indi_pt))`. i In group 1: `primaryid = 100115733`, `caseid = 10011573`. Caused by error: ! `indi_pt_ps` must be size 1, not 0. i To return more or less than 1 row per group, use `reframe()`. Backtrace: ▆ 1. ├─faersquarterlydata::unify_tabular_ascii(ascii_list = faers_ascii_data) at test-summary.R:4:3 2. │ └─... %>% relocate(age_YR, .after = "age") 3. ├─dplyr::relocate(., age_YR, .after = "age") 4. ├─dplyr::mutate(...) 5. ├─dplyr::left_join(...) 6. ├─dplyr:::left_join.data.frame(...) 7. │ └─dplyr::auto_copy(x, y, copy = copy) 8. │ ├─dplyr::same_src(x, y) 9. │ └─dplyr:::same_src.data.frame(x, y) 10. │ └─base::is.data.frame(y) 11. ├─... %>% suppressWarnings() 12. ├─base::suppressWarnings(.) 13. │ └─base::withCallingHandlers(...) 14. ├─dplyr::ungroup(.) 15. ├─dplyr::summarise(...) 16. ├─dplyr:::summarise.grouped_df(...) 17. │ └─dplyr:::summarise_cols(.data, dplyr_quosures(...), by, "summarise") 18. │ └─base::withCallingHandlers(...) 19. ├─dplyr:::dplyr_internal_error(...) 20. │ └─rlang::abort(class = c(class, "dplyr:::internal_error"), dplyr_error_data = data) 21. │ └─rlang:::signal_abort(cnd, .file) 22. │ └─base::signalCondition(cnd) 23. └─dplyr (local) `<fn>`(`<dpl:::__>`) 24. └─dplyr (local) handler(cnd) 25. └─rlang::abort(message, class = error_class, parent = parent, call = error_call) [ FAIL 3 | WARN 36 | SKIP 0 | PASS 37 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-debian-gcc

Version: 1.2.0
Check: examples
Result: ERROR Running examples in ‘faersquarterlydata-Ex.R’ failed The error most likely occurred in: > ### Name: unify_tabular_ascii > ### Title: Unify the list to a tabular format > ### Aliases: unify_tabular_ascii > > ### ** Examples > > unify_tabular_ascii(ascii_list = als_faers_data) Error in `summarise()`: ℹ In argument: `indi_pt_ps = sort(unique(indi_pt))`. ℹ In group 79: `primaryid = 129433992`, `caseid = 12943399`. Caused by error: ! `indi_pt_ps` must be size 1, not 0. ℹ To return more or less than 1 row per group, use `reframe()`. Backtrace: ▆ 1. ├─faersquarterlydata::unify_tabular_ascii(ascii_list = als_faers_data) 2. │ └─... %>% relocate(age_YR, .after = "age") 3. ├─dplyr::relocate(., age_YR, .after = "age") 4. ├─dplyr::mutate(...) 5. ├─dplyr::left_join(...) 6. ├─dplyr:::left_join.data.frame(...) 7. │ └─dplyr::auto_copy(x, y, copy = copy) 8. │ ├─dplyr::same_src(x, y) 9. │ └─dplyr:::same_src.data.frame(x, y) 10. │ └─base::is.data.frame(y) 11. ├─... %>% suppressWarnings() 12. ├─base::suppressWarnings(.) 13. │ └─base::withCallingHandlers(...) 14. ├─dplyr::ungroup(.) 15. ├─dplyr::summarise(...) 16. ├─dplyr:::summarise.grouped_df(...) 17. │ └─dplyr:::summarise_cols(.data, dplyr_quosures(...), by, "summarise") 18. │ └─base::withCallingHandlers(...) 19. ├─dplyr:::dplyr_internal_error(...) 20. │ └─rlang::abort(class = c(class, "dplyr:::internal_error"), dplyr_error_data = data) 21. │ └─rlang:::signal_abort(cnd, .file) 22. │ └─base::signalCondition(cnd) 23. └─dplyr (local) `<fn>`(`<dpl:::__>`) 24. └─dplyr (local) handler(cnd) 25. └─rlang::abort(message, class = error_class, parent = parent, call = error_call) Execution halted Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64, r-oldrel-windows-x86_64

Version: 1.2.0
Check: tests
Result: ERROR Running ‘testthat.R’ [84s/99s] 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/tests.html > # * https://testthat.r-lib.org/reference/test_package.html#special-files > > library(testthat) > library(faersquarterlydata) > > test_check("faersquarterlydata") Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 Saving _problems/test-read_func_ascii-51.R retrieving resources/1_ADR22Q1_example.xml retrieving resources/1_ADR22Q1_example.xml retrieving resources/1_ADR22Q1_example.xml retrieving resources/1_ADR22Q1_example.xml retrieving resources/1_ADR22Q1_example.xml 1 out of 1 retrieving resources/1_ADR22Q1_example.xml 1 out of 1 retrieving resources/1_ADR22Q1_example.xml saving resources/1_ADR22Q1_example.xml into cache: resources/cache/cache_xml.Rdata 1 out of 1 retrieving resources/1_ADR22Q1_example.xml Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 Saving _problems/test-ror-23.R Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 Saving _problems/test-summary-4.R unzipping resources/xml_files/faers_xml_2012q4.zip unzipping resources/ascii_files//faers_ascii_2022Q4.zip [ FAIL 3 | WARN 36 | SKIP 0 | PASS 37 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-read_func_ascii.R:51:3'): unify_tabular_ascii ────────────────── Error in `summarise(., indi_pt_ps = sort(unique(indi_pt)), drugname_ps = paste(sort(unique(drugname)), collapse = " + "), start_dt_ps = unique(start_dt), .groups = "keep")`: i In argument: `indi_pt_ps = sort(unique(indi_pt))`. i In group 1: `primaryid = 100115733`, `caseid = 10011573`. Caused by error: ! `indi_pt_ps` must be size 1, not 0. i To return more or less than 1 row per group, use `reframe()`. Backtrace: ▆ 1. ├─faersquarterlydata::unify_tabular_ascii(ascii_list = faers_ascii_data) at test-read_func_ascii.R:51:3 2. │ └─... %>% relocate(age_YR, .after = "age") 3. ├─dplyr::relocate(., age_YR, .after = "age") 4. ├─dplyr::mutate(...) 5. ├─dplyr::left_join(...) 6. ├─dplyr:::left_join.data.frame(...) 7. │ └─dplyr::auto_copy(x, y, copy = copy) 8. │ ├─dplyr::same_src(x, y) 9. │ └─dplyr:::same_src.data.frame(x, y) 10. │ └─base::is.data.frame(y) 11. ├─... %>% suppressWarnings() 12. ├─base::suppressWarnings(.) 13. │ └─base::withCallingHandlers(...) 14. ├─dplyr::ungroup(.) 15. ├─dplyr::summarise(...) 16. ├─dplyr:::summarise.grouped_df(...) 17. │ └─dplyr:::summarise_cols(.data, dplyr_quosures(...), by, "summarise") 18. │ └─base::withCallingHandlers(...) 19. ├─dplyr:::dplyr_internal_error(...) 20. │ └─rlang::abort(class = c(class, "dplyr:::internal_error"), dplyr_error_data = data) 21. │ └─rlang:::signal_abort(cnd, .file) 22. │ └─base::signalCondition(cnd) 23. └─dplyr (local) `<fn>`(`<dpl:::__>`) 24. └─dplyr (local) handler(cnd) 25. └─rlang::abort(message, class = error_class, parent = parent, call = error_call) ── Error ('test-ror.R:23:3'): estimate_ror_bygroup ───────────────────────────── Error in `summarise(., indi_pt_ps = sort(unique(indi_pt)), drugname_ps = paste(sort(unique(drugname)), collapse = " + "), start_dt_ps = unique(start_dt), .groups = "keep")`: i In argument: `indi_pt_ps = sort(unique(indi_pt))`. i In group 1: `primaryid = 100115733`, `caseid = 10011573`. Caused by error: ! `indi_pt_ps` must be size 1, not 0. i To return more or less than 1 row per group, use `reframe()`. Backtrace: ▆ 1. ├─faersquarterlydata::unify_tabular_ascii(ascii_list = faers_ascii_data) at test-ror.R:23:3 2. │ └─... %>% relocate(age_YR, .after = "age") 3. ├─dplyr::relocate(., age_YR, .after = "age") 4. ├─dplyr::mutate(...) 5. ├─dplyr::left_join(...) 6. ├─dplyr:::left_join.data.frame(...) 7. │ └─dplyr::auto_copy(x, y, copy = copy) 8. │ ├─dplyr::same_src(x, y) 9. │ └─dplyr:::same_src.data.frame(x, y) 10. │ └─base::is.data.frame(y) 11. ├─... %>% suppressWarnings() 12. ├─base::suppressWarnings(.) 13. │ └─base::withCallingHandlers(...) 14. ├─dplyr::ungroup(.) 15. ├─dplyr::summarise(...) 16. ├─dplyr:::summarise.grouped_df(...) 17. │ └─dplyr:::summarise_cols(.data, dplyr_quosures(...), by, "summarise") 18. │ └─base::withCallingHandlers(...) 19. ├─dplyr:::dplyr_internal_error(...) 20. │ └─rlang::abort(class = c(class, "dplyr:::internal_error"), dplyr_error_data = data) 21. │ └─rlang:::signal_abort(cnd, .file) 22. │ └─base::signalCondition(cnd) 23. └─dplyr (local) `<fn>`(`<dpl:::__>`) 24. └─dplyr (local) handler(cnd) 25. └─rlang::abort(message, class = error_class, parent = parent, call = error_call) ── Error ('test-summary.R:4:3'): summary_faersdata ───────────────────────────── Error in `summarise(., indi_pt_ps = sort(unique(indi_pt)), drugname_ps = paste(sort(unique(drugname)), collapse = " + "), start_dt_ps = unique(start_dt), .groups = "keep")`: i In argument: `indi_pt_ps = sort(unique(indi_pt))`. i In group 1: `primaryid = 100115733`, `caseid = 10011573`. Caused by error: ! `indi_pt_ps` must be size 1, not 0. i To return more or less than 1 row per group, use `reframe()`. Backtrace: ▆ 1. ├─faersquarterlydata::unify_tabular_ascii(ascii_list = faers_ascii_data) at test-summary.R:4:3 2. │ └─... %>% relocate(age_YR, .after = "age") 3. ├─dplyr::relocate(., age_YR, .after = "age") 4. ├─dplyr::mutate(...) 5. ├─dplyr::left_join(...) 6. ├─dplyr:::left_join.data.frame(...) 7. │ └─dplyr::auto_copy(x, y, copy = copy) 8. │ ├─dplyr::same_src(x, y) 9. │ └─dplyr:::same_src.data.frame(x, y) 10. │ └─base::is.data.frame(y) 11. ├─... %>% suppressWarnings() 12. ├─base::suppressWarnings(.) 13. │ └─base::withCallingHandlers(...) 14. ├─dplyr::ungroup(.) 15. ├─dplyr::summarise(...) 16. ├─dplyr:::summarise.grouped_df(...) 17. │ └─dplyr:::summarise_cols(.data, dplyr_quosures(...), by, "summarise") 18. │ └─base::withCallingHandlers(...) 19. ├─dplyr:::dplyr_internal_error(...) 20. │ └─rlang::abort(class = c(class, "dplyr:::internal_error"), dplyr_error_data = data) 21. │ └─rlang:::signal_abort(cnd, .file) 22. │ └─base::signalCondition(cnd) 23. └─dplyr (local) `<fn>`(`<dpl:::__>`) 24. └─dplyr (local) handler(cnd) 25. └─rlang::abort(message, class = error_class, parent = parent, call = error_call) [ FAIL 3 | WARN 36 | SKIP 0 | PASS 37 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-fedora-clang

Version: 1.2.0
Check: tests
Result: ERROR Running ‘testthat.R’ [87s/258s] 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/tests.html > # * https://testthat.r-lib.org/reference/test_package.html#special-files > > library(testthat) > library(faersquarterlydata) > > test_check("faersquarterlydata") Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 Saving _problems/test-read_func_ascii-51.R retrieving resources/1_ADR22Q1_example.xml retrieving resources/1_ADR22Q1_example.xml retrieving resources/1_ADR22Q1_example.xml retrieving resources/1_ADR22Q1_example.xml retrieving resources/1_ADR22Q1_example.xml 1 out of 1 retrieving resources/1_ADR22Q1_example.xml 1 out of 1 retrieving resources/1_ADR22Q1_example.xml saving resources/1_ADR22Q1_example.xml into cache: resources/cache/cache_xml.Rdata 1 out of 1 retrieving resources/1_ADR22Q1_example.xml Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 Saving _problems/test-ror-23.R Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 Saving _problems/test-summary-4.R unzipping resources/xml_files/faers_xml_2012q4.zip unzipping resources/ascii_files//faers_ascii_2022Q4.zip [ FAIL 3 | WARN 36 | SKIP 0 | PASS 37 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-read_func_ascii.R:51:3'): unify_tabular_ascii ────────────────── Error in `summarise(., indi_pt_ps = sort(unique(indi_pt)), drugname_ps = paste(sort(unique(drugname)), collapse = " + "), start_dt_ps = unique(start_dt), .groups = "keep")`: i In argument: `indi_pt_ps = sort(unique(indi_pt))`. i In group 1: `primaryid = 100115733`, `caseid = 10011573`. Caused by error: ! `indi_pt_ps` must be size 1, not 0. i To return more or less than 1 row per group, use `reframe()`. Backtrace: ▆ 1. ├─faersquarterlydata::unify_tabular_ascii(ascii_list = faers_ascii_data) at test-read_func_ascii.R:51:3 2. │ └─... %>% relocate(age_YR, .after = "age") 3. ├─dplyr::relocate(., age_YR, .after = "age") 4. ├─dplyr::mutate(...) 5. ├─dplyr::left_join(...) 6. ├─dplyr:::left_join.data.frame(...) 7. │ └─dplyr::auto_copy(x, y, copy = copy) 8. │ ├─dplyr::same_src(x, y) 9. │ └─dplyr:::same_src.data.frame(x, y) 10. │ └─base::is.data.frame(y) 11. ├─... %>% suppressWarnings() 12. ├─base::suppressWarnings(.) 13. │ └─base::withCallingHandlers(...) 14. ├─dplyr::ungroup(.) 15. ├─dplyr::summarise(...) 16. ├─dplyr:::summarise.grouped_df(...) 17. │ └─dplyr:::summarise_cols(.data, dplyr_quosures(...), by, "summarise") 18. │ └─base::withCallingHandlers(...) 19. ├─dplyr:::dplyr_internal_error(...) 20. │ └─rlang::abort(class = c(class, "dplyr:::internal_error"), dplyr_error_data = data) 21. │ └─rlang:::signal_abort(cnd, .file) 22. │ └─base::signalCondition(cnd) 23. └─dplyr (local) `<fn>`(`<dpl:::__>`) 24. └─dplyr (local) handler(cnd) 25. └─rlang::abort(message, class = error_class, parent = parent, call = error_call) ── Error ('test-ror.R:23:3'): estimate_ror_bygroup ───────────────────────────── Error in `summarise(., indi_pt_ps = sort(unique(indi_pt)), drugname_ps = paste(sort(unique(drugname)), collapse = " + "), start_dt_ps = unique(start_dt), .groups = "keep")`: i In argument: `indi_pt_ps = sort(unique(indi_pt))`. i In group 1: `primaryid = 100115733`, `caseid = 10011573`. Caused by error: ! `indi_pt_ps` must be size 1, not 0. i To return more or less than 1 row per group, use `reframe()`. Backtrace: ▆ 1. ├─faersquarterlydata::unify_tabular_ascii(ascii_list = faers_ascii_data) at test-ror.R:23:3 2. │ └─... %>% relocate(age_YR, .after = "age") 3. ├─dplyr::relocate(., age_YR, .after = "age") 4. ├─dplyr::mutate(...) 5. ├─dplyr::left_join(...) 6. ├─dplyr:::left_join.data.frame(...) 7. │ └─dplyr::auto_copy(x, y, copy = copy) 8. │ ├─dplyr::same_src(x, y) 9. │ └─dplyr:::same_src.data.frame(x, y) 10. │ └─base::is.data.frame(y) 11. ├─... %>% suppressWarnings() 12. ├─base::suppressWarnings(.) 13. │ └─base::withCallingHandlers(...) 14. ├─dplyr::ungroup(.) 15. ├─dplyr::summarise(...) 16. ├─dplyr:::summarise.grouped_df(...) 17. │ └─dplyr:::summarise_cols(.data, dplyr_quosures(...), by, "summarise") 18. │ └─base::withCallingHandlers(...) 19. ├─dplyr:::dplyr_internal_error(...) 20. │ └─rlang::abort(class = c(class, "dplyr:::internal_error"), dplyr_error_data = data) 21. │ └─rlang:::signal_abort(cnd, .file) 22. │ └─base::signalCondition(cnd) 23. └─dplyr (local) `<fn>`(`<dpl:::__>`) 24. └─dplyr (local) handler(cnd) 25. └─rlang::abort(message, class = error_class, parent = parent, call = error_call) ── Error ('test-summary.R:4:3'): summary_faersdata ───────────────────────────── Error in `summarise(., indi_pt_ps = sort(unique(indi_pt)), drugname_ps = paste(sort(unique(drugname)), collapse = " + "), start_dt_ps = unique(start_dt), .groups = "keep")`: i In argument: `indi_pt_ps = sort(unique(indi_pt))`. i In group 1: `primaryid = 100115733`, `caseid = 10011573`. Caused by error: ! `indi_pt_ps` must be size 1, not 0. i To return more or less than 1 row per group, use `reframe()`. Backtrace: ▆ 1. ├─faersquarterlydata::unify_tabular_ascii(ascii_list = faers_ascii_data) at test-summary.R:4:3 2. │ └─... %>% relocate(age_YR, .after = "age") 3. ├─dplyr::relocate(., age_YR, .after = "age") 4. ├─dplyr::mutate(...) 5. ├─dplyr::left_join(...) 6. ├─dplyr:::left_join.data.frame(...) 7. │ └─dplyr::auto_copy(x, y, copy = copy) 8. │ ├─dplyr::same_src(x, y) 9. │ └─dplyr:::same_src.data.frame(x, y) 10. │ └─base::is.data.frame(y) 11. ├─... %>% suppressWarnings() 12. ├─base::suppressWarnings(.) 13. │ └─base::withCallingHandlers(...) 14. ├─dplyr::ungroup(.) 15. ├─dplyr::summarise(...) 16. ├─dplyr:::summarise.grouped_df(...) 17. │ └─dplyr:::summarise_cols(.data, dplyr_quosures(...), by, "summarise") 18. │ └─base::withCallingHandlers(...) 19. ├─dplyr:::dplyr_internal_error(...) 20. │ └─rlang::abort(class = c(class, "dplyr:::internal_error"), dplyr_error_data = data) 21. │ └─rlang:::signal_abort(cnd, .file) 22. │ └─base::signalCondition(cnd) 23. └─dplyr (local) `<fn>`(`<dpl:::__>`) 24. └─dplyr (local) handler(cnd) 25. └─rlang::abort(message, class = error_class, parent = parent, call = error_call) [ FAIL 3 | WARN 36 | SKIP 0 | PASS 37 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-fedora-gcc

Version: 1.2.0
Check: tests
Result: ERROR Running 'testthat.R' [43s] 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/tests.html > # * https://testthat.r-lib.org/reference/test_package.html#special-files > > library(testthat) > library(faersquarterlydata) > > test_check("faersquarterlydata") Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 Saving _problems/test-read_func_ascii-51.R retrieving resources/1_ADR22Q1_example.xml retrieving resources/1_ADR22Q1_example.xml retrieving resources/1_ADR22Q1_example.xml retrieving resources/1_ADR22Q1_example.xml retrieving resources/1_ADR22Q1_example.xml 1 out of 1 retrieving resources/1_ADR22Q1_example.xml 1 out of 1 retrieving resources/1_ADR22Q1_example.xml saving resources/1_ADR22Q1_example.xml into cache: resources/cache/cache_xml.Rdata 1 out of 1 retrieving resources/1_ADR22Q1_example.xml Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 Saving _problems/test-ror-23.R Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 Saving _problems/test-summary-4.R unzipping resources/xml_files/faers_xml_2012q4.zip unzipping resources/ascii_files/faers_ascii_2022Q4.zip [ FAIL 3 | WARN 36 | SKIP 0 | PASS 37 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-read_func_ascii.R:51:3'): unify_tabular_ascii ────────────────── Error in `summarise(., indi_pt_ps = sort(unique(indi_pt)), drugname_ps = paste(sort(unique(drugname)), collapse = " + "), start_dt_ps = unique(start_dt), .groups = "keep")`: i In argument: `indi_pt_ps = sort(unique(indi_pt))`. i In group 1: `primaryid = 100115733`, `caseid = 10011573`. Caused by error: ! `indi_pt_ps` must be size 1, not 0. i To return more or less than 1 row per group, use `reframe()`. Backtrace: ▆ 1. ├─faersquarterlydata::unify_tabular_ascii(ascii_list = faers_ascii_data) at test-read_func_ascii.R:51:3 2. │ └─... %>% relocate(age_YR, .after = "age") 3. ├─dplyr::relocate(., age_YR, .after = "age") 4. ├─dplyr::mutate(...) 5. ├─dplyr::left_join(...) 6. ├─dplyr:::left_join.data.frame(...) 7. │ └─dplyr::auto_copy(x, y, copy = copy) 8. │ ├─dplyr::same_src(x, y) 9. │ └─dplyr:::same_src.data.frame(x, y) 10. │ └─base::is.data.frame(y) 11. ├─... %>% suppressWarnings() 12. ├─base::suppressWarnings(.) 13. │ └─base::withCallingHandlers(...) 14. ├─dplyr::ungroup(.) 15. ├─dplyr::summarise(...) 16. ├─dplyr:::summarise.grouped_df(...) 17. │ └─dplyr:::summarise_cols(.data, dplyr_quosures(...), by, "summarise") 18. │ └─base::withCallingHandlers(...) 19. ├─dplyr:::dplyr_internal_error(...) 20. │ └─rlang::abort(class = c(class, "dplyr:::internal_error"), dplyr_error_data = data) 21. │ └─rlang:::signal_abort(cnd, .file) 22. │ └─base::signalCondition(cnd) 23. └─dplyr (local) `<fn>`(`<dpl:::__>`) 24. └─dplyr (local) handler(cnd) 25. └─rlang::abort(message, class = error_class, parent = parent, call = error_call) ── Error ('test-ror.R:23:3'): estimate_ror_bygroup ───────────────────────────── Error in `summarise(., indi_pt_ps = sort(unique(indi_pt)), drugname_ps = paste(sort(unique(drugname)), collapse = " + "), start_dt_ps = unique(start_dt), .groups = "keep")`: i In argument: `indi_pt_ps = sort(unique(indi_pt))`. i In group 1: `primaryid = 100115733`, `caseid = 10011573`. Caused by error: ! `indi_pt_ps` must be size 1, not 0. i To return more or less than 1 row per group, use `reframe()`. Backtrace: ▆ 1. ├─faersquarterlydata::unify_tabular_ascii(ascii_list = faers_ascii_data) at test-ror.R:23:3 2. │ └─... %>% relocate(age_YR, .after = "age") 3. ├─dplyr::relocate(., age_YR, .after = "age") 4. ├─dplyr::mutate(...) 5. ├─dplyr::left_join(...) 6. ├─dplyr:::left_join.data.frame(...) 7. │ └─dplyr::auto_copy(x, y, copy = copy) 8. │ ├─dplyr::same_src(x, y) 9. │ └─dplyr:::same_src.data.frame(x, y) 10. │ └─base::is.data.frame(y) 11. ├─... %>% suppressWarnings() 12. ├─base::suppressWarnings(.) 13. │ └─base::withCallingHandlers(...) 14. ├─dplyr::ungroup(.) 15. ├─dplyr::summarise(...) 16. ├─dplyr:::summarise.grouped_df(...) 17. │ └─dplyr:::summarise_cols(.data, dplyr_quosures(...), by, "summarise") 18. │ └─base::withCallingHandlers(...) 19. ├─dplyr:::dplyr_internal_error(...) 20. │ └─rlang::abort(class = c(class, "dplyr:::internal_error"), dplyr_error_data = data) 21. │ └─rlang:::signal_abort(cnd, .file) 22. │ └─base::signalCondition(cnd) 23. └─dplyr (local) `<fn>`(`<dpl:::__>`) 24. └─dplyr (local) handler(cnd) 25. └─rlang::abort(message, class = error_class, parent = parent, call = error_call) ── Error ('test-summary.R:4:3'): summary_faersdata ───────────────────────────── Error in `summarise(., indi_pt_ps = sort(unique(indi_pt)), drugname_ps = paste(sort(unique(drugname)), collapse = " + "), start_dt_ps = unique(start_dt), .groups = "keep")`: i In argument: `indi_pt_ps = sort(unique(indi_pt))`. i In group 1: `primaryid = 100115733`, `caseid = 10011573`. Caused by error: ! `indi_pt_ps` must be size 1, not 0. i To return more or less than 1 row per group, use `reframe()`. Backtrace: ▆ 1. ├─faersquarterlydata::unify_tabular_ascii(ascii_list = faers_ascii_data) at test-summary.R:4:3 2. │ └─... %>% relocate(age_YR, .after = "age") 3. ├─dplyr::relocate(., age_YR, .after = "age") 4. ├─dplyr::mutate(...) 5. ├─dplyr::left_join(...) 6. ├─dplyr:::left_join.data.frame(...) 7. │ └─dplyr::auto_copy(x, y, copy = copy) 8. │ ├─dplyr::same_src(x, y) 9. │ └─dplyr:::same_src.data.frame(x, y) 10. │ └─base::is.data.frame(y) 11. ├─... %>% suppressWarnings() 12. ├─base::suppressWarnings(.) 13. │ └─base::withCallingHandlers(...) 14. ├─dplyr::ungroup(.) 15. ├─dplyr::summarise(...) 16. ├─dplyr:::summarise.grouped_df(...) 17. │ └─dplyr:::summarise_cols(.data, dplyr_quosures(...), by, "summarise") 18. │ └─base::withCallingHandlers(...) 19. ├─dplyr:::dplyr_internal_error(...) 20. │ └─rlang::abort(class = c(class, "dplyr:::internal_error"), dplyr_error_data = data) 21. │ └─rlang:::signal_abort(cnd, .file) 22. │ └─base::signalCondition(cnd) 23. └─dplyr (local) `<fn>`(`<dpl:::__>`) 24. └─dplyr (local) handler(cnd) 25. └─rlang::abort(message, class = error_class, parent = parent, call = error_call) [ FAIL 3 | WARN 36 | SKIP 0 | PASS 37 ] Error: ! Test failures. Execution halted Flavor: r-devel-windows-x86_64

Version: 1.2.0
Check: examples
Result: ERROR Running examples in ‘faersquarterlydata-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: unify_tabular_ascii > ### Title: Unify the list to a tabular format > ### Aliases: unify_tabular_ascii > > ### ** Examples > > unify_tabular_ascii(ascii_list = als_faers_data) Error in `summarise()`: ℹ In argument: `indi_pt_ps = sort(unique(indi_pt))`. ℹ In group 79: `primaryid = 129433992`, `caseid = 12943399`. Caused by error: ! `indi_pt_ps` must be size 1, not 0. ℹ To return more or less than 1 row per group, use `reframe()`. Backtrace: ▆ 1. ├─faersquarterlydata::unify_tabular_ascii(ascii_list = als_faers_data) 2. │ └─... %>% relocate(age_YR, .after = "age") 3. ├─dplyr::relocate(., age_YR, .after = "age") 4. ├─dplyr::mutate(...) 5. ├─dplyr::left_join(...) 6. ├─dplyr:::left_join.data.frame(...) 7. │ └─dplyr::auto_copy(x, y, copy = copy) 8. │ ├─dplyr::same_src(x, y) 9. │ └─dplyr:::same_src.data.frame(x, y) 10. │ └─base::is.data.frame(y) 11. ├─... %>% suppressWarnings() 12. ├─base::suppressWarnings(.) 13. │ └─base::withCallingHandlers(...) 14. ├─dplyr::ungroup(.) 15. ├─dplyr::summarise(...) 16. ├─dplyr:::summarise.grouped_df(...) 17. │ └─dplyr:::summarise_cols(.data, dplyr_quosures(...), by, "summarise") 18. │ └─base::withCallingHandlers(...) 19. ├─dplyr:::dplyr_internal_error(...) 20. │ └─rlang::abort(class = c(class, "dplyr:::internal_error"), dplyr_error_data = data) 21. │ └─rlang:::signal_abort(cnd, .file) 22. │ └─base::signalCondition(cnd) 23. └─dplyr (local) `<fn>`(`<dpl:::__>`) 24. └─dplyr (local) handler(cnd) 25. └─rlang::abort(message, class = error_class, parent = parent, call = error_call) Execution halted Examples with CPU (user + system) or elapsed time > 5s user system elapsed summary_faersdata 4.231 0.089 5.446 Flavor: r-patched-linux-x86_64

Version: 1.2.0
Check: tests
Result: ERROR Running ‘testthat.R’ [53s/70s] 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/tests.html > # * https://testthat.r-lib.org/reference/test_package.html#special-files > > library(testthat) > library(faersquarterlydata) > > test_check("faersquarterlydata") Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 Saving _problems/test-read_func_ascii-51.R retrieving resources/1_ADR22Q1_example.xml retrieving resources/1_ADR22Q1_example.xml retrieving resources/1_ADR22Q1_example.xml retrieving resources/1_ADR22Q1_example.xml retrieving resources/1_ADR22Q1_example.xml 1 out of 1 retrieving resources/1_ADR22Q1_example.xml 1 out of 1 retrieving resources/1_ADR22Q1_example.xml saving resources/1_ADR22Q1_example.xml into cache: resources/cache/cache_xml.Rdata 1 out of 1 retrieving resources/1_ADR22Q1_example.xml Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 Saving _problems/test-ror-23.R Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 Saving _problems/test-summary-4.R unzipping resources/xml_files/faers_xml_2012q4.zip unzipping resources/ascii_files//faers_ascii_2022Q4.zip [ FAIL 3 | WARN 36 | SKIP 0 | PASS 37 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-read_func_ascii.R:51:3'): unify_tabular_ascii ────────────────── Error in `summarise(., indi_pt_ps = sort(unique(indi_pt)), drugname_ps = paste(sort(unique(drugname)), collapse = " + "), start_dt_ps = unique(start_dt), .groups = "keep")`: i In argument: `indi_pt_ps = sort(unique(indi_pt))`. i In group 1: `primaryid = 100115733`, `caseid = 10011573`. Caused by error: ! `indi_pt_ps` must be size 1, not 0. i To return more or less than 1 row per group, use `reframe()`. Backtrace: ▆ 1. ├─faersquarterlydata::unify_tabular_ascii(ascii_list = faers_ascii_data) at test-read_func_ascii.R:51:3 2. │ └─... %>% relocate(age_YR, .after = "age") 3. ├─dplyr::relocate(., age_YR, .after = "age") 4. ├─dplyr::mutate(...) 5. ├─dplyr::left_join(...) 6. ├─dplyr:::left_join.data.frame(...) 7. │ └─dplyr::auto_copy(x, y, copy = copy) 8. │ ├─dplyr::same_src(x, y) 9. │ └─dplyr:::same_src.data.frame(x, y) 10. │ └─base::is.data.frame(y) 11. ├─... %>% suppressWarnings() 12. ├─base::suppressWarnings(.) 13. │ └─base::withCallingHandlers(...) 14. ├─dplyr::ungroup(.) 15. ├─dplyr::summarise(...) 16. ├─dplyr:::summarise.grouped_df(...) 17. │ └─dplyr:::summarise_cols(.data, dplyr_quosures(...), by, "summarise") 18. │ └─base::withCallingHandlers(...) 19. ├─dplyr:::dplyr_internal_error(...) 20. │ └─rlang::abort(class = c(class, "dplyr:::internal_error"), dplyr_error_data = data) 21. │ └─rlang:::signal_abort(cnd, .file) 22. │ └─base::signalCondition(cnd) 23. └─dplyr (local) `<fn>`(`<dpl:::__>`) 24. └─dplyr (local) handler(cnd) 25. └─rlang::abort(message, class = error_class, parent = parent, call = error_call) ── Error ('test-ror.R:23:3'): estimate_ror_bygroup ───────────────────────────── Error in `summarise(., indi_pt_ps = sort(unique(indi_pt)), drugname_ps = paste(sort(unique(drugname)), collapse = " + "), start_dt_ps = unique(start_dt), .groups = "keep")`: i In argument: `indi_pt_ps = sort(unique(indi_pt))`. i In group 1: `primaryid = 100115733`, `caseid = 10011573`. Caused by error: ! `indi_pt_ps` must be size 1, not 0. i To return more or less than 1 row per group, use `reframe()`. Backtrace: ▆ 1. ├─faersquarterlydata::unify_tabular_ascii(ascii_list = faers_ascii_data) at test-ror.R:23:3 2. │ └─... %>% relocate(age_YR, .after = "age") 3. ├─dplyr::relocate(., age_YR, .after = "age") 4. ├─dplyr::mutate(...) 5. ├─dplyr::left_join(...) 6. ├─dplyr:::left_join.data.frame(...) 7. │ └─dplyr::auto_copy(x, y, copy = copy) 8. │ ├─dplyr::same_src(x, y) 9. │ └─dplyr:::same_src.data.frame(x, y) 10. │ └─base::is.data.frame(y) 11. ├─... %>% suppressWarnings() 12. ├─base::suppressWarnings(.) 13. │ └─base::withCallingHandlers(...) 14. ├─dplyr::ungroup(.) 15. ├─dplyr::summarise(...) 16. ├─dplyr:::summarise.grouped_df(...) 17. │ └─dplyr:::summarise_cols(.data, dplyr_quosures(...), by, "summarise") 18. │ └─base::withCallingHandlers(...) 19. ├─dplyr:::dplyr_internal_error(...) 20. │ └─rlang::abort(class = c(class, "dplyr:::internal_error"), dplyr_error_data = data) 21. │ └─rlang:::signal_abort(cnd, .file) 22. │ └─base::signalCondition(cnd) 23. └─dplyr (local) `<fn>`(`<dpl:::__>`) 24. └─dplyr (local) handler(cnd) 25. └─rlang::abort(message, class = error_class, parent = parent, call = error_call) ── Error ('test-summary.R:4:3'): summary_faersdata ───────────────────────────── Error in `summarise(., indi_pt_ps = sort(unique(indi_pt)), drugname_ps = paste(sort(unique(drugname)), collapse = " + "), start_dt_ps = unique(start_dt), .groups = "keep")`: i In argument: `indi_pt_ps = sort(unique(indi_pt))`. i In group 1: `primaryid = 100115733`, `caseid = 10011573`. Caused by error: ! `indi_pt_ps` must be size 1, not 0. i To return more or less than 1 row per group, use `reframe()`. Backtrace: ▆ 1. ├─faersquarterlydata::unify_tabular_ascii(ascii_list = faers_ascii_data) at test-summary.R:4:3 2. │ └─... %>% relocate(age_YR, .after = "age") 3. ├─dplyr::relocate(., age_YR, .after = "age") 4. ├─dplyr::mutate(...) 5. ├─dplyr::left_join(...) 6. ├─dplyr:::left_join.data.frame(...) 7. │ └─dplyr::auto_copy(x, y, copy = copy) 8. │ ├─dplyr::same_src(x, y) 9. │ └─dplyr:::same_src.data.frame(x, y) 10. │ └─base::is.data.frame(y) 11. ├─... %>% suppressWarnings() 12. ├─base::suppressWarnings(.) 13. │ └─base::withCallingHandlers(...) 14. ├─dplyr::ungroup(.) 15. ├─dplyr::summarise(...) 16. ├─dplyr:::summarise.grouped_df(...) 17. │ └─dplyr:::summarise_cols(.data, dplyr_quosures(...), by, "summarise") 18. │ └─base::withCallingHandlers(...) 19. ├─dplyr:::dplyr_internal_error(...) 20. │ └─rlang::abort(class = c(class, "dplyr:::internal_error"), dplyr_error_data = data) 21. │ └─rlang:::signal_abort(cnd, .file) 22. │ └─base::signalCondition(cnd) 23. └─dplyr (local) `<fn>`(`<dpl:::__>`) 24. └─dplyr (local) handler(cnd) 25. └─rlang::abort(message, class = error_class, parent = parent, call = error_call) [ FAIL 3 | WARN 36 | SKIP 0 | PASS 37 ] Error: ! Test failures. Execution halted Flavor: r-patched-linux-x86_64

Version: 1.2.0
Check: examples
Result: ERROR Running examples in ‘faersquarterlydata-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: unify_tabular_ascii > ### Title: Unify the list to a tabular format > ### Aliases: unify_tabular_ascii > > ### ** Examples > > unify_tabular_ascii(ascii_list = als_faers_data) Error in `summarise()`: ℹ In argument: `indi_pt_ps = sort(unique(indi_pt))`. ℹ In group 79: `primaryid = 129433992`, `caseid = 12943399`. Caused by error: ! `indi_pt_ps` must be size 1, not 0. ℹ To return more or less than 1 row per group, use `reframe()`. Backtrace: ▆ 1. ├─faersquarterlydata::unify_tabular_ascii(ascii_list = als_faers_data) 2. │ └─... %>% relocate(age_YR, .after = "age") 3. ├─dplyr::relocate(., age_YR, .after = "age") 4. ├─dplyr::mutate(...) 5. ├─dplyr::left_join(...) 6. ├─dplyr:::left_join.data.frame(...) 7. │ └─dplyr::auto_copy(x, y, copy = copy) 8. │ ├─dplyr::same_src(x, y) 9. │ └─dplyr:::same_src.data.frame(x, y) 10. │ └─base::is.data.frame(y) 11. ├─... %>% suppressWarnings() 12. ├─base::suppressWarnings(.) 13. │ └─base::withCallingHandlers(...) 14. ├─dplyr::ungroup(.) 15. ├─dplyr::summarise(...) 16. ├─dplyr:::summarise.grouped_df(...) 17. │ └─dplyr:::summarise_cols(.data, dplyr_quosures(...), by, "summarise") 18. │ └─base::withCallingHandlers(...) 19. ├─dplyr:::dplyr_internal_error(...) 20. │ └─rlang::abort(class = c(class, "dplyr:::internal_error"), dplyr_error_data = data) 21. │ └─rlang:::signal_abort(cnd, .file) 22. │ └─base::signalCondition(cnd) 23. └─dplyr (local) `<fn>`(`<dpl:::__>`) 24. └─dplyr (local) handler(cnd) 25. └─rlang::abort(message, class = error_class, parent = parent, call = error_call) Execution halted Examples with CPU (user + system) or elapsed time > 5s user system elapsed summary_faersdata 4.377 0.082 5.725 Flavor: r-release-linux-x86_64

Version: 1.2.0
Check: tests
Result: ERROR Running ‘testthat.R’ [54s/69s] 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/tests.html > # * https://testthat.r-lib.org/reference/test_package.html#special-files > > library(testthat) > library(faersquarterlydata) > > test_check("faersquarterlydata") Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 Saving _problems/test-read_func_ascii-51.R retrieving resources/1_ADR22Q1_example.xml retrieving resources/1_ADR22Q1_example.xml retrieving resources/1_ADR22Q1_example.xml retrieving resources/1_ADR22Q1_example.xml retrieving resources/1_ADR22Q1_example.xml 1 out of 1 retrieving resources/1_ADR22Q1_example.xml 1 out of 1 retrieving resources/1_ADR22Q1_example.xml saving resources/1_ADR22Q1_example.xml into cache: resources/cache/cache_xml.Rdata 1 out of 1 retrieving resources/1_ADR22Q1_example.xml Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 Saving _problems/test-ror-23.R Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 Saving _problems/test-summary-4.R unzipping resources/xml_files/faers_xml_2012q4.zip unzipping resources/ascii_files//faers_ascii_2022Q4.zip [ FAIL 3 | WARN 36 | SKIP 0 | PASS 37 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-read_func_ascii.R:51:3'): unify_tabular_ascii ────────────────── Error in `summarise(., indi_pt_ps = sort(unique(indi_pt)), drugname_ps = paste(sort(unique(drugname)), collapse = " + "), start_dt_ps = unique(start_dt), .groups = "keep")`: i In argument: `indi_pt_ps = sort(unique(indi_pt))`. i In group 1: `primaryid = 100115733`, `caseid = 10011573`. Caused by error: ! `indi_pt_ps` must be size 1, not 0. i To return more or less than 1 row per group, use `reframe()`. Backtrace: ▆ 1. ├─faersquarterlydata::unify_tabular_ascii(ascii_list = faers_ascii_data) at test-read_func_ascii.R:51:3 2. │ └─... %>% relocate(age_YR, .after = "age") 3. ├─dplyr::relocate(., age_YR, .after = "age") 4. ├─dplyr::mutate(...) 5. ├─dplyr::left_join(...) 6. ├─dplyr:::left_join.data.frame(...) 7. │ └─dplyr::auto_copy(x, y, copy = copy) 8. │ ├─dplyr::same_src(x, y) 9. │ └─dplyr:::same_src.data.frame(x, y) 10. │ └─base::is.data.frame(y) 11. ├─... %>% suppressWarnings() 12. ├─base::suppressWarnings(.) 13. │ └─base::withCallingHandlers(...) 14. ├─dplyr::ungroup(.) 15. ├─dplyr::summarise(...) 16. ├─dplyr:::summarise.grouped_df(...) 17. │ └─dplyr:::summarise_cols(.data, dplyr_quosures(...), by, "summarise") 18. │ └─base::withCallingHandlers(...) 19. ├─dplyr:::dplyr_internal_error(...) 20. │ └─rlang::abort(class = c(class, "dplyr:::internal_error"), dplyr_error_data = data) 21. │ └─rlang:::signal_abort(cnd, .file) 22. │ └─base::signalCondition(cnd) 23. └─dplyr (local) `<fn>`(`<dpl:::__>`) 24. └─dplyr (local) handler(cnd) 25. └─rlang::abort(message, class = error_class, parent = parent, call = error_call) ── Error ('test-ror.R:23:3'): estimate_ror_bygroup ───────────────────────────── Error in `summarise(., indi_pt_ps = sort(unique(indi_pt)), drugname_ps = paste(sort(unique(drugname)), collapse = " + "), start_dt_ps = unique(start_dt), .groups = "keep")`: i In argument: `indi_pt_ps = sort(unique(indi_pt))`. i In group 1: `primaryid = 100115733`, `caseid = 10011573`. Caused by error: ! `indi_pt_ps` must be size 1, not 0. i To return more or less than 1 row per group, use `reframe()`. Backtrace: ▆ 1. ├─faersquarterlydata::unify_tabular_ascii(ascii_list = faers_ascii_data) at test-ror.R:23:3 2. │ └─... %>% relocate(age_YR, .after = "age") 3. ├─dplyr::relocate(., age_YR, .after = "age") 4. ├─dplyr::mutate(...) 5. ├─dplyr::left_join(...) 6. ├─dplyr:::left_join.data.frame(...) 7. │ └─dplyr::auto_copy(x, y, copy = copy) 8. │ ├─dplyr::same_src(x, y) 9. │ └─dplyr:::same_src.data.frame(x, y) 10. │ └─base::is.data.frame(y) 11. ├─... %>% suppressWarnings() 12. ├─base::suppressWarnings(.) 13. │ └─base::withCallingHandlers(...) 14. ├─dplyr::ungroup(.) 15. ├─dplyr::summarise(...) 16. ├─dplyr:::summarise.grouped_df(...) 17. │ └─dplyr:::summarise_cols(.data, dplyr_quosures(...), by, "summarise") 18. │ └─base::withCallingHandlers(...) 19. ├─dplyr:::dplyr_internal_error(...) 20. │ └─rlang::abort(class = c(class, "dplyr:::internal_error"), dplyr_error_data = data) 21. │ └─rlang:::signal_abort(cnd, .file) 22. │ └─base::signalCondition(cnd) 23. └─dplyr (local) `<fn>`(`<dpl:::__>`) 24. └─dplyr (local) handler(cnd) 25. └─rlang::abort(message, class = error_class, parent = parent, call = error_call) ── Error ('test-summary.R:4:3'): summary_faersdata ───────────────────────────── Error in `summarise(., indi_pt_ps = sort(unique(indi_pt)), drugname_ps = paste(sort(unique(drugname)), collapse = " + "), start_dt_ps = unique(start_dt), .groups = "keep")`: i In argument: `indi_pt_ps = sort(unique(indi_pt))`. i In group 1: `primaryid = 100115733`, `caseid = 10011573`. Caused by error: ! `indi_pt_ps` must be size 1, not 0. i To return more or less than 1 row per group, use `reframe()`. Backtrace: ▆ 1. ├─faersquarterlydata::unify_tabular_ascii(ascii_list = faers_ascii_data) at test-summary.R:4:3 2. │ └─... %>% relocate(age_YR, .after = "age") 3. ├─dplyr::relocate(., age_YR, .after = "age") 4. ├─dplyr::mutate(...) 5. ├─dplyr::left_join(...) 6. ├─dplyr:::left_join.data.frame(...) 7. │ └─dplyr::auto_copy(x, y, copy = copy) 8. │ ├─dplyr::same_src(x, y) 9. │ └─dplyr:::same_src.data.frame(x, y) 10. │ └─base::is.data.frame(y) 11. ├─... %>% suppressWarnings() 12. ├─base::suppressWarnings(.) 13. │ └─base::withCallingHandlers(...) 14. ├─dplyr::ungroup(.) 15. ├─dplyr::summarise(...) 16. ├─dplyr:::summarise.grouped_df(...) 17. │ └─dplyr:::summarise_cols(.data, dplyr_quosures(...), by, "summarise") 18. │ └─base::withCallingHandlers(...) 19. ├─dplyr:::dplyr_internal_error(...) 20. │ └─rlang::abort(class = c(class, "dplyr:::internal_error"), dplyr_error_data = data) 21. │ └─rlang:::signal_abort(cnd, .file) 22. │ └─base::signalCondition(cnd) 23. └─dplyr (local) `<fn>`(`<dpl:::__>`) 24. └─dplyr (local) handler(cnd) 25. └─rlang::abort(message, class = error_class, parent = parent, call = error_call) [ FAIL 3 | WARN 36 | SKIP 0 | PASS 37 ] Error: ! Test failures. Execution halted Flavor: r-release-linux-x86_64

Version: 1.2.0
Check: tests
Result: ERROR Running 'testthat.R' [68s] 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/tests.html > # * https://testthat.r-lib.org/reference/test_package.html#special-files > > library(testthat) > library(faersquarterlydata) > > test_check("faersquarterlydata") Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 Saving _problems/test-read_func_ascii-51.R retrieving resources/1_ADR22Q1_example.xml retrieving resources/1_ADR22Q1_example.xml retrieving resources/1_ADR22Q1_example.xml retrieving resources/1_ADR22Q1_example.xml retrieving resources/1_ADR22Q1_example.xml 1 out of 1 retrieving resources/1_ADR22Q1_example.xml 1 out of 1 retrieving resources/1_ADR22Q1_example.xml saving resources/1_ADR22Q1_example.xml into cache: resources/cache/cache_xml.Rdata 1 out of 1 retrieving resources/1_ADR22Q1_example.xml Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 Saving _problems/test-ror-23.R Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2 Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8 binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8 binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8 binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8 binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8 binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8 binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8 binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8 Saving _problems/test-summary-4.R unzipping resources/xml_files/faers_xml_2012q4.zip unzipping resources/ascii_files/faers_ascii_2022Q4.zip [ FAIL 3 | WARN 36 | SKIP 0 | PASS 37 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-read_func_ascii.R:51:3'): unify_tabular_ascii ────────────────── Error in `summarise(., indi_pt_ps = sort(unique(indi_pt)), drugname_ps = paste(sort(unique(drugname)), collapse = " + "), start_dt_ps = unique(start_dt), .groups = "keep")`: i In argument: `indi_pt_ps = sort(unique(indi_pt))`. i In group 1: `primaryid = 100115733`, `caseid = 10011573`. Caused by error: ! `indi_pt_ps` must be size 1, not 0. i To return more or less than 1 row per group, use `reframe()`. Backtrace: ▆ 1. ├─faersquarterlydata::unify_tabular_ascii(ascii_list = faers_ascii_data) at test-read_func_ascii.R:51:3 2. │ └─... %>% relocate(age_YR, .after = "age") 3. ├─dplyr::relocate(., age_YR, .after = "age") 4. ├─dplyr::mutate(...) 5. ├─dplyr::left_join(...) 6. ├─dplyr:::left_join.data.frame(...) 7. │ └─dplyr::auto_copy(x, y, copy = copy) 8. │ ├─dplyr::same_src(x, y) 9. │ └─dplyr:::same_src.data.frame(x, y) 10. │ └─base::is.data.frame(y) 11. ├─... %>% suppressWarnings() 12. ├─base::suppressWarnings(.) 13. │ └─base::withCallingHandlers(...) 14. ├─dplyr::ungroup(.) 15. ├─dplyr::summarise(...) 16. ├─dplyr:::summarise.grouped_df(...) 17. │ └─dplyr:::summarise_cols(.data, dplyr_quosures(...), by, "summarise") 18. │ └─base::withCallingHandlers(...) 19. ├─dplyr:::dplyr_internal_error(...) 20. │ └─rlang::abort(class = c(class, "dplyr:::internal_error"), dplyr_error_data = data) 21. │ └─rlang:::signal_abort(cnd, .file) 22. │ └─base::signalCondition(cnd) 23. └─dplyr (local) `<fn>`(`<dpl:::__>`) 24. └─dplyr (local) handler(cnd) 25. └─rlang::abort(message, class = error_class, parent = parent, call = error_call) ── Error ('test-ror.R:23:3'): estimate_ror_bygroup ───────────────────────────── Error in `summarise(., indi_pt_ps = sort(unique(indi_pt)), drugname_ps = paste(sort(unique(drugname)), collapse = " + "), start_dt_ps = unique(start_dt), .groups = "keep")`: i In argument: `indi_pt_ps = sort(unique(indi_pt))`. i In group 1: `primaryid = 100115733`, `caseid = 10011573`. Caused by error: ! `indi_pt_ps` must be size 1, not 0. i To return more or less than 1 row per group, use `reframe()`. Backtrace: ▆ 1. ├─faersquarterlydata::unify_tabular_ascii(ascii_list = faers_ascii_data) at test-ror.R:23:3 2. │ └─... %>% relocate(age_YR, .after = "age") 3. ├─dplyr::relocate(., age_YR, .after = "age") 4. ├─dplyr::mutate(...) 5. ├─dplyr::left_join(...) 6. ├─dplyr:::left_join.data.frame(...) 7. │ └─dplyr::auto_copy(x, y, copy = copy) 8. │ ├─dplyr::same_src(x, y) 9. │ └─dplyr:::same_src.data.frame(x, y) 10. │ └─base::is.data.frame(y) 11. ├─... %>% suppressWarnings() 12. ├─base::suppressWarnings(.) 13. │ └─base::withCallingHandlers(...) 14. ├─dplyr::ungroup(.) 15. ├─dplyr::summarise(...) 16. ├─dplyr:::summarise.grouped_df(...) 17. │ └─dplyr:::summarise_cols(.data, dplyr_quosures(...), by, "summarise") 18. │ └─base::withCallingHandlers(...) 19. ├─dplyr:::dplyr_internal_error(...) 20. │ └─rlang::abort(class = c(class, "dplyr:::internal_error"), dplyr_error_data = data) 21. │ └─rlang:::signal_abort(cnd, .file) 22. │ └─base::signalCondition(cnd) 23. └─dplyr (local) `<fn>`(`<dpl:::__>`) 24. └─dplyr (local) handler(cnd) 25. └─rlang::abort(message, class = error_class, parent = parent, call = error_call) ── Error ('test-summary.R:4:3'): summary_faersdata ───────────────────────────── Error in `summarise(., indi_pt_ps = sort(unique(indi_pt)), drugname_ps = paste(sort(unique(drugname)), collapse = " + "), start_dt_ps = unique(start_dt), .groups = "keep")`: i In argument: `indi_pt_ps = sort(unique(indi_pt))`. i In group 1: `primaryid = 100115733`, `caseid = 10011573`. Caused by error: ! `indi_pt_ps` must be size 1, not 0. i To return more or less than 1 row per group, use `reframe()`. Backtrace: ▆ 1. ├─faersquarterlydata::unify_tabular_ascii(ascii_list = faers_ascii_data) at test-summary.R:4:3 2. │ └─... %>% relocate(age_YR, .after = "age") 3. ├─dplyr::relocate(., age_YR, .after = "age") 4. ├─dplyr::mutate(...) 5. ├─dplyr::left_join(...) 6. ├─dplyr:::left_join.data.frame(...) 7. │ └─dplyr::auto_copy(x, y, copy = copy) 8. │ ├─dplyr::same_src(x, y) 9. │ └─dplyr:::same_src.data.frame(x, y) 10. │ └─base::is.data.frame(y) 11. ├─... %>% suppressWarnings() 12. ├─base::suppressWarnings(.) 13. │ └─base::withCallingHandlers(...) 14. ├─dplyr::ungroup(.) 15. ├─dplyr::summarise(...) 16. ├─dplyr:::summarise.grouped_df(...) 17. │ └─dplyr:::summarise_cols(.data, dplyr_quosures(...), by, "summarise") 18. │ └─base::withCallingHandlers(...) 19. ├─dplyr:::dplyr_internal_error(...) 20. │ └─rlang::abort(class = c(class, "dplyr:::internal_error"), dplyr_error_data = data) 21. │ └─rlang:::signal_abort(cnd, .file) 22. │ └─base::signalCondition(cnd) 23. └─dplyr (local) `<fn>`(`<dpl:::__>`) 24. └─dplyr (local) handler(cnd) 25. └─rlang::abort(message, class = error_class, parent = parent, call = error_call) [ FAIL 3 | WARN 36 | SKIP 0 | PASS 37 ] Error: ! Test failures. Execution halted Flavor: r-oldrel-windows-x86_64

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.