Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/R-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
R_KEEP_PKG_SOURCE: yes

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: r-lib/actions/setup-pandoc@v2

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: r-lib/actions/setup-r@v2
with:
Expand Down Expand Up @@ -44,7 +44,7 @@ jobs:

- name: Upload test results
if: failure()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: coverage-test-failures
path: ${{ runner.temp }}/package
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Description: Client for various 'CrossRef' 'APIs', including 'metadata' search
(including 'bibtex', 'citeproc-json', 'rdf-xml', etc.), convert 'DOIs'
to 'PMIDs', and 'vice versa', get citations for 'DOIs', and get links to
full text of articles when available.
Version: 1.2.009
Version: 1.2.1
License: MIT + file LICENSE
Authors@R: c(
person("Scott", "Chamberlain", role = "aut"),
Expand Down
6 changes: 6 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
rcrossref 1.2.1
===============

* fix bibtex::do_read_bib() deprecation warning
* add example to `cr_works()` using `doi` filter for querying multiple dois at once (thanks @LukasWallrich)

rcrossref 1.2.0
===============

Expand Down
3 changes: 1 addition & 2 deletions R/cr_cn.r
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,7 @@ parse_bibtex <- function(x) {
chk4pk("bibtex")
x <- gsub("@[Dd]ata", "@Misc", x)
writeLines(x, "tmpscratch.bib")
out <- bibtex::do_read_bib("tmpscratch.bib",
srcfile = srcfile("tmpscratch.bib"))
out <- bibtex::do_read_bib("tmpscratch.bib")
unlink("tmpscratch.bib")
if (length(out) > 0) {
out <- out[[1]]
Expand Down
7 changes: 7 additions & 0 deletions R/cr_works.R
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,13 @@
#' cr_works(dois='10.1007/12080.1874-1746')
#' cr_works(dois=c('10.1007/12080.1874-1746','10.1007/10452.1573-5125',
#' '10.1111/(issn)1442-9993'))
#' # You can also use filter to get metatdata for several dois at once.
#' # This is much faster than querying each doi individually.
#' my_dois <- c('10.1007/s11192-025-05390-3', '10.1162/qss_a_00348',
#' '10.1007/10452.1573-5125')
#' # Prepare filter
#' names(my_dois) <- rep("doi", length(my_dois))
#' cr_works(filter = my_dois, limit = length(my_dois))
#'
#' # progress bar
#' cr_works(dois=c('10.1007/12080.1874-1746','10.1007/10452.1573-5125'),
Expand Down
21 changes: 8 additions & 13 deletions README.Rmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
rcrossref: R interface to CrossRef APIs
rcrossref: R interface to Crossref APIs
=======================================

```{r echo=FALSE}
Expand All @@ -17,13 +17,13 @@ knitr::opts_chunk$set(
[![rstudio mirror downloads](https://cranlogs.r-pkg.org/badges/rcrossref)](https://github.com/r-hub/cranlogs.app)
[![cran version](https://www.r-pkg.org/badges/version/rcrossref)](https://cran.r-project.org/package=rcrossref)

## CrossRef documentation
## Crossref documentation

* Crossref API: https://github.com/CrossRef/rest-api-doc#readme
* Crossref's API issue tracker: https://gitlab.com/crossref/issues
* Crossref metadata search API: https://www.crossref.org/labs/crossref-metadata-search/
* Crossref DOI Content Negotiation: https://citation.crosscite.org/docs.html
* Crossref Text and Data Mining (TDM) Services: https://www.crossref.org/education/retrieve-metadata/rest-api/text-and-data-mining/
* Crossref API: https://api.crossref.org/
* Crossref's API issue tracker: https://crossref.atlassian.net/jira/software/c/projects/CR/issues/
* Crossref metadata search API: https://search.crossref.org/
* Crossref DOI Content Negotiation: https://www.crossref.org/documentation/retrieve-metadata/content-negotiation/
* Crossref Text and Data Mining (TDM) Services: www.crossref.org/documentation/retrieve-metadata/rest-api/text-and-data-mining/

## Installation

Expand All @@ -47,7 +47,7 @@ library('rcrossref')

## Register for the Polite Pool

If you are intending to access Crossref regularly you will want to send your email address with your queries. This has the advantage that queries are placed in the polite pool of servers. Including your email address is good practice as described in the Crossref documentation under Good manners (https://github.com/CrossRef/rest-api-doc#good-manners--more-reliable-service). The second advantage is that Crossref can contact you if there is a problem with a query.
If you are intending to access Crossref regularly you will want to send your email address with your queries. This has the advantage that queries are placed in the polite pool of servers. Including your email address is good practice as described in the Crossref documentation (https://api.crossref.org/swagger-ui/index.html#access). The second advantage is that Crossref can contact you if there is a problem with a query.

Details on how to register your email in a call can be found at `?rcrossref-package`. To pass your email address to Crossref, simply store it as an environment variable in .Renviron like this:

Expand All @@ -70,8 +70,3 @@ See https://docs.ropensci.org/rcrossref/ to get started
* Get citation information for `rcrossref` in R doing `citation(package = 'rcrossref')`
* 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.

---

This package is part of a richer suite called fulltext (https://github.com/ropensci/fulltext), along with several other packages, that provides the ability to search for and retrieve full text of open access scholarly articles.

---
27 changes: 11 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
rcrossref: R interface to CrossRef APIs
rcrossref: R interface to Crossref APIs
=======================================


Expand All @@ -10,40 +10,40 @@ rcrossref: R interface to CrossRef APIs
[![rstudio mirror downloads](https://cranlogs.r-pkg.org/badges/rcrossref)](https://github.com/r-hub/cranlogs.app)
[![cran version](https://www.r-pkg.org/badges/version/rcrossref)](https://cran.r-project.org/package=rcrossref)

## CrossRef documentation
## Crossref documentation

* Crossref API: https://github.com/CrossRef/rest-api-doc#readme
* Crossref's API issue tracker: https://gitlab.com/crossref/issues
* Crossref metadata search API: https://www.crossref.org/labs/crossref-metadata-search/
* Crossref DOI Content Negotiation: https://citation.crosscite.org/docs.html
* Crossref Text and Data Mining (TDM) Services: https://www.crossref.org/education/retrieve-metadata/rest-api/text-and-data-mining/
* Crossref API: https://api.crossref.org/
* Crossref's API issue tracker: https://crossref.atlassian.net/jira/software/c/projects/CR/issues/
* Crossref metadata search API: https://search.crossref.org/
* Crossref DOI Content Negotiation: https://www.crossref.org/documentation/retrieve-metadata/content-negotiation/
* Crossref Text and Data Mining (TDM) Services: www.crossref.org/documentation/retrieve-metadata/rest-api/text-and-data-mining/

## Installation

Stable version from CRAN


```r
``` r
install.packages("rcrossref")
```

Or development version from GitHub


```r
``` r
remotes::install_github("ropensci/rcrossref")
```

Load `rcrossref`


```r
``` r
library('rcrossref')
```

## Register for the Polite Pool

If you are intending to access Crossref regularly you will want to send your email address with your queries. This has the advantage that queries are placed in the polite pool of servers. Including your email address is good practice as described in the Crossref documentation under Good manners (https://github.com/CrossRef/rest-api-doc#good-manners--more-reliable-service). The second advantage is that Crossref can contact you if there is a problem with a query.
If you are intending to access Crossref regularly you will want to send your email address with your queries. This has the advantage that queries are placed in the polite pool of servers. Including your email address is good practice as described in the Crossref documentation (https://api.crossref.org/swagger-ui/index.html#access). The second advantage is that Crossref can contact you if there is a problem with a query.

Details on how to register your email in a call can be found at `?rcrossref-package`. To pass your email address to Crossref, simply store it as an environment variable in .Renviron like this:

Expand All @@ -66,8 +66,3 @@ See https://docs.ropensci.org/rcrossref/ to get started
* Get citation information for `rcrossref` in R doing `citation(package = 'rcrossref')`
* 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.

---

This package is part of a richer suite called fulltext (https://github.com/ropensci/fulltext), along with several other packages, that provides the ability to search for and retrieve full text of open access scholarly articles.

---
18 changes: 6 additions & 12 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,26 @@
## Test environments

* local OS X install, R4.2.2 (2022-10-31)
* local Mac OS 15.6, R version 4.5.1 (2025-06-13)
* ubuntu-latest (devel, release, oldrel-1) on GH actions
* win-builder (devel and release)
* win-builder (oldrelease, release, and devel)

## R CMD check results

local:

0 errors | 0 warnings | 0 notes

win-builder
win-builder 4.4.3 (oldrelease):

1 note highlighting maintainer change
1 note about Author field differs from that derived from Authors@R

## Reverse dependencies

* I have run R CMD check on the 8 downstream dependencies. There were no problems. See the summary at <https://github.com/ropensci/rcrossref/tree/master/revdep>
* I have run R CMD check on the 86 downstream dependencies. There were no problems.

-------

This re-submission reduced the size of tarball to less than 5MB.

Overall, this release implements changes relative to the Crossref REST API migration.

It also fixes CRAN Check errors.

Please note the maintainer change from Scott Chamberlain to Najko Jahn.
This submission fixes a warning message when using bibtex::do_read_bib() internally, as alerted by Kurt Hornik.

Thanks!

Expand Down
54 changes: 31 additions & 23 deletions revdep/README.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,39 @@
# Platform

|field |value |
|:--------|:----------------------------------------|
|version |R version 4.2.2 (2022-10-31) |
|os |macOS Big Sur 11.4 |
|system |aarch64, darwin20 |
|ui |X11 |
|language |en |
|collate |en_US.UTF-8 |
|ctype |en_US.UTF-8 |
|tz |Europe/Copenhagen |
|date |2022-11-09 |
|pandoc |2.14.1 @ /usr/local/bin/ (via rmarkdown) |
|field |value |
|:--------|:----------------------------|
|version |R version 4.4.3 (2025-02-28) |
|os |Ubuntu 22.04.1 LTS |
|system |x86_64, linux-gnu |
|ui |X11 |
|language |(EN) |
|collate |en_US.UTF-8 |
|ctype |en_US.UTF-8 |
|tz |UTC |
|date |2025-08-19 |
|pandoc |NA @ /usr/bin/pandoc |
|quarto |NA |

# Dependencies

|package |old |new |Δ |
|:-----------|:-----|:-----|:--|
|rcrossref |1.1.0 |1.2 |* |
|bslib |NA |0.4.1 |* |
|commonmark |NA |1.8.1 |* |
|crosstalk |NA |1.2.0 |* |
|DT |NA |0.26 |* |
|fontawesome |NA |0.4.0 |* |
|httpuv |NA |1.6.6 |* |
|shiny |NA |1.7.3 |* |
|tidyselect |NA |1.2.0 |* |
|package |old |new |Δ |
|:-----------|:-----|:-------|:--|
|rcrossref |1.2.0 |1.2.1 |* |
|bslib |NA |0.9.0 |* |
|fontawesome |NA |0.5.3 |* |
|htmltools |NA |0.5.8.1 |* |
|sass |NA |0.4.10 |* |

# Revdeps

## Failed to check (6)

|package |version |error |warning |note |
|:---------|:-------|:-----|:-------|:----|
|biblio |? | | | |
|namedropR |? | | | |
|Rcompadre |? | | | |
|ref.ICAR |? | | | |
|rorcid |? | | | |
|slgf |? | | | |

2 changes: 1 addition & 1 deletion revdep/cran.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## revdepcheck results

We checked 8 reverse dependencies, comparing R CMD check results across CRAN and dev versions of this package.
We checked 6 reverse dependencies (0 from CRAN + 6 from Bioconductor), comparing R CMD check results across CRAN and dev versions of this package.

* We saw 0 new problems
* We failed to check 0 packages
Expand Down
Loading
Loading