Skip to content

Instantly share code, notes, and snippets.

@bubbobne
Created December 20, 2016 21:11
Show Gist options
  • Save bubbobne/fb9377ba53c156bcc22cea8d5e297872 to your computer and use it in GitHub Desktop.
Save bubbobne/fb9377ba53c156bcc22cea8d5e297872 to your computer and use it in GitHub Desktop.
library('ckanr')
ckanr_setup()
ckanr_setup(url = "http://dati.trentino.it")
#packageTrentoOD = package_list(as = "json")
packagesTrentoOD = package_list(as = "table",
offset = 0,
limit = 100)
summary(packagesTrentoOD)
#metadati del package: Title, Created,Modified, Resources, Tags, Groups
package_show(packagesTrentoOD[1])
raiPackages <- package_search(q = 'RAI', rows = 2, as = 'table')
print(str(raiPackages$results))
#lista utenti
user_list()
# gruppi: Agricoltura, Ambiente, Turismo etc
group_list(as = 'table')[, 1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment