Skip to contents

ckan_resource_view class helpers

Usage

as.ckan_resource_view(x, ...)

is.ckan_resource_view(x)

Arguments

x

One of character, list, or ckan_resource_view object

...

Extra arguments. If x is an identifier, the function passes them to resource_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]])
} # }