rest_GET: Get a file

Description Usage Arguments Examples

Description

Get a file

Usage

1
rest_GET(repo, path, branch = "master", ...)

Arguments

repo

(character) Repository name

path

(character) Path to file from root of repo

branch

(character) Git branch. Default: master

...

Further args to GET

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
rest_GET(repo="ropensci/datasets", path="planttraits/morphological.csv")
rest_GET(repo="ropensci/datasets", path="mammals/mammals.csv")
rest_GET(repo="datasets/global-temp", path="data/annual.csv")
rest_GET("datasets/gold-prices", "data/data.csv")
rest_GET("datasets/gdp", "data/gdp.csv")

rest_GET(repo = "sckott/testeasy", path = "mtcars.csv")

## End(Not run)

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