Skip to content

Commit

Permalink
use interval combine_faers
Browse files Browse the repository at this point in the history
  • Loading branch information
Yunuuuu committed Nov 8, 2023
1 parent 04adde4 commit 2f81ec8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion R/faers.R
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,12 @@ faers <- function(years, quarters, format = NULL, dir = getwd(), compress_dir =
list(path = faers_files, year = yq$years, quarter = yq$quarters),
MoreArgs = list(format = format, compress_dir = compress_dir)
)
faers_combine(out)
l <- length(out)
if (l == 1L) {
return(out[[1L]])
}
cli::cli_alert("Combining all {l} {.cls FAERS} Data{?s}")
combine_faers(out)
}

recycle_scalar <- function(..., length = NULL, args = NULL) {
Expand Down

0 comments on commit 2f81ec8

Please sign in to comment.