# NOT RUN {
# Setup
ckanr_setup(url = "https://demo.ckan.org/", key = getOption("ckan_demo_key"))
# create a package
(res <- package_create("dolphins"))
# list package revisions
package_revision_list(res$id)
# Make change to the package
x <- list(title = "dolphins and things")
package_patch(x, id = res$id)
# list package revisions
package_revision_list(res$id)
# Output different formats
package_revision_list(res$id, as = "table")
package_revision_list(res$id, as = "json")
# }
Run the code above in your browser using DataLab