Skip to contents

Connects with doi.org to create metadata

Usage

ZoteroDoi(
  doi,
  meta = list(),
  prefer.semantic = FALSE,
  check.retraction = TRUE,
  silent = TRUE,
  log = list()
)

Arguments

doi

A digital object identifier

meta

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

prefer.semantic

Prefer metadata from Semantic Scholar, Default: FALSE

check.retraction

Check if marked as retracted, Default: TRUE

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{
  # Simple use of `ZoteroDoi`
  example <- ZoteroDoi("10.1126/sciadv.abd1705")

  # Print index using `ZoteroIndex`
  if (any(nrow(example$data))) {
  ZoteroIndex(example$data) |>
    dplyr::select(name) |>
    print(width = 80)
  }
#> # A tibble: 1 × 1
#>   name                                                                          
#>   <chr>                                                                         
#> 1 Serra-Garcia & Gneezy (2021) Nonreplicable publications are cited more than r…
# }