Last updated on 2026-02-04 04:50:45 CET.
| Package | ERROR | NOTE | OK |
|---|---|---|---|
| faersquarterlydata | 3 | 10 | |
| long2lstmarray | 13 | ||
| qualitycontrol | 13 |
Current CRAN status: ERROR: 3, OK: 10
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
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 1.2.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [39s/44s]
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
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
Current CRAN status: OK: 13
Current CRAN status: NOTE: 13
Version: 0.1.0
Check: Rd files
Result: NOTE
checkRd: (-1) als_data.Rd:10: Lost braces in \itemize; meant \describe ?
checkRd: (-1) als_data.Rd:11: Lost braces in \itemize; meant \describe ?
checkRd: (-1) als_data.Rd:12: Lost braces in \itemize; meant \describe ?
checkRd: (-1) als_data.Rd:13: Lost braces in \itemize; meant \describe ?
checkRd: (-1) als_data.Rd:14: Lost braces in \itemize; meant \describe ?
checkRd: (-1) als_data.Rd:15: Lost braces in \itemize; meant \describe ?
checkRd: (-1) als_data.Rd:16: Lost braces in \itemize; meant \describe ?
checkRd: (-1) als_data.Rd:17: Lost braces in \itemize; meant \describe ?
checkRd: (-1) als_data.Rd:18: Lost braces in \itemize; meant \describe ?
checkRd: (-1) als_data.Rd:19: Lost braces in \itemize; meant \describe ?
checkRd: (-1) als_data.Rd:20: Lost braces in \itemize; meant \describe ?
checkRd: (-1) als_data.Rd:21: Lost braces in \itemize; meant \describe ?
checkRd: (-1) als_data.Rd:22: Lost braces in \itemize; meant \describe ?
checkRd: (-1) als_data.Rd:23: Lost braces in \itemize; meant \describe ?
checkRd: (-1) als_data.Rd:24: Lost braces in \itemize; meant \describe ?
checkRd: (-1) als_data.Rd:25: Lost braces in \itemize; meant \describe ?
checkRd: (-1) als_data.Rd:26: Lost braces in \itemize; meant \describe ?
checkRd: (-1) als_data.Rd:27: Lost braces in \itemize; meant \describe ?
checkRd: (-1) als_data_qc_mapping.Rd:11: Lost braces in \itemize; meant \describe ?
checkRd: (-1) als_data_qc_mapping.Rd:12: Lost braces in \itemize; meant \describe ?
checkRd: (-1) als_data_qc_mapping.Rd:13: Lost braces in \itemize; meant \describe ?
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64, r-patched-linux-x86_64, r-release-linux-x86_64, r-release-macos-arm64, r-release-macos-x86_64, r-release-windows-x86_64, r-oldrel-macos-arm64, r-oldrel-macos-x86_64, r-oldrel-windows-x86_64