Skip to content

Commit e13ca76

Browse files
committed
version submitted to CRAN
1 parent 9b79c97 commit e13ca76

4 files changed

Lines changed: 36 additions & 31 deletions

File tree

README.md

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@ To display how many full-text links were found and which sources were used in a
305305

306306

307307
```r
308+
if(!is.null(oa_df))
308309
oa_df %>%
309310
group_by(is_oa) %>%
310311
summarise(Articles = n()) %>%
@@ -317,13 +318,14 @@ oa_df %>%
317318

318319
|is_oa | Articles| Proportion|
319320
|:-----|--------:|----------:|
320-
|FALSE | 35| 0.7|
321-
|TRUE | 15| 0.3|
321+
|FALSE | 33| 0.66|
322+
|TRUE | 17| 0.34|
322323

323324
How did Unpaywall find those Open Access full-texts, which were characterized as best matches, and how are these OA types distributed over publication types?
324325

325326

326327
```r
328+
if(!is.null(oa_df))
327329
oa_df %>%
328330
filter(is_oa == TRUE) %>%
329331
select(best_oa_location, genre) %>%
@@ -336,17 +338,14 @@ oa_df %>%
336338

337339

338340

339-
|evidence |genre | Articles|
340-
|:--------------------------------------------------------|:---------------|--------:|
341-
|open (via page says license) |journal-article | 4|
342-
|open (via free pdf) |journal-article | 3|
343-
|oa repository (via OAI-PMH title and first author match) |journal-article | 2|
344-
|oa journal (via doaj) |journal-article | 1|
345-
|oa journal (via observed oa rate) |journal-article | 1|
346-
|oa repository (via OAI-PMH title match) |report | 1|
347-
|open (via crossref license) |journal-article | 1|
348-
|open (via free pdf) |book-chapter | 1|
349-
|open (via free pdf) |other | 1|
341+
|evidence |genre | Articles|
342+
|:--------------------------------------------------------|:-------------------|--------:|
343+
|open (via free pdf) |journal-article | 7|
344+
|open (via page says license) |journal-article | 6|
345+
|oa repository (via OAI-PMH doi match) |journal-article | 1|
346+
|oa repository (via OAI-PMH title and first author match) |journal-article | 1|
347+
|open (via free pdf) |book-chapter | 1|
348+
|open (via page says license) |proceedings-article | 1|
350349

351350
#### More examples
352351

codemeta.json

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
{
2-
"@context": ["https://doi.org/10.5063/schema/codemeta-2.0", "http://schema.org"],
2+
"@context": [
3+
"https://doi.org/10.5063/schema/codemeta-2.0",
4+
"http://schema.org"
5+
],
36
"@type": "SoftwareSourceCode",
47
"identifier": "roadoi",
58
"description": "This web client interfaces Unpaywall <https://unpaywall.org/products/api>, formerly\n oaDOI, a service finding free full-texts of academic papers by linking DOIs with \n open access journals and repositories. It provides unified access to various data sources \n for open access full-text links including Crossref and the Directory of Open Access \n Journals (DOAJ). API usage is free and no registration is required.",
69
"name": "roadoi: Find Free Versions of Scholarly Publications via Unpaywall",
710
"codeRepository": "https://github.com/ropensci/roadoi",
811
"issueTracker": "https://github.com/ropensci/roadoi/issues",
912
"license": "https://spdx.org/licenses/MIT",
10-
"version": "0.5.2",
13+
"version": "0.6",
1114
"programmingLanguage": {
1215
"@type": "ComputerLanguage",
1316
"name": "R",
@@ -102,18 +105,6 @@
102105
},
103106
"sameAs": "https://CRAN.R-project.org/package=rmarkdown"
104107
},
105-
{
106-
"@type": "SoftwareApplication",
107-
"identifier": "lubridate",
108-
"name": "lubridate",
109-
"provider": {
110-
"@id": "https://cran.r-project.org",
111-
"@type": "Organization",
112-
"name": "Comprehensive R Archive Network (CRAN)",
113-
"url": "https://cran.r-project.org"
114-
},
115-
"sameAs": "https://CRAN.R-project.org/package=lubridate"
116-
},
117108
{
118109
"@type": "SoftwareApplication",
119110
"identifier": "rcrossref",
@@ -252,11 +243,25 @@
252243
],
253244
"releaseNotes": "https://github.com/ropensci/roadoi/blob/master/NEWS",
254245
"readme": "https://github.com/ropensci/roadoi/blob/master/README.md",
255-
"contIntegration": ["https://travis-ci.org/ropensci/roadoi", "https://ci.appveyor.com/project/ropensci/roadoi", "https://codecov.io/github/ropensci/roadoi?branch=master"],
246+
"contIntegration": [
247+
"https://travis-ci.org/ropensci/roadoi",
248+
"https://ci.appveyor.com/project/ropensci/roadoi",
249+
"https://codecov.io/github/ropensci/roadoi?branch=master"
250+
],
256251
"review": {
257252
"@type": "Review",
258253
"url": "https://github.com/ropensci/onboarding/issues/115",
259254
"provider": "http://ropensci.org"
260255
},
261-
"keywords": ["open-access", "oadoi", "r", "webclient", "code4lib", "altmetrics", "rstats", "r-package", "peer-reviewed"]
256+
"keywords": [
257+
"open-access",
258+
"oadoi",
259+
"r",
260+
"webclient",
261+
"code4lib",
262+
"altmetrics",
263+
"rstats",
264+
"r-package",
265+
"peer-reviewed"
266+
]
262267
}

cran-comments.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ I have run R CMD check on downstream dependencies using revdepcheck::revdep_chec
2020
Dear CRAN maintainers,
2121

2222
This submission fixes the problems shown on
23-
<https://cran.r-project.org/web/checks/check_results_roadoi.html>.
23+
<https://cran.r-project.org/web/checks/check_results_roadoi.html>, and problems encountered in the last submission.
2424

2525
Thanks for alerting me!
2626

vignettes/intro.Rmd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ my_data <- purrr::map(random_dois,
149149
purrr::map_df(my_data, "result")
150150
#show errors
151151
purrr::map(my_data, "error")
152-
153152
```
154153

155154
### Use Case: Studying the compliance with open access policies
@@ -186,6 +185,7 @@ After obtaining the data, reporting with R is straightforward. You can even gene
186185
To display how many full-text links were found and which sources were used in a nicely formatted markdown-table using the [`knitr`](https://yihui.name/knitr/)-package:
187186

188187
```{r, results='asis'}
188+
if(!is.null(oa_df))
189189
oa_df %>%
190190
group_by(is_oa) %>%
191191
summarise(Articles = n()) %>%
@@ -197,6 +197,7 @@ oa_df %>%
197197
How did Unpaywall find those Open Access full-texts, which were characterized as best matches, and how are these OA types distributed over publication types?
198198

199199
```{r, results='asis'}
200+
if(!is.null(oa_df))
200201
oa_df %>%
201202
filter(is_oa == TRUE) %>%
202203
select(best_oa_location, genre) %>%

0 commit comments

Comments
 (0)