readDCEntry: readDCEntry

View source: R/readDCEntry.R

readDCEntryR Documentation

readDCEntry

Description

readDCEntry is a function to read a DC XML entry from a file or url into an object in the atom4R model.

Usage

readDCEntry(file, url, raw)

Arguments

file

a valid file path, as object of class character

url

a valid URL, as object of class character

raw

indicates if the function should return the raw XML. By default this is set to FALSE and the function will try to map the xml data to the atom4R data model.

Value

a atom4R object inheriting DCEntry

Author(s)

Emmanuel Blondel, emmanuel.blondel1@gmail.com

Examples


  dcfile <- paste0(
    "https://raw.githubusercontent.com/eblondel/atom4R/master/",
    "inst/extdata/examples/zenodo_dc_export.xml"
  )
  dc <- readDCEntry(dcfile)



atom4R documentation built on Nov. 18, 2022, 5:06 p.m.