This repository has been archived by the owner on Sep 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
README.Rmd
98 lines (76 loc) · 3.26 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
rcoreoa
=======
```{r echo=FALSE}
library("knitr")
hook_output <- knitr::knit_hooks$get("output")
knitr::knit_hooks$set(output = function(x, options) {
lines <- options$output.lines
if (is.null(lines)) {
return(hook_output(x, options)) # pass to default hook
}
x <- unlist(strsplit(x, "\n"))
more <- "..."
if (length(lines)==1) { # first n lines
if (length(x) > lines) {
# truncate the output, but add ....
x <- c(head(x, lines), more)
}
} else {
x <- c(if (abs(lines[1])>1) more else NULL,
x[lines],
if (length(x)>lines[abs(length(lines))]) more else NULL
)
}
# paste these lines together
x <- paste(c(x, ""), collapse = "\n")
hook_output(x, options)
})
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.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)
[![R-CMD-check](https://github.com/ropensci/rcoreoa/workflows/R-CMD-check/badge.svg)](https://github.com/ropensci/rcoreoa/actions?query=workflow%3AR-CMD-check)
[![codecov.io](https://codecov.io/github/ropensci/rcoreoa/coverage.svg?branch=master)](https://codecov.io/github/ropensci/rcoreoa?branch=master)
[![cran checks](https://cranchecks.info/badges/worst/rcoreoa)](https://cranchecks.info/pkgs/rcoreoa)
[![rstudio mirror downloads](https://cranlogs.r-pkg.org/badges/rcoreoa)](https://github.com/r-hub/cranlogs.app)
[![cran version](https://www.r-pkg.org/badges/version/rcoreoa)](https://cran.r-project.org/package=rcoreoa)
CORE API R client
CORE API docs: https://core.ac.uk/docs/
rcoreoa docs: https://docs.ropensci.org/rcoreoa/
Get an API key at https://core.ac.uk/api-keys/register. You'll need one,
so do this now if you haven't yet. Once you have the key, you can pass it
into the `key` parameter, or as a much better option store your key as an
environment variable with the name `CORE_KEY` or an R option as `core_key`.
See `?Startup` for how to work with env vars and R options
## About CORE
CORE's tagline is: "Aggregating the world's open access research papers"
CORE offers seamless access to millions of open access research papers, enrich
the collected data for text-mining and provide unique services to the research
community.
For more infos on CORE, see https://core.ac.uk/about
## Install
```{r eval=FALSE}
install.packages("rcoreoa")
```
Development version
```{r eval=FALSE}
remotes::install_github("ropensci/rcoreoa")
```
```{r}
library("rcoreoa")
```
## Get started
Get started with an introduction to the package: https://docs.ropensci.org/rcoreoa/articles/rcoreoa
## Contributors
* [Scott Chamberlain](https://github.com/sckott)
* [Aristotelis Charalampous](https://github.com/aristotelisxs)
* [Simon Goring](https://github.com/SimonGoring)
## Meta
* Please [report any issues or bugs](https://github.com/ropensci/rcoreoa/issues).
* License: MIT
* Get citation information for `rcoreoa` in R doing `citation(package = 'rcoreoa')`
* Please note that this package is released with a [Contributor Code of Conduct](https://ropensci.org/code-of-conduct/). By contributing to this project, you agree to abide by its terms.