Last updated on 2026-02-03 19:51:22 CET.
| Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
|---|---|---|---|---|---|---|
| r-devel-linux-x86_64-debian-clang | 1.2.0 | 5.51 | 107.73 | 113.24 | OK | |
| r-devel-linux-x86_64-debian-gcc | 1.2.0 | 3.34 | 81.77 | 85.11 | OK | |
| 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 | 8.00 | 111.00 | 119.00 | OK | |
| r-patched-linux-x86_64 | 1.2.0 | 5.80 | 102.66 | 108.46 | OK | |
| r-release-linux-x86_64 | 1.2.0 | 5.79 | 100.93 | 106.72 | OK | |
| 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 | OK |
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
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