rcrossref introduction

Scott Chamberlain

2020-03-19

Installation

Install stable version from CRAN

install.packages("rcrossref")

Or development version from GitHub

remotes::install_github("ropensci/rcrossref")
library("rcrossref")

Citation count

Citation count, using OpenURL

cr_citation_count(doi="10.1371/journal.pone.0042793")

Search Crossref metadata API

The following functions all use the CrossRef API.

Look up funder information

cr_funders(query="NSF")

Check the DOI minting agency

cr_agency(dois = '10.13039/100000001')

Search works (i.e., articles, books, etc.)

cr_works(filter=c(has_orcid=TRUE, from_pub_date='2004-04-04'), limit=1)

Search journals

cr_journals(issn=c('1803-2427','2326-4225'))

Search license information

cr_licenses(query = 'elsevier')

Search based on DOI prefixes

cr_prefixes(prefixes=c('10.1016','10.1371','10.1023','10.4176','10.1093'))

Search CrossRef members

cr_members(query='ecology', limit = 5)

Get N random DOIs

cr_r() uses the function cr_works() internally.

cr_r()

You can pass in the number of DOIs you want back (default is 10)

cr_r(2)