R/rl_version.R

Defines functions rl_version

Documented in rl_version

#' Get the Red List API version
#'
#' @export
#' @param ... Curl options passed to [crul::verb-GET]
#' @return API version as character string
#' @examples \dontrun{
#' rl_version()
#' }
rl_version <- function(...) {
  rl_parse(rr_GET("version", NULL, ...), TRUE)$version
}

Try the rredlist package in your browser

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

rredlist documentation built on Nov. 12, 2022, 1:17 a.m.