dw_connect: Connect to a dataset like it's a database.

Description Usage Arguments Value Note Examples

View source: R/connection.R

Description

Connect to a dataset like it's a database.

Usage

1
dw_connect(dataset)

Arguments

dataset

The name of a data.world dataset.

Value

A "handle" in the form of Data.WorldConnection object.

Note

Even though it doesn't make an API call, this function will throw an error if your data.world API token has not been configured. See configure. This ensures that any subsequent queries sent over this connection will work.

Examples

1
2
3
4
5
## Not run: 
conn <- dw_connect('johndoe/petstore')
dbGetQuery(conn, "SELECT * FROM pets WHERE species = 'dog'")

## End(Not run)

carljv/dwDBI documentation built on May 4, 2019, 7:36 a.m.