| scopus_extract_dois | R Documentation |
Pulls Digital Object Identifiers from a scopus_records object (or a bare character vector), normalises them and removes missing values. The resulting list can be imported into a reference manager such as Zotero to assemble a bibliography.
scopus_extract_dois(x, dedupe = TRUE, file = NULL)
x |
A scopus_records tibble, or a character vector of DOIs. |
dedupe |
Logical, dropping duplicate DOIs by default. |
file |
Optional path at which to write the DOIs as a single-column CSV. A file is written only when this argument is supplied, and only to the exact path given, so the package always leaves the working directory untouched unless asked. Parent directories are assumed to exist already. |
Normalisation trims surrounding whitespace and strips common resolver
prefixes (https://doi.org/, http://dx.doi.org/, doi:) so that the same
article is counted once even when its DOI is formatted differently in two
records. Because DOIs are case-insensitive, comparison and deduplication
ignore case, while the output keeps the original casing.
A character vector of cleaned DOIs, returned invisibly when file is
written.
scopus_diff_dois() to compare two retrievals.
recs <- scopus_records(list(entry = list(
list(`prism:doi` = "10.1/AAA"),
list(`prism:doi` = "https://doi.org/10.1/aaa"),
list(`prism:doi` = NULL)
)))
scopus_extract_dois(recs)
# Write to a temporary file (never the working directory).
path <- tempfile(fileext = ".csv")
scopus_extract_dois(recs, file = path)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.