knitr::opts_chunk$set( comment = "#>", collapse = TRUE, warning = FALSE, message = FALSE )
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
CRAN version
install.packages("citecorp")
Development version
remotes::install_github("ropensci/citecorp")
library("citecorp")
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])
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)
citecorp
in R doing citation(package = 'citecorp')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.