Download Areas of type Site from WAStD

download_wastd_sites(
  api_url = wastdr::get_wastdr_api_url(),
  api_token = wastdr::get_wastdr_api_token(),
  verbose = wastdr::get_wastdr_verbose(),
  save = NULL,
  compress = "xz"
)

Arguments

api_url

(character) The WAStD API URL, default get_wastdr_api_url, see wastdr_setup

api_token

(character) The WAStD API token, default get_wastdr_api_token, see wastdr_setup

verbose

Whether to show debug messages. Default: wastdr::get_wastdr_verbose()

save

If supplied, the filepath to save the data object to.

compress

The saveRDS compression parameter, default: "xz". Set to FALSE for faster writes and reads but larger filesize.

Value

A list

  • downloaded_on A timestamp of the download

  • localities A sf object of WAStD Areas of type Locality

  • sites An sf object of WAStD Areas of type Sites joined to Localities.