make_request: Make a request

Description Usage Arguments Value

View source: R/make_request.R

Description

Right now this works with json files

Usage

1
2
3
4
5
6
7
8
make_request(
  url,
  path = NULL,
  args = list(),
  parse_json = TRUE,
  img = FALSE,
  ...
)

Arguments

url

character, the base url

path

character, anything after the url

args

list, named query list

parse_json

logical, probably TRUE

img

logical, defaults to FALSE. Needs to be TRUE if downloading raster.

...

curl options

Value

If parse_json = TRUE returns a list, else returns unparsed text.


mps9506/aarapir documentation built on May 12, 2020, 1:07 a.m.