# NOT RUN {
# Setup
ckanr_setup(url = "https://demo.ckan.org", key = getOption("ckan_demo_key"))
# Get a resource
res <- resource_show("b85948b6-f9ea-4392-805e-00511d6cf6c6")
res$description
# Make some changes
x <- list(description = "My newer description")
resource_patch(x, id = res)
# or pass id in directly
# resource_patch(x, id = res$id)
# }
Run the code above in your browser using DataLab