doi_api: Use the doi.org handles API

Description Usage Arguments Related Functions and Methods Warning Other APIs Progress bar See Also Examples

Description

Queries the DOI resolution proxy server REST API.

Usage

1
2
3
4
5
6
7

Arguments

x

A vector created by, or convertable to doi().

query

A named list of query parameters.

...

Arguments passed on to httr::GET

config

Additional configuration settings such as http authentication (authenticate()), additional headers (add_headers()), cookies (set_cookies()) etc. See config() for full details and list of helpers.

handle

The handle to use with this request. If not supplied, will be retrieved and reused from the handle_pool() based on the scheme, hostname and port of the url. By default httr requests to the same scheme/host/port combo. This substantially reduces connection time, and ensures that cookies are maintained over multiple requests to the same host. See handle_pool() for more details.

Related Functions and Methods

Functions

Warning

If you are using this in your own package, or create a lot of traffic, please set your own httr::user_agent().

Other APIs

This client only queries the doi.org API. The doi.org API only includes information on DOI resolution, not other metadata. For other APIs, see doi_ras()

Progress bar

Emits a progressr::progressor() progress bar. To enable in your session run:

progressr::handlers(global = TRUE)

See progressr documentation for details.

See Also

Other doi: doiEntry, doi_examples(), doi_ra, doi(), regex_doi(), view_doi_matches()

Examples

1
2
3
4
5
6
7
8
# from https://www.doi.org/factsheets/DOIProxy.html
get_doi_handles(
  x = c("10.1000/1", "10.1038/nphys1170"),
  query = list(type = "URL")
)
resolve_doi(c("10.1038/nphys1170", "10.1000/1"))
is_doi_resolvable(c("10.1000/1", "10.1000/2"))
is_doi_found(c("10.1000/I_DO_NOT_EXIST", "10.1000/1"))

subugoe/biblids documentation built on Dec. 11, 2021, 6:55 a.m.