rl_regions: Get regions

View source: R/rl_regions.R

rl_regionsR Documentation

Get regions

Description

Get regions

Usage

rl_regions(key = NULL, parse = TRUE, ...)

rl_regions_(key = NULL, ...)

Arguments

key

A IUCN API token. See rl_use_iucn.

parse

(logical) Whether to parse to list (FALSE) or data.frame (TRUE). Default: TRUE

...

Curl options passed to HttpClient

Value

A list, with the data in the result slot, unless using a function with a trailing underscore, in which case json as character string is returned.

References

API docs at https://apiv3.iucnredlist.org/api/v3/docs

Examples

## Not run: 
rl_regions()
rl_regions(parse = FALSE)
rl_regions_()

## End(Not run)

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