{"id":13400558,"url":"https://github.com/ropensci/ckanr","last_synced_at":"2026-03-12T08:09:06.166Z","repository":{"id":23186230,"uuid":"26542491","full_name":"ropensci/ckanr","owner":"ropensci","description":"R client for the CKAN API","archived":false,"fork":false,"pushed_at":"2024-05-29T06:57:20.000Z","size":897,"stargazers_count":99,"open_issues_count":32,"forks_count":38,"subscribers_count":13,"default_branch":"master","last_synced_at":"2024-07-31T19:25:23.504Z","etag":null,"topics":["api-wrapper","ckan","ckan-api","open-data","r","r-package","rstats"],"latest_commit_sha":null,"homepage":"https://docs.ropensci.org/ckanr","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ropensci.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":"codemeta.json"}},"created_at":"2014-11-12T15:32:54.000Z","updated_at":"2024-04-30T08:19:41.000Z","dependencies_parsed_at":"2023-02-10T12:01:13.049Z","dependency_job_id":"a69de2db-35a5-4c4f-ae48-a3b96789a73e","html_url":"https://github.com/ropensci/ckanr","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Fckanr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Fckanr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Fckanr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Fckanr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ropensci","download_url":"https://codeload.github.com/ropensci/ckanr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221440197,"owners_count":16821600,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-wrapper","ckan","ckan-api","open-data","r","r-package","rstats"],"created_at":"2024-07-30T19:00:53.299Z","updated_at":"2025-12-18T03:05:28.862Z","avatar_url":"https://github.com/ropensci.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"ckanr\n=====\n\n```{r echo=FALSE}\nknitr::opts_chunk$set(\n  comment = \"#\u003e\",\n  collapse = TRUE,\n  warning = FALSE,\n  message = FALSE\n)\n```\n\n[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)\n[![R-check](https://github.com/ropensci/ckanr/workflows/R-check/badge.svg)](https://github.com/ropensci/ckanr/actions/)\n[![rstudio mirror downloads](https://cranlogs.r-pkg.org/badges/ckanr?color=FAB657)](https://github.com/r-hub/cranlogs.app)\n[![cran version](https://www.r-pkg.org/badges/version/ckanr)](https://cran.r-project.org/package=ckanr)\n[![Coverage](https://img.shields.io/codecov/c/github/ropensci/ckanr/master)](https://app.codecov.io/gh/ropensci/ckanr)\n\n\n`ckanr` is an R client for the CKAN API.\n\n## Description\n\nCKAN 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.).\n\n`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.\n\nGet started: \u003chttps://docs.ropensci.org/ckanr/\u003e\n\n## Installation\n\nStable CRAN version\n\n```{r eval=FALSE}\ninstall.packages(\"ckanr\")\n```\n\nDevelopment version\n\n```{r eval=FALSE}\ninstall.packages(\"remotes\")\nremotes::install_github(\"ropensci/ckanr\")\n```\n\n```{r}\nlibrary('ckanr')\n```\n\nNote: the default base CKAN URL is set to \u003chttps://data.ontario.ca/\u003e\nFunctions requiring write permissions in CKAN additionally require a privileged\nCKAN API key.\nYou can change this using `ckanr_setup()`, or change the URL using the `url`\nparameter in each function call.\nTo set one or both, run:\n\n```{r}\nckanr_setup() # restores default CKAN url to https://data.ontario.ca/\nckanr_setup(url = \"https://data.ontario.ca/\")\nckanr_setup(url = \"https://data.ontario.ca/\", key = \"my-ckan-api-key\")\n```\n\n## ckanr package API\n\nThere 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:\n\n+ Packages (aka packages) - `package_*()` - `ckan_package`\n+ Resources - `resource_*()` - `ckan_resource`\n+ Related - `related_*()` - `ckan_related`\n+ Users - `user_*()` - `ckan_user`\n+ Groups - `group_*()` - `ckan_group`\n+ Tags - `tag_*()` - `ckan_tag`\n+ Organizations  - `organization_*()` - `ckan_organization`\n+ Groups - `group_*()` - `ckan_group`\n+ Users - `user_*()` - `ckan_user`\n+ Related items - `related_*()` - `ckan_related`\n\nThe S3 class objects all look very similar; for example:\n\n```r\n\u003cCKAN Resource\u003e 8abc92ad-7379-4fb8-bba0-549f38a26ddb\n  Name: Data From Digital Portal\n  Description:\n  Creator/Modified: 2015-08-18T19:20:59.732601 / 2015-08-18T19:20:59.657943\n  Size:\n  Format: CSV\n```\n\nAll 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.\n\n\u003e note: Many examples are given in brief for readme brevity\n\n\n## Contributors\n\n(alphabetical)\n\n* Florian Mayer\n* Francisco Alves\n* Imanuel Costigan\n* Scott Chamberlain\n* Sharla Gelfand\n* Wush Wu\n\n## Meta\n\n* Please [report any issues or bugs](https://github.com/ropensci/ckanr/issues).\n* License: MIT\n* Get citation information for `ckanr` in R doing `citation(package = 'ckanr')`\n* Please note that this package is released with a [Contributor Code of Conduct](https://ropensci.org/code-of-conduct/). By contributing to this project, you agree to abide by its terms.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fropensci%2Fckanr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fropensci%2Fckanr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fropensci%2Fckanr/lists"}