resource_delete {ckanr} | R Documentation |
Delete a resource.
Description
Delete a resource.
Usage
resource_delete(id, url = get_default_url(), key = get_default_key(), ...)
Arguments
id |
(character) Resource identifier. |
url |
Base url to use. Default: https://data.ontario.ca
See also |
key |
A privileged CKAN API key, Default: your key set with
|
... |
Curl args passed on to crul::verb-POST (optional) |
Examples
## Not run:
# Setup
ckanr_setup(url = "https://demo.ckan.org/", key = Sys.getenv("CKAN_DEMO_KEY"))
# create a package
(res <- package_create("yellow9"))
# then create a resource
file <- system.file("examples", "actinidiaceae.csv", package = "ckanr")
(xx <- resource_create(res,
description = "my resource",
name = "bears",
upload = file,
rcurl = "http://google.com"
))
# delete the resource
resource_delete(xx)
## End(Not run)
[Package ckanr version 0.7.0 Index]