as.ckan_related {ckanr}R Documentation

ckan_related class helpers

Description

ckan_related class helpers

Usage

as.ckan_related(x, ...)

is.ckan_related(x)

Arguments

x

Variety of things, character, list, or ckan_related class object

...

Further args passed on to related_show() if character given

Examples

## Not run: 
ckanr_setup(url = "https://demo.ckan.org/",
key = getOption("ckan_demo_key"))

(x <- package_create("foobbbbbarrrrr") %>%
   related_create(title = "my resource",
                  type = "visualization"))

# create item class from only an item ID
as.ckan_related(x$id)

# gives back itself
(x <- as.ckan_related(x$id))
as.ckan_related(x)

## End(Not run)

[Package ckanr version 0.6.0 Index]