Learn R Programming

c2z (version 0.2.0)

CristinWrangler: Wrangle Cristin metadata into Zotero-type format

Description

The little engine that could, at least try, to wrangle metadata from Cristin into a Zotero-type matrix. References can be augmented, or replaced with metadata gathered through ISBN or DOI identifiers, and through Crossref queries if all other fails. Or, hope the best and place your misguided faith in the ability of researchers to correctly register their own publications.

Usage

CristinWrangler(
  data,
  use.identifiers = TRUE,
  crossref.search = FALSE,
  autosearch = TRUE,
  override = FALSE,
  silent = FALSE,
  polite = TRUE,
  log = list()
)

Value

A Zotero-type matrix (tibble)

Arguments

data

Tibble containing metadata from Cristin

use.identifiers

Use if ISBN/DOI identifiers if enabled, Default: TRUE

crossref.search

Query Crossref database based on title, authors, and date if enabled, Default: FALSE

autosearch

Results could be automatically evaluated (based on some logic) or you could inspect them manually if set to FALSE, Default: TRUE

override

Put your faith in the algorithms and the identifiers (i.e., DOI/ISBN) and override what is reported in Cristin, Default: FALSE

silent

Running silent, running deep, Default: FALSE

polite

Please store you email in `.Renviron` to query Crossref, Default: TRUE

log

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

Details

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

See Also

Examples

Run this code
# \donttest{
  # Simple `Cristin` search by id with import set as FALSE
  example <- Cristin(id = "840998", zotero.import = FALSE)

  if (any(nrow(example$results))) {
    # Check if results i supported using `CristinSupported`
    example.supported <- CristinSupported(example$results)

    # Use `ZoteroIndex` to print `CristinWrangler`
    ZoteroIndex(CristinWrangler(example.supported$data)$results) |>
      dplyr::select(name) |>
      print(width = 80)
  }
# }

Run the code above in your browser using DataLab