download_resource: download_resource

Description Usage Arguments

View source: R/download_resource.R

Description

Download a resource file, extracting the path from 'get_metadata()' output

Usage

1
2
3
4
5
6
download_resource(
  resource_nid,
  destination = getwd(),
  root_url = dkanr::get_url(),
  credentials = list(cookie = dkanr::get_cookie(), token = dkanr::get_token())
)

Arguments

resource_nid

character: Resource NID

destination

string: file path to save the file, defaults to current working directory

root_url

string: API root URL

credentials

list: authentication token and cookie


tonyfujs/ddhconnect documentation built on June 3, 2020, 10:33 a.m.