Skip to contents

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.

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.

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