View source: R/download_resource.R
Download a resource file, extracting the path from 'get_metadata()' output
1 2 3 4 5 6 | download_resource(
resource_nid,
destination = getwd(),
root_url = dkanr::get_url(),
credentials = list(cookie = dkanr::get_cookie(), token = dkanr::get_token())
)
|
resource_nid |
character: Resource NID |
destination |
string: file path to save the file, defaults to current working directory |
root_url |
string: API root URL |
credentials |
list: authentication token and cookie |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.