parse_embargo: Parse embargo period from API return

View source: R/utils.R

parse_embargoR Documentation

Parse embargo period from API return

Description

This function provides an easy way to return the embargo period in the different categories

Usage

parse_embargo(xml_source, type = c("pre", "post", "pdf"))

Arguments

xml_source

[xml_document]
a parsed xml document

type

[character(1)] name of the embargo type must be in "pre", "post", and "pdf"

Value

the embargo period as a string like "12 months"


Rekyt/rromeo documentation built on June 2, 2022, 1:32 p.m.