easy_get: Get a file with query parameters

Description Usage Arguments Details Examples

Description

Get a file with query parameters

Usage

1
easy_get(repo, path, branch = "master", curlopts = list(), ...)

Arguments

repo

(character) Repository name

path

(character) Path to file from root of repo

branch

(character) Branch to use, Default: master

curlopts

Curl options passed on to GET

...

Further args to sort or filter

Details

You can sort and filter by column names. Pass in key/value pairs to either sort of filter on.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
rest_GET(repo = "datasets/gdp", path ="data/gdp.csv")
rest_GET("datasets/gdp", "data/gdp.csv", Year = 2000)

rest_GET(repo="ropensci/datasets", "mammals/mammals.csv")
easy_get(repo="ropensci/datasets", path="mammals/mammals.csv")
easy_get("ropensci/datasets", "mammals/mammals.csv", Family="Coryphodontidae")
easy_get("ropensci/datasets", "mammals/mammals.csv", Last_appearance_mya=50)

## End(Not run)

sckott/resteasy documentation built on May 29, 2019, 4:04 p.m.