ckanr is a client for the CKAN API. It wraps all APIs for reading and writing data. If you have problems, or have use cases that the package does not cover yet, get in touch (https://github.com/ropensci/ckanr/issues)
CKAN API
Documentation for the CKAN API is at https://docs.ckan.org/en/2.12/api/index.html. The package follows the latest version of the API.
ckanr package API
The functions can be grouped into those for setup, packages, resources, tags, organizations, groups, and users.
Setup - The main one is
ckanr_setup()- and many related functions, e.g.,get_default_key()Packages - Create a package with
package_create(), and see other functions starting withpackage_*Resources - Create a package with
resource_create(), and see other functions starting withresource_*Tags - List tags with
tag_list(), and see other functions starting withtag_*Organizations - List organizations with
organization_list(), show a specific organization withorganization_show(), and create withorganization_create()Groups - List groups with
group_list(), and see other functions starting withgroup_*Users - List users with
user_list(), and see other functions starting withuser_*Related items - See functions starting with
related_*
Datastore
The package supports the Datastore extension (https://docs.ckan.org/en/2.12/maintaining/datastore.html). It provides these functions:
Fetch
Data comes back in a wide range of formats.
The package provides a function to help you fetch metadata.
The function also fetches the actual data for a link to a file
on a CKAN instance.
If you know what you are doing, you can use your preferred tool for the job.
For example, you like read.csv() for reading csv files.
CKAN Instances
A helper function (servers()) lists the current
CKAN instances that the package knows about. It gives the base URLs
that work with this package. The URLs are not necessarily landing pages
of each instance, but the URL can be the landing page and the base API URL.
See also
Useful links:
https://docs.ropensci.org/ckanr/ (website) https://github.com/ropensci/ckanr (devel)
Report bugs at https://github.com/ropensci/ckanr/issues
Author
Scott Chamberlain myrmecocystus@gmail.com
Florian Mayer florian.wendelin.mayer@gmail.com
Wush Wu
Imanuel Costigan i.costigan@me.com
Sharla Gelfand
Francisco Alves fjunior.alves.oliveira@gmail.com
