update_resources: update_resources

Description Usage Arguments Value

View source: R/update_resources.R

Description

Update resources for a given dataset

Usage

1
2
3
4
update_resources(dataset_nid, resource_nid, metadata_resources,
  ddh_fields = ddhconnect::get_fields(), lovs = ddhconnect::get_lovs(),
  root_url = dkanr::get_url(), credentials = list(cookie =
  dkanr::get_cookie(), token = dkanr::get_token()))

Arguments

dataset_nid

string: dataset to attach resource to

resource_nid

vector: vector of resources to attach

metadata_resources

list: list of resource metadata

ddh_fields

dataframe: table of all the data catalog fields by node type

lovs

dataframe: lookup table of the data catalog tids and values

root_url

character: API root URL

credentials

list: object returned by the dkanr::get_credentials() function

Value

list


tonyfujs/eex2ddh documentation built on Dec. 27, 2019, 2:57 a.m.