All Projects → ropensci → Ckanr

ropensci / Ckanr

Licence: other
R client for the CKAN API

Programming Languages

r
7636 projects

Projects that are alternatives of or similar to Ckanr

kaggler
🏁 API client for Kaggle
Stars: ✭ 50 (-45.05%)
Mutual labels:  api-wrapper, rstats, r-package
Rcrossref
R client for various CrossRef APIs
Stars: ✭ 137 (+50.55%)
Mutual labels:  api-wrapper, r-package, rstats
Rorcid
A programmatic interface the Orcid.org API
Stars: ✭ 101 (+10.99%)
Mutual labels:  api-wrapper, r-package, rstats
cablecuttr
An R wrapper for CanIStream.It API
Stars: ✭ 17 (-81.32%)
Mutual labels:  api-wrapper, rstats, r-package
rredlist
IUCN Red List API Client
Stars: ✭ 31 (-65.93%)
Mutual labels:  api-wrapper, rstats, r-package
WikidataQueryServiceR
An R package for the Wikidata Query Service API
Stars: ✭ 23 (-74.73%)
Mutual labels:  api-wrapper, rstats, r-package
Taxize
A taxonomic toolbelt for R
Stars: ✭ 209 (+129.67%)
Mutual labels:  api-wrapper, r-package, rstats
worrms
World Register of Marine Species R client
Stars: ✭ 13 (-85.71%)
Mutual labels:  api-wrapper, rstats, r-package
Gistr
Interact with GitHub gists from R
Stars: ✭ 90 (-1.1%)
Mutual labels:  api-wrapper, r-package, rstats
Lawn
⛔ ARCHIVED ⛔ turf.js R client
Stars: ✭ 57 (-37.36%)
Mutual labels:  r-package, rstats
Mixomics
Development repository for the Bioconductor package 'mixOmics '
Stars: ✭ 58 (-36.26%)
Mutual labels:  r-package, rstats
Sysreqs
R package to install system requirements
Stars: ✭ 63 (-30.77%)
Mutual labels:  r-package, rstats
Nodbi
Document DBI connector for R
Stars: ✭ 56 (-38.46%)
Mutual labels:  r-package, rstats
Vcr
Record HTTP calls and replay them
Stars: ✭ 54 (-40.66%)
Mutual labels:  r-package, rstats
Lexisnexistools
📰 Working with newspaper data from 'LexisNexis'
Stars: ✭ 59 (-35.16%)
Mutual labels:  r-package, rstats
Tl
tldr for R!
Stars: ✭ 52 (-42.86%)
Mutual labels:  r-package, rstats
Gsodr
Global Surface Summary of the Day ('GSOD') Weather Data Client for R
Stars: ✭ 72 (-20.88%)
Mutual labels:  r-package, rstats
Refmanager
R package RefManageR
Stars: ✭ 90 (-1.1%)
Mutual labels:  r-package, rstats
Notary
🔏📦 Signing & verification of R packages
Stars: ✭ 48 (-47.25%)
Mutual labels:  r-package, rstats
Feddata
Functions to Automate Downloading Geospatial Data Available from Several Federated Data Sources
Stars: ✭ 70 (-23.08%)
Mutual labels:  r-package, rstats

ckanr

Project Status: Active – The project has reached a stable, usable state and is being actively developed. cran checks R-check rstudio mirror downloads cran version

ckanr is an R client for the CKAN API.

Description

CKAN is an open source set of tools for hosting and providing data on the web. (CKAN users could include non-profits, museums, local city/county governments, etc.).

ckanr allows users to interact with those CKAN websites to create, modify, and manage datasets, as well as search and download pre-existing data, and then to proceed using in R for data analysis (stats/plotting/etc.). It is meant to be as general as possible, allowing you to work with any CKAN instance.

Get started: https://docs.ropensci.org/ckanr/

Installation

Stable CRAN version

install.packages("ckanr")

Development version

install.packages("remotes")
remotes::install_github("ropensci/ckanr")
library('ckanr')

Note: the default base CKAN URL is set to https://data.ontario.ca/ Functions requiring write permissions in CKAN additionally require a privileged CKAN API key. You can change this using ckanr_setup(), or change the URL using the url parameter in each function call. To set one or both, run:

ckanr_setup() # restores default CKAN url to https://data.ontario.ca/
ckanr_setup(url = "https://data.ontario.ca/")
ckanr_setup(url = "https://data.ontario.ca/", key = "my-ckan-api-key")

ckanr package API

There are a suite of CKAN things (package, resource, etc.) that each have a set of functions in this package. The functions for each CKAN thing have an S3 class that is returned from most functions, and can be passed to most other functions (this also facilitates piping). The following is a list of the function groups for certain CKAN things, with the prefix for the functions that work with that thing, and the name of the S3 class:

  • Packages (aka packages) - package_*() - ckan_package
  • Resources - resource_*() - ckan_resource
  • Related - related_*() - ckan_related
  • Users - user_*() - ckan_user
  • Groups - group_*() - ckan_group
  • Tags - tag_*() - ckan_tag
  • Organizations - organization_*() - ckan_organization
  • Groups - group_*() - ckan_group
  • Users - user_*() - ckan_user
  • Related items - related_*() - ckan_related

The S3 class objects all look very similar; for example:

<CKAN Resource> 8abc92ad-7379-4fb8-bba0-549f38a26ddb
  Name: Data From Digital Portal
  Description:
  Creator/Modified: 2015-08-18T19:20:59.732601 / 2015-08-18T19:20:59.657943
  Size:
  Format: CSV

All classes state the type of object, have the ID to the right of the type, then have a varying set of key-value fields deemed important. This printed object is just a summary of an R list, so you can index to specific values (e.g., result$description). If you feel there are important fields left out of these printed summaries, let us know.

note: Many examples are given in brief for readme brevity

Contributors

(alphebetical)

  • Scott Chamberlain
  • Imanuel Costigan
  • Sharla Gelfand
  • Florian Mayer
  • Wush Wu

Meta

  • Please report any issues or bugs.
  • License: MIT
  • Get citation information for ckanr in R doing citation(package = 'ckanr')
  • Please note that this package is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].