-
Notifications
You must be signed in to change notification settings - Fork 4
/
README.Rmd
98 lines (70 loc) · 2.56 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
---
title: citecorp
output: github_document
---
```{r echo=FALSE}
knitr::opts_chunk$set(
comment = "#>",
collapse = TRUE,
warning = FALSE,
message = FALSE
)
```
<!--[![cran checks](https://cranchecks.info/badges/worst/citecorp)](https://cranchecks.info/pkgs/citecorp)-->
[![Project Status: Active - The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)
[![R-check](https://github.com/ropensci/citecorp/workflows/R-check/badge.svg)](https://github.com/ropensci/citecorp/actions?query=workflow%3AR-check)
[![rstudio mirror downloads](https://cranlogs.r-pkg.org/badges/citecorp)](https://github.com/metacran/cranlogs.app)
[![cran version](https://www.r-pkg.org/badges/version/citecorp)](https://cran.r-project.org/package=citecorp)
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
```{r eval=FALSE}
install.packages("citecorp")
```
Development version
```{r eval=FALSE}
remotes::install_github("ropensci/citecorp")
```
```{r}
library("citecorp")
```
## Methods for converting IDs
```{r}
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:
```{r}
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
```{r}
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
* Please [report any issues or bugs](https://github.com/ropensci/citecorp/issues)
* License: MIT
* Get citation information for `citecorp` in R doing `citation(package = 'citecorp')`
* Please note that this project is released with a [Contributor Code of Conduct][coc].
By participating in this project you agree to abide by its terms.
[sparqldsl]: https://github.com/ropensci/sparqldsl
[coc]: https://github.com/ropensci/citecorp/blob/master/CODE_OF_CONDUCT.md
[![rofooter](https://ropensci.org/public_images/github_footer.png)](https://ropensci.org)