get_resource: Download a resource into your R session
Description
Download a resource from the portal directly into your R session. CSV, XLS, XLSX, XML, JSON, SHP, ZIP, and GeoJSON resources are supported.
Usage
get_resource(resource)
Value
In most cases, the resource is returned as a tibble or list of tibbles.
If it is a spatial resource (i.e. SHP or GeoJSON), it is returned as an sf object.
Arguments
resource
A way to identify the resource. Either a resource ID (passed as a character vector directly) or a single resource resulting from list_package_resources.