recover_failed_submission: Recovers failed submissions

View source: R/helpers.R

recover_failed_submissionR Documentation

Recovers failed submissions

Description

Recovers failed submissions and writes the new, valid EML to a given path

Usage

recover_failed_submission(node, pid, path)

Arguments

node

(MNode) The Member Node to publish the object to.

pid

The PID of the EML metadata document to be recovered.

path

path to write XML.

Value

recovers and write the valid EML to the indicated path

Author(s)

Rachel Sun rachelsun@ucsb.edu

Examples

## Not run: 
# Set environment
cn <- dataone::CNode("STAGING2")
mn <- dataone::getMNode(cn,"urn:node:mnTestKNB")
pid <- "urn:uuid:b1a234f0-eed5-4f58-b8d5-6334ce07c010"
path <- tempfile("file", fileext = ".xml")
recover_failed_submission(mn, pid, path)
eml <- EML::read_eml(path)

## End(Not run)

NCEAS/arcticdatautils documentation built on July 13, 2024, 11:02 a.m.