as.ckan_tag: ckan_tag class helpers

View source: R/as-ckan_tag.R

as.ckan_tagR Documentation

ckan_tag class helpers

Description

ckan_tag class helpers

Usage

as.ckan_tag(x, ...)

is.ckan_tag(x)

Arguments

x

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

...

Further args passed on to tag_show() if character given

Examples

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

(tags <- tag_search(query = 'ta'))
tags[[3]]

# create item class from only an item ID
as.ckan_tag(tags[[3]]$id)

# gives back itself
(x <- as.ckan_tag(tags[[3]]$id))
as.ckan_tag(x)

## End(Not run)

ropensci/ckanr documentation built on March 25, 2023, 12:01 p.m.