R/deprecated.R

Defines functions default_query_function

Documented in default_query_function

#' Deprecated functions
#'
#' @description
#' `r lifecycle::badge("deprecated")`
#'
#' These functions have been deprecated in favor of better approaches.
#'
#' * `default_query_function()` was renamed to `rsi_query_api()`. These
#'   functions are identical, and the older name will be removed in a future
#'   release.
#'
#' @name deprecated
#' @keywords internal
#' @export
default_query_function <- function(bbox,
                                   stac_source,
                                   collection,
                                   start_date,
                                   end_date,
                                   limit,
                                   ...) {
  lifecycle::deprecate_warn(
    "0.2.0",
    "default_query_function()",
    "rsi_query_api()"
  )
  rsi_query_api(
    bbox = bbox,
    stac_source = stac_source,
    collection = collection,
    start_date = start_date,
    end_date = end_date,
    limit = limit,
    ...
  )
}

Try the rsi package in your browser

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

rsi documentation built on Oct. 22, 2024, 9:07 a.m.