Learn R Programming

rplos (version 0.6.4)

citations: Search PLOS Rich Citations API

Description

Search PLOS Rich Citations API

Usage

citations(uri = NULL, doi = NULL, parse = FALSE, ...)

Arguments

uri
(character) A URI, of the form http://dx.doi.org/
doi
(character) A PLOS journals DOI
parse
(logical) Passed to fromJSON, toggles whether we return json parsed to data.frame's where possible, or not. Default: FALSE
...
Curl options passed to GET

Value

A list

Details

To get an API key, email ploslabs@plos.org and request a key

References

http://api.richcitations.org/

Examples

Run this code
## Not run: 
# # get citations for an article (via its DOI)
# uri <- "http://dx.doi.org/10.1371%2Fjournal.pone.0000000"
# citations(uri)
# citations(uri, parse = TRUE)
# 
# # pass in a DOI, url encoded or not
# citations(doi = "10.1371%2Fjournal.pone.0000000")
# citations(doi = "10.1371/journal.pone.0000000")
# ids <- searchplos(q='ecology', fl='id', limit = 20)$data$id
# citations(doi = ids[1])
# ## End(Not run)

Run the code above in your browser using DataLab