ckan_file class helpers
Arguments
- x
One of character, list, or ckan_file class object
- ...
Extra arguments. If
xis character, the function passes them on tofile_show()
Examples
if (FALSE) { # \dontrun{
ckanr_setup(
url = "https://demo.ckan.org/",
key = getOption("ckan_demo_key")
)
# create item class from only an item ID
as.ckan_file("file-id-here")
# gives back itself
(x <- as.ckan_file(list(id = "file-id-here", name = "file.txt")))
as.ckan_file(x)
} # }
