Learn R Programming

request (version 0.1.0)

api_write: Write helper

Description

Write helper

Usage

api_write(.data, file, overwrite = FALSE, ...)

Arguments

.data
Result of a call to api
file
(character) Full file path to write to
overwrite
(logical) Will only overwrite existing path if TRUE
...
ignored for now

Examples

Run this code
## Not run: 
# ## write to disk
# ff <- tempfile(fileext = ".json")
# api('https://api.github.com/') %>%
#   api_path(repos, ropensci, rgbif, issues) %>%
#   api_write(ff)
# jsonlite::fromJSON(ff)
# ## End(Not run)

Run the code above in your browser using DataLab