download_wastd_sites: Download Areas of type Site from WAStD

View source: R/download_wastd_sites.R

download_wastd_sitesR Documentation

Download Areas of type Site from WAStD

Description

Download Areas of type Site from WAStD

Usage

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.

See Also

Other api: build_auth(), download_minimal_wastd_turtledata(), download_wastd_turtledata(), download_wastd_users(), export_wastd_turtledata(), filter_wastd_turtledata_area(), filter_wastd_turtledata_seasons(), filter_wastd_turtledata(), handle_http_status(), wastd_GET(), wastd_POST(), wastd_bulk_post(), wastd_chunk_post(), wastd_create_update_skip(), wastd_parse(), wastd_post_one()


parksandwildlife/wastdr documentation built on Nov. 17, 2022, 4:52 p.m.