An open API service indexing awesome lists of open source software.

https://github.com/datadotworld/dwapi-r

R client package for data.world API
https://github.com/datadotworld/dwapi-r

api-client datasets dwstruct-t50-public-projects open-data reference-implementation

Last synced: about 2 months ago
JSON representation

R client package for data.world API

Awesome Lists containing this project

README

        

# dwapi

[![CircleCI](https://circleci.com/gh/datadotworld/dwapi-r.svg?style=svg)](https://circleci.com/gh/datadotworld/dwapi-r)

The `dwapi` R package makes it easy to use [data.world's REST API](https://docs.data.world/documentation/api) in R.
Using the package, users can:

* Create and update datasets, metadata and files
* Query datasets using SQL and SPARQL
* Download files and entire datasets

# Getting Started

To get started, load the library and checkout the `quickstart` vignette.
```R
library(dwapi)
vignette("quickstart", package = "dwapi")
```

Here is a simple example:
```R
intro_dataset <- dwapi::get_dataset(
owner_id = "jonloyens",
dataset_id = "an-intro-to-dataworld-dataset")
```

## Installation

To get the current version from GitHub:
```R
devtools::install_github("datadotworld/dwapi-r", build_vignettes = TRUE, ref = "main")
```

## Configuration

First, users must obtain an API authentication token at: https://data.world/settings/advanced

**IMPORTANT**: For your security, do not include your API authentication token in code that
is intended to be shared with others.

To configure the package, use `dwapi::configure`:
```R
> library(dwapi)
> dwapi::configure(auth_token = "YOUR_TOKEN_GOES_HERE")
```

# Next

Check out the `quickstart` vignette and the package documentation (`?dwapi`).
```R
> vignette("quickstart", package = "dwapi")
> ?dwapi
```