Skip to contents

Query DataCite by DOI and fetch metadata

Usage

DoiDatacite(data, meta = list(), silent = TRUE, log = list())

Arguments

data

XML data from DataCite containing metadata

meta

A list collecting all metadata used to create , Default: list()

silent

c2z is noisy, tell it to be quiet, Default: TRUE

log

A list for storing log elements, Default: list()

Value

A Zotero-type matrix (tibble)

Details

Please see https://oeysan.github.io/c2z/

Examples

# \donttest{
  # `DoiDatacite` is called from `ZoteroDoi` (if item found)
  example <- ZoteroDoi("10.17605/OSF.IO/7HZ4P")

  # Use `ZoteroIndex` to print
  # Print index using `ZoteroIndex`
  if (any(nrow(example$data))) {
    ZoteroIndex(example$data) |>
      dplyr::select(name) |>
      print(width = 80)

    # Display catalog
    example$data$libraryCatalog
  }
#> # A tibble: 1 × 1
#>   name                                                          
#>   <chr>                                                         
#> 1 Skaar & Reber (2022) Alone or Together: Supplemental materials
#> [1] "DOI.org (Datacite)"
# }