-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathREADME.Rmd
More file actions
52 lines (36 loc) · 1.63 KB
/
README.Rmd
File metadata and controls
52 lines (36 loc) · 1.63 KB
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
---
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%"
)
```
# scihubr
<!-- badges: start -->
<!-- badges: end -->
`{scihubr}` is an unofficial API to [sci-hub.se](https://sci-hub.se/), making it easy to download the papers you need within `R`. The package also offers you a citation in a bunch of favorite citation styles.
### Note
[sci-hub.se](https://sci-hub.se/) is not an official service, and its legality is questionable in many countries. Please make sure to check the legality of using such services in your country before using this package. The author of this package does not condone illegal activities and is not responsible for any misuse of the package. The papers are provided by [sci-hub.se](https://sci-hub.se/), not by the package itself. This package is intended for educational and research purposes only.
## Installation
The package is only available from [GitHub](https://github.com/) with:
``` r
if (!require("remotes") install.packages("remotes")
remotes::install_github("netique/scihubr")
```
## Example
If you just want to read a paper as quick as possible, type:
```{r basic, eval=FALSE, include=TRUE}
scihubr::download_paper("url_or_doi_of_your_favourite_paper")
```
Or, state the path and optional `open = FALSE` meaning you do not want to open the result immediately.
```{r optional, eval=FALSE, include=TRUE}
scihubr::download_paper("url_or_doi_of_your_favourite_paper",
path = "~/my_favourite_paper.pdf",
open = FALSE
)
```