Download an HDX resource into a specific folder

download_resource(
  resource,
  folder = NULL,
  filename = NULL,
  quiet = FALSE,
  force = FALSE,
  ...
)

Arguments

resource

Resource, an HDX resource

folder

character, path of the directory where you will store the data

filename

(character), name of the file you will download

quiet

(logical), no progress bar from download (default = FALSE)

force

(logical) force download (default = FALSE)

...

extra paramaters

Value

Resource

Examples

if (FALSE) { #Setting the config to use HDX default server res <- read_resource("98aa1742-b5d3-40c3-94c6-01e31ded6e84") download_resource(res, folder = "/tmp") }