- using R version 4.5.2 Patched (2026-01-31 r89374)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-14 (Debian 14.3.0-10) 14.3.0
GNU Fortran (Debian 14.3.0-10) 14.3.0
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
- checking for file ‘faersquarterlydata/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘faersquarterlydata’ version ‘1.2.0’
- package encoding: UTF-8
- checking package namespace information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘faersquarterlydata’ can be installed ... OK
See the install log for details.
- checking package directory ... OK
- checking for future file timestamps ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [1s/1s] OK
- checking whether the package can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the package can be unloaded cleanly ... [1s/1s] OK
- checking whether the namespace can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the namespace can be unloaded cleanly ... [1s/1s] OK
- checking loading without being on the library search path ... [1s/1s] OK
- checking use of S3 registration ... OK
- checking dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [8s/11s] OK
- checking Rd files ... [0s/1s] OK
- checking Rd metadata ... OK
- checking Rd line widths ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking contents of ‘data’ directory ... OK
- checking data for non-ASCII characters ... [1s/1s] OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking examples ... [11s/13s] ERROR
Running examples in ‘faersquarterlydata-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: unify_tabular_ascii
> ### Title: Unify the list to a tabular format
> ### Aliases: unify_tabular_ascii
>
> ### ** Examples
>
> unify_tabular_ascii(ascii_list = als_faers_data)
Error in `summarise()`:
ℹ In argument: `indi_pt_ps = sort(unique(indi_pt))`.
ℹ In group 79: `primaryid = 129433992`, `caseid = 12943399`.
Caused by error:
! `indi_pt_ps` must be size 1, not 0.
ℹ To return more or less than 1 row per group, use `reframe()`.
Backtrace:
▆
1. ├─faersquarterlydata::unify_tabular_ascii(ascii_list = als_faers_data)
2. │ └─... %>% relocate(age_YR, .after = "age")
3. ├─dplyr::relocate(., age_YR, .after = "age")
4. ├─dplyr::mutate(...)
5. ├─dplyr::left_join(...)
6. ├─dplyr:::left_join.data.frame(...)
7. │ └─dplyr::auto_copy(x, y, copy = copy)
8. │ ├─dplyr::same_src(x, y)
9. │ └─dplyr:::same_src.data.frame(x, y)
10. │ └─base::is.data.frame(y)
11. ├─... %>% suppressWarnings()
12. ├─base::suppressWarnings(.)
13. │ └─base::withCallingHandlers(...)
14. ├─dplyr::ungroup(.)
15. ├─dplyr::summarise(...)
16. ├─dplyr:::summarise.grouped_df(...)
17. │ └─dplyr:::summarise_cols(.data, dplyr_quosures(...), by, "summarise")
18. │ └─base::withCallingHandlers(...)
19. ├─dplyr:::dplyr_internal_error(...)
20. │ └─rlang::abort(class = c(class, "dplyr:::internal_error"), dplyr_error_data = data)
21. │ └─rlang:::signal_abort(cnd, .file)
22. │ └─base::signalCondition(cnd)
23. └─dplyr (local) `<fn>`(`<dpl:::__>`)
24. └─dplyr (local) handler(cnd)
25. └─rlang::abort(message, class = error_class, parent = parent, call = error_call)
Execution halted
Examples with CPU (user + system) or elapsed time > 5s
user system elapsed
summary_faersdata 4.231 0.089 5.446
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [53s/71s] ERROR
Running ‘testthat.R’ [53s/70s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/tests.html
> # * https://testthat.r-lib.org/reference/test_package.html#special-files
>
> library(testthat)
> library(faersquarterlydata)
>
> test_check("faersquarterlydata")
Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2
Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2
binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8
saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata
binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8
saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata
binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8
saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata
binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8
saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata
binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8
saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata
binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8
saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata
binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8
saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata
binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8
saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata
Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2
Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2
binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8
saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata
binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8
saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata
binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8
saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata
binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8
saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata
binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8
saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata
binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8
saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata
binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8
saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata
binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8
saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata
Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2
Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2
binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8
saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata
binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8
saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata
binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8
saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata
binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8
saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata
binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8
saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata
binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8
saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata
binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8
saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata
binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8
saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata
Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2
Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2
binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8
saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata
binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8
saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata
binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8
saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata
binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8
saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata
binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8
saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata
binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8
saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata
binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8
saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata
binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8
saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata
Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2
Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2
binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8
saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata
binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8
saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata
binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8
saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata
binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8
saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata
binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8
saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata
binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8
saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata
binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8
saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata
binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8
saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata
Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2
Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2
binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8
saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata
binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8
saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata
binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8
saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata
binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8
saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata
binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8
saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata
binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8
saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata
binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8
saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata
binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8
saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata
Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2
Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2
binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8
saving resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt into cache: resources/cache/cache_test.rdata
binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8
saving resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt into cache: resources/cache/cache_test.rdata
binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8
saving resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt into cache: resources/cache/cache_test.rdata
binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8
saving resources/test_zip_ex_dir/ASCII/INDI22Q4.txt into cache: resources/cache/cache_test.rdata
binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8
saving resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt into cache: resources/cache/cache_test.rdata
binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8
saving resources/test_zip_ex_dir/ASCII/REAC22Q4.txt into cache: resources/cache/cache_test.rdata
binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8
saving resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt into cache: resources/cache/cache_test.rdata
binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8
saving resources/test_zip_ex_dir/ASCII/THER22Q4.txt into cache: resources/cache/cache_test.rdata
Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2
Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2
binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8
binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8
binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8
binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8
binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8
binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8
binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8
binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8
Saving _problems/test-read_func_ascii-51.R
retrieving resources/1_ADR22Q1_example.xml
retrieving resources/1_ADR22Q1_example.xml
retrieving resources/1_ADR22Q1_example.xml
retrieving resources/1_ADR22Q1_example.xml
retrieving resources/1_ADR22Q1_example.xml
1 out of 1
retrieving resources/1_ADR22Q1_example.xml
1 out of 1
retrieving resources/1_ADR22Q1_example.xml
saving resources/1_ADR22Q1_example.xml into cache: resources/cache/cache_xml.Rdata
1 out of 1
retrieving resources/1_ADR22Q1_example.xml
Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2
Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2
binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8
binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8
binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8
binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8
binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8
binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8
binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8
binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8
Saving _problems/test-ror-23.R
Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 1 out of 2
Retrieving drug/indication information: binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 2 out of 2
binding resources/test_zip_ex_dir/ASCII/DEMO22Q4.txt 1 out of 8
binding resources/test_zip_ex_dir/ASCII/DEMO22Q4_test.txt 2 out of 8
binding resources/test_zip_ex_dir/ASCII/DRUG22Q4.txt 3 out of 8
binding resources/test_zip_ex_dir/ASCII/INDI22Q4.txt 4 out of 8
binding resources/test_zip_ex_dir/ASCII/OUTC22Q4.txt 5 out of 8
binding resources/test_zip_ex_dir/ASCII/REAC22Q4.txt 6 out of 8
binding resources/test_zip_ex_dir/ASCII/RPSR22Q4.txt 7 out of 8
binding resources/test_zip_ex_dir/ASCII/THER22Q4.txt 8 out of 8
Saving _problems/test-summary-4.R
unzipping resources/xml_files/faers_xml_2012q4.zip
unzipping resources/ascii_files//faers_ascii_2022Q4.zip
[ FAIL 3 | WARN 36 | SKIP 0 | PASS 37 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-read_func_ascii.R:51:3'): unify_tabular_ascii ──────────────────
Error in `summarise(., indi_pt_ps = sort(unique(indi_pt)), drugname_ps = paste(sort(unique(drugname)), collapse = " + "), start_dt_ps = unique(start_dt), .groups = "keep")`: i In argument: `indi_pt_ps = sort(unique(indi_pt))`.
i In group 1: `primaryid = 100115733`, `caseid = 10011573`.
Caused by error:
! `indi_pt_ps` must be size 1, not 0.
i To return more or less than 1 row per group, use `reframe()`.
Backtrace:
▆
1. ├─faersquarterlydata::unify_tabular_ascii(ascii_list = faers_ascii_data) at test-read_func_ascii.R:51:3
2. │ └─... %>% relocate(age_YR, .after = "age")
3. ├─dplyr::relocate(., age_YR, .after = "age")
4. ├─dplyr::mutate(...)
5. ├─dplyr::left_join(...)
6. ├─dplyr:::left_join.data.frame(...)
7. │ └─dplyr::auto_copy(x, y, copy = copy)
8. │ ├─dplyr::same_src(x, y)
9. │ └─dplyr:::same_src.data.frame(x, y)
10. │ └─base::is.data.frame(y)
11. ├─... %>% suppressWarnings()
12. ├─base::suppressWarnings(.)
13. │ └─base::withCallingHandlers(...)
14. ├─dplyr::ungroup(.)
15. ├─dplyr::summarise(...)
16. ├─dplyr:::summarise.grouped_df(...)
17. │ └─dplyr:::summarise_cols(.data, dplyr_quosures(...), by, "summarise")
18. │ └─base::withCallingHandlers(...)
19. ├─dplyr:::dplyr_internal_error(...)
20. │ └─rlang::abort(class = c(class, "dplyr:::internal_error"), dplyr_error_data = data)
21. │ └─rlang:::signal_abort(cnd, .file)
22. │ └─base::signalCondition(cnd)
23. └─dplyr (local) `<fn>`(`<dpl:::__>`)
24. └─dplyr (local) handler(cnd)
25. └─rlang::abort(message, class = error_class, parent = parent, call = error_call)
── Error ('test-ror.R:23:3'): estimate_ror_bygroup ─────────────────────────────
Error in `summarise(., indi_pt_ps = sort(unique(indi_pt)), drugname_ps = paste(sort(unique(drugname)), collapse = " + "), start_dt_ps = unique(start_dt), .groups = "keep")`: i In argument: `indi_pt_ps = sort(unique(indi_pt))`.
i In group 1: `primaryid = 100115733`, `caseid = 10011573`.
Caused by error:
! `indi_pt_ps` must be size 1, not 0.
i To return more or less than 1 row per group, use `reframe()`.
Backtrace:
▆
1. ├─faersquarterlydata::unify_tabular_ascii(ascii_list = faers_ascii_data) at test-ror.R:23:3
2. │ └─... %>% relocate(age_YR, .after = "age")
3. ├─dplyr::relocate(., age_YR, .after = "age")
4. ├─dplyr::mutate(...)
5. ├─dplyr::left_join(...)
6. ├─dplyr:::left_join.data.frame(...)
7. │ └─dplyr::auto_copy(x, y, copy = copy)
8. │ ├─dplyr::same_src(x, y)
9. │ └─dplyr:::same_src.data.frame(x, y)
10. │ └─base::is.data.frame(y)
11. ├─... %>% suppressWarnings()
12. ├─base::suppressWarnings(.)
13. │ └─base::withCallingHandlers(...)
14. ├─dplyr::ungroup(.)
15. ├─dplyr::summarise(...)
16. ├─dplyr:::summarise.grouped_df(...)
17. │ └─dplyr:::summarise_cols(.data, dplyr_quosures(...), by, "summarise")
18. │ └─base::withCallingHandlers(...)
19. ├─dplyr:::dplyr_internal_error(...)
20. │ └─rlang::abort(class = c(class, "dplyr:::internal_error"), dplyr_error_data = data)
21. │ └─rlang:::signal_abort(cnd, .file)
22. │ └─base::signalCondition(cnd)
23. └─dplyr (local) `<fn>`(`<dpl:::__>`)
24. └─dplyr (local) handler(cnd)
25. └─rlang::abort(message, class = error_class, parent = parent, call = error_call)
── Error ('test-summary.R:4:3'): summary_faersdata ─────────────────────────────
Error in `summarise(., indi_pt_ps = sort(unique(indi_pt)), drugname_ps = paste(sort(unique(drugname)), collapse = " + "), start_dt_ps = unique(start_dt), .groups = "keep")`: i In argument: `indi_pt_ps = sort(unique(indi_pt))`.
i In group 1: `primaryid = 100115733`, `caseid = 10011573`.
Caused by error:
! `indi_pt_ps` must be size 1, not 0.
i To return more or less than 1 row per group, use `reframe()`.
Backtrace:
▆
1. ├─faersquarterlydata::unify_tabular_ascii(ascii_list = faers_ascii_data) at test-summary.R:4:3
2. │ └─... %>% relocate(age_YR, .after = "age")
3. ├─dplyr::relocate(., age_YR, .after = "age")
4. ├─dplyr::mutate(...)
5. ├─dplyr::left_join(...)
6. ├─dplyr:::left_join.data.frame(...)
7. │ └─dplyr::auto_copy(x, y, copy = copy)
8. │ ├─dplyr::same_src(x, y)
9. │ └─dplyr:::same_src.data.frame(x, y)
10. │ └─base::is.data.frame(y)
11. ├─... %>% suppressWarnings()
12. ├─base::suppressWarnings(.)
13. │ └─base::withCallingHandlers(...)
14. ├─dplyr::ungroup(.)
15. ├─dplyr::summarise(...)
16. ├─dplyr:::summarise.grouped_df(...)
17. │ └─dplyr:::summarise_cols(.data, dplyr_quosures(...), by, "summarise")
18. │ └─base::withCallingHandlers(...)
19. ├─dplyr:::dplyr_internal_error(...)
20. │ └─rlang::abort(class = c(class, "dplyr:::internal_error"), dplyr_error_data = data)
21. │ └─rlang:::signal_abort(cnd, .file)
22. │ └─base::signalCondition(cnd)
23. └─dplyr (local) `<fn>`(`<dpl:::__>`)
24. └─dplyr (local) handler(cnd)
25. └─rlang::abort(message, class = error_class, parent = parent, call = error_call)
[ FAIL 3 | WARN 36 | SKIP 0 | PASS 37 ]
Error:
! Test failures.
Execution halted
- checking PDF version of manual ... [4s/6s] OK
- checking HTML version of manual ... [0s/1s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 2 ERRORs