# NOT RUN {
# Setup
ckanr_setup(url = "https://demo.ckan.org/", key = getOption("ckan_demo_key"))
# create a package
(res <- package_create("purposeful55"))
# show package
## From the output of package_create
package_show(res)
## Or, from the ID
package_show(res$id)
# get data back in different formats
package_show(res$id, as = 'json')
package_show(res$id, as = 'table')
# use default schema or not
package_show(res$id, TRUE)
# }
Run the code above in your browser using DataLab