R/get.R

Defines functions get

#' @importFrom dplyr bind_rows
#' @importFrom purrr map_lgl pmap cross_df reduce keep
#' @importFrom rlang is_null dots_list

get <- function(type, verbose, ...) {
  purrr::keep(rlang::dots_list(...), ~ !rlang::is_null(.x)) %>%
    purrr::cross() %>%
    purrr::map_df(~ request(type = type, query = .x, verbose = verbose))
}

Try the siconfir package in your browser

Any scripts or data that you put into this service are public.

siconfir documentation built on Jan. 15, 2023, 5:09 p.m.