api_write function

Write helper

Write helper

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

## 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)
  • Maintainer: Scott Chamberlain
  • License: MIT + file LICENSE
  • Last published: 2016-01-03