# NOT RUN {
ckanr_setup(url = "https://demo.ckan.org/", key = getOption("ckan_demo_key"))
(pkgs <- package_search())
pkgs$results
pkgs$results[[3]]
# create item class from only an item ID
as.ckan_package("0699f475-6978-473a-8448-42585074b6f1")
# gives back itself
(x <- as.ckan_package("0699f475-6978-473a-8448-42585074b6f1"))
as.ckan_package(x)
# }
Run the code above in your browser using DataCamp Workspace