-
Notifications
You must be signed in to change notification settings - Fork 4
/
README.Rmd
85 lines (61 loc) · 1.96 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
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# semscholar: interfacing Semantic Scholar search engine with R
<!-- badges: start -->
[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental)
[![R-CMD-check](https://github.com/njahn82/semscholar/workflows/R-CMD-check/badge.svg)](https://github.com/njahn82/semscholar/actions)
[![Codecov test coverage](https://codecov.io/gh/njahn82/semscholar/branch/master/graph/badge.svg)](https://codecov.io/gh/njahn82/semscholar?branch=master)
<!-- badges: end -->
This web client wraps the Semantic Scholar RESTful API.
[Semantic Scholar](https://www.semanticscholar.org/) is a free,
nonprofit, academic search engine from the
[Allen Institute for AI](https://allenai.org/).
The client supports search for author profiles and mined metadata
of scholarly works including citations, references and topics.
API Docs: <https://api.semanticscholar.org/>
## Installation
You can install the develpment version of semscholar from GitHub:
``` r
remotes::install_github("njahn82/semscholar")
```
## Paper Lookup
```{r}
library(semscholar)
s2_papers(
c("10.1093/nar/gkr1047",
"14a22b032524573d15593abed170f9f76359e581",
"10.7717/peerj.2323",
"arXiv:0711.0914")
)
```
Authors
```{r}
s2_papers("14a22b032524573d15593abed170f9f76359e581")$authors
```
Citations
```{r}
s2_papers("14a22b032524573d15593abed170f9f76359e581")$citations
```
References
```{r}
s2_papers("14a22b032524573d15593abed170f9f76359e581")$references
```
Topics
```{r}
s2_papers("14a22b032524573d15593abed170f9f76359e581")$topics
```
## Author Lookup
Provide one or many S2 Author IDs
```{r}
s2_authors(c("2204561", "144128278", "49930593"))
```