Learn R Programming

rcrossref (version 0.5.2)

cr_licenses: Search CrossRef licenses

Description

Search CrossRef licenses

Usage

cr_licenses(query = NULL, offset = NULL, limit = NULL, sort = NULL, order = NULL, .progress = "none", ...)
cr_licenses_(query = NULL, offset = NULL, limit = NULL, sort = NULL, order = NULL, .progress = "none", parse = FALSE, ...)

Arguments

query
Query terms
offset
Number of record to start at, from 1 to infinity.
limit
Number of results to return in the query. Not relavant when searching with specific dois. Default: 20. Max: 1000
sort
(character) Field to sort on, one of score, relevance, updated, deposited, indexed, or published.
order
(character) Sort order, one of 'asc' or 'desc'
.progress
Show a plyr-style progress bar? Options are "none", "text", "tk", "win, and "time". See create_progress_bar for details of each.
...
Named parameters passed on to GET
parse
(logical) Whether to output json FALSE or parse to list TRUE. Default: FALSE

Details

BEWARE: The API will only work for CrossRef DOIs.

NOTE: The API route behind this function does not support filters any more, so the filter parameter has been removed.

References

https://github.com/CrossRef/rest-api-doc/blob/master/rest_api.md

Examples

Run this code
## Not run: 
# cr_licenses()
# # query for something, e.g. a publisher
# cr_licenses(query = 'elsevier')
# 
# # Low level function - does no parsing to data.frame, get json or a list
# cr_licenses_()
# cr_licenses_(query = "elsevier")
# cr_licenses_(query = "elsevier", parse=TRUE)
# ## End(Not run)

Run the code above in your browser using DataLab