ckan_resource_view class helpers
Arguments
- x
One of character, list, or
ckan_resource_viewobject- ...
Extra arguments. If
xis an identifier, the function passes them toresource_view_show().
Examples
if (FALSE) { # \dontrun{
ckanr_setup(
url = "https://demo.ckan.org/",
key = Sys.getenv("CKAN_DEMO_KEY")
)
res <- package_show("sample-dataset")
views <- resource_view_list(res$resources[[1]]$id)
# Coerce from ID
as.ckan_resource_view(views[[1]]$id)
# Pass through existing objects
as.ckan_resource_view(views[[1]])
} # }
