Learn R Programming

rcrossref: R interface to CrossRef APIs

CrossRef documentation

Installation

Stable version from CRAN

install.packages("rcrossref")

Or development version from GitHub

remotes::install_github("ropensci/rcrossref")

Load rcrossref

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.

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:

Open file: file.edit("~/.Renviron")

Add email address to be shared with Crossref crossref_email= "name@example.com"

Save the file and restart your R session

To stop sharing your email when using rcrossref simply delete it from your .Renviron file.

Documentation

See https://docs.ropensci.org/rcrossref/ to get started

Meta


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.


Copy Link

Version

Install

install.packages('rcrossref')

Monthly Downloads

1,182

Version

1.2.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

November 11th, 2022

Functions in rcrossref (1.2.0)

cr_ft_xml

Get full text xml from a DOI
cr_citation_count

Get a citation count via CrossRef OpenURL
cr_ft_text

Get full text from a DOI
cr_citation

This function is defunct
id_converter

Get a PMID from a DOI, and vice versa.
get_styles

Get list of styles from github.com/citation-style-language/styles
cr_fundref

fundref
rcrossref-defunct

Defunct functions in rcrossref
cr_funders

Search the CrossRef Fundref API
pmid2doi

Get a PMID from a DOI, and vice versa.
cr_types

Search CrossRef types
cr_search_free

Search the CrossRef Metadata for DOIs using free form references.
cr_abstract

Get abstract
cr_r

Get a random set of DOI's through CrossRef.
cr_search

Search the CrossRef Metadata API.
cr_agency

Check the DOI minting agency on one or more dois
cr_works

Search CrossRef works (articles)
rcrossref-deprecated

Deprecated functions in rcrossref
crosscite

Crosscite - citation formatter
rcrossref-package

rcrossref
extract_xpdf

Extract text from a single pdf document.
filters

Get filter details and names.
cr_ft_pdf

Get full text pdf from a DOI
cr_cn

Get citations in various formats from CrossRef.
as.tdmurl

Coerce a url to a tdmurl with a specific type
cr_ft_links

Get full text links from a DOI
GET_agency_id

Get doi agency id to identify resource location
cr_ft_plain

Get full text plain from a DOI
cr_prefixes

Search CrossRef prefixes
cr_licenses

Search CrossRef licenses
cr_members

Search CrossRef members
cr_journals

Search CrossRef journals