lipd_write: Saves current state of LiPD object data. Outputs to a LiPD...

View source: R/lipd.R

lipd_writeR Documentation

Saves current state of LiPD object data. Outputs to a LiPD file. Steps: create tmp, create bag dir, get dsn, splice csv from json, write csv, clean json, write json, create bagit, zip up bag folder, place lipd in target dst, move to original dir, delete tmp

Description

Saves current state of LiPD object data. Outputs to a LiPD file. Steps: create tmp, create bag dir, get dsn, splice csv from json, write csv, clean json, write json, create bagit, zip up bag folder, place lipd in target dst, move to original dir, delete tmp

Usage

lipd_write(
  j,
  dir_original,
  path,
  dsn,
  ignore.warnings,
  removeNamesFromLists = FALSE,
  jsonOnly = FALSE
)

Arguments

j

Metadata

path

Destination path

dsn

Dataset name

jsonOnly

Write data to jsonld only? The data will be included and the json file might be large (Typically only used for web connections)

Value

none:


nickmckay/lipdR documentation built on April 13, 2025, 5:58 p.m.