knitr::opts_chunk$set(
  comment = "#>",
  collapse = TRUE,
  warning = FALSE,
  message = FALSE
)

Project Status: Active - The project has reached a stable, usable state and is being actively developed. R-CMD-check rstudio mirror downloads cran version Codecov test coverage

Client for the Open Citations Corpus http://opencitations.net/ (OCC)

OCC created their own identifiers called Open Citation Identifiers (oci), e.g.,

06180334099-06101759895

You are probably not going to be using oci identifiers, but rather DOIs and/or PMIDs and/or PMCIDs. See ?oc_lookup for methods for cross-walking among identifier types.

If you'd like to use the OpenCitations Sparql endpoint yourself you can find that at http://opencitations.net/sparql

Install

CRAN version

install.packages("citecorp")

Development version

remotes::install_github("ropensci/citecorp")
library("citecorp")

Methods for converting IDs

oc_doi2ids("10.1039/c9sc00991d")
oc_pmid2ids("31857888")
oc_pmcid2ids("PMC6422012")

You can pass in more than one identifer to each of the above functions:

oc_doi2ids(oc_dois[1:6])

COCI methods

OpenCitations Index of Crossref open DOI-to-DOI references

If you don't load tibble you get normal data.frame's

library(tibble)
doi1 <- "10.1108/jd-12-2013-0166"
# references
oc_coci_refs(doi1)
# citations
oc_coci_cites(doi1)
# metadata
oc_coci_meta(doi1)

Meta

rofooter



ropenscilabs/citecorp documentation built on Feb. 5, 2025, 3:42 a.m.