Learn R Programming

c2z (version 0.2.0)

ZoteroCheck: Check Zotero library for duplicates

Description

Remove references that are not modified since last added to Zotero

Usage

ZoteroCheck(
  data,
  id,
  id.type,
  created,
  last.modified,
  zotero = NULL,
  remove.duplicates = TRUE,
  silent = FALSE,
  log = list()
)

Value

Returns non-duplicated data in a Zotero-type matrix (tibble)

Arguments

data

Tibble containing metadata (from Cristin)

id

column containing identifier (e.g., cristin_result_id)

id.type

Type of metadata as found in the Zotero extra field ("e.g., Cristin)

created

column containing creation date in UNIX timestamp format (e.g., created)

last.modified

column containing modification date in UNIX timestamp format (e.g., last_modified)

zotero

A list with information on the specified Zotero library (e.g., id, API key, collections, and items), Default: NULL

remove.duplicates

Remove duplicates if TRUE, Default: TRUE

silent

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

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
  cristin.data <- Cristin(
    id = "840998",
    zotero.import = FALSE
  )

  # Simple `ZoteroCheck`
  example <- ZoteroCheck(
    data = cristin.data$result,
    id = "cristin_result_id",
    id.type = "Cristin",
    created = "created",
    last.modified = "last_modified",
    zotero = Zotero(
      user = FALSE,
      id = "4827927",
      api = "RqlAmlH5l1KPghfCseAq1sQ1",
      library = TRUE,
      silent = TRUE
    )
  )
# }

Run the code above in your browser using DataLab