View source: R/package_update.R
package_update | R Documentation |
Update a package
package_update(
x,
id,
http_method = "GET",
url = get_default_url(),
key = get_default_key(),
as = "list",
...
)
x |
(list) A list with key-value pairs |
id |
(character) Package identifier |
http_method |
(character) which HTTP method (verb) to use; one of "GET" or "POST". Default: "GET" |
url |
Base url to use. Default: https://data.ontario.ca/ See
also |
key |
A privileged CKAN API key, Default: your key set with
|
as |
(character) One of list (default), table, or json. Parsing with
table option uses |
... |
Curl args passed on to |
## Not run:
# Setup
ckanr_setup(url = "https://demo.ckan.org/", key = getOption("ckan_demo_key"))
# Create a package
(pkg <- package_create("hello-world11", author="Jane Doe"))
# Next show the package to see the fields
(res <- package_show(pkg$id))
## update just chosen things
# Make some changes
x <- list(maintainer_email = "heythere2@things.com")
# Then update the packge
package_update(x, pkg$id)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.