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"


ropensci/rromeo documentation built on May 31, 2022, 10:46 p.m.