api_write {request} | R Documentation |
Write helper
api_write(.data, file, overwrite = FALSE, ...)
.data |
Result of a call to |
file |
(character) Full file path to write to |
overwrite |
(logical) Will only overwrite existing path if |
... |
ignored for now |
## 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)