if (FALSE) {
ckanr_setup(url = "https://demo.ckan.org/",
key = getOption("ckan_demo_key"))
# create a package
(res <- package_create("foobarrrrr", author="Jane Doe"))
# then create a resource
file <- system.file("examples", "actinidiaceae.csv", package = "ckanr")
(xx <- resource_create(package_id = res$id,
description = "my resource",
name = "bears",
upload = file,
rcurl = "http://google.com"
))
ds_create(resource_id = xx$id, records = iris, force = TRUE)
resource_show(xx$id)
}
Run the code above in your browser using DataLab