Skip to contents

Look up Reference in CrossRef

Usage

crossref_query(ref, min_score = 50, rows = 1)

Arguments

ref

the full text reference of the paper to get info for, see Details

min_score

minimal score that is taken to be a reliable match (default 50)

rows

the maximum number of rows to return per reference (default 1)

Value

doi

Details

The argument ref can take many formats. Crossref queries only look for authors, title, and container-title (e.g., journal or book), but extra infomration doesn't seem to hurt.

  • be a text reference or fragment

  • a bibentry object (authors, ttle and container will be extracted)

  • a vector of text or bibentry objects

  • a paper object (the ref colum of the bib table will be extracted)

Examples

ref <- paste(
  "Lakens, D., Mesquida, C., Rasti, S., & Ditroilo, M. (2024).",
  "The benefits of preregistration and Registered Reports.",
  "Evidence-Based Toxicology, 2(1)."
)
# \donttest{
  cr <- crossref_query(ref)
# }