R/rl_regions.R

Defines functions rl_regions_ rl_regions

Documented in rl_regions rl_regions_

#' Get regions
#'
#' @export
#' @template all
#' @template info
#' @examples \dontrun{
#' rl_regions()
#' rl_regions(parse = FALSE)
#' rl_regions_()
#' }
rl_regions <- function(key = NULL, parse = TRUE, ...) {
  assert_is(parse, 'logical')
  rl_parse(rl_regions_(key, ...), parse)
}

#' @export
#' @rdname rl_regions
rl_regions_ <- function(key = NULL, ...) {
  assert_is(key, 'character')
  rr_GET("region/list", key, ...)
}
ropensci/rredlist documentation built on Aug. 3, 2018, 7:13 a.m.