# NOT RUN {
path <- system.file("examples", "actinidiaceae.csv", package = "ckanr")
ckanr_setup(url = "https://demo.ckan.org/", key = "my-demo-ckan-org-api-key")
ds_create_dataset(package_id='testingagain', name="mydata", path = path)
# Testing: see ?ckanr_setup to set test settings
ckanr_setup(test_url = "http://my-ckan.org/",
test_key = "my-ckan-api-key",
test_did="an-existing-package-id",
test_rid="an-existing-resource-id")
ds_create_dataset(package_id=get_test_pid(), name="mydata",
path=system.file("examples",
"actinidiaceae.csv",
package = "ckanr"),
key = get_test_key(),
url = get_test_url())
# }
Run the code above in your browser using DataCamp Workspace