Description Usage Arguments Value Examples
Create a DKAN node
1 2 | create_node(url = get_url(), body, credentials = list(cookie =
dkanr::get_cookie(), token = dkanr::get_token()), as = "json", ...)
|
url |
character: The DKAN site URL |
body |
json: A JSON object to be passed to the body of the request |
credentials |
Optional list parameter. Default values are Cookie and Token generated by dkan_setup() |
as |
character: Output format. Options are: 'json' or 'list' |
... |
Other optional parameters passed to the underlying GET request |
dkan_node object
1 2 3 4 | ## Not run:
create_node(url = "http://demo.getdkan.com", body = {"title": "TEST DATASET"})
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.