add_new_dataset: add_new_dataset()

Description Usage Arguments Value

View source: R/add_new_dataset.R

Description

Add a full microdata record to DDH (metadata and resources)

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
add_new_dataset(
  md_internal_id,
  md_token,
  master,
  ddh_fields = ddhconnect::get_fields(),
  lovs = ddhconnect::get_lovs(),
  root_url = dkanr::get_url(),
  iso_3_df = ddhconnect::get_iso3(),
  credentials = list(cookie = dkanr::get_cookie(), token = dkanr::get_token())
)

Arguments

md_internal_id

character: Microdata internal ID of the dataset to be added

md_token

character: Microdata API authentication token

master

dataframe: Master lookup table, output of mdlibtoddh::get_ddh_records_status()

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: Root URL to use for the API (Staging or Production)

iso_3_df

dataframe: Table of iso_3 codes and corresponding country names

credentials

list: DDH API authentication token and cookie

Value

character


tonyfujs/mdlibtoddh documentation built on March 14, 2021, 10 p.m.