Learn R Programming

rcrossref (version 0.5.2)

cr_ft_links: Get full text links from a DOI

Description

Get full text links from a DOI

Usage

cr_ft_links(doi, type = "xml", ...)

Arguments

doi
A DOI
type
One of xml, plain, pdf, or all
...
Named parameters passed on to GET

Value

NULL if no full text links given; a list of tdmurl objects if links found.

Details

Note that cr_ft_links is not vectorized.

Note that some links returned will not in fact lead you to full text content as you would understandbly think and expect. That is, if you use the filter parameter with e.g., cr_works and filter to only full text content, some links may actually give back only metadata for an article. Elsevier is perhaps the worst offender, for one because they have a lot of entries in Crossref TDM, but most of the links that are apparently full text are not in fact full text, but only metadata. You can get full text if you are part of a subscribing institution to that specific Elsever content, but otherwise, you're SOL.

Note that there are still some bugs in the data returned form CrossRef. For example, for the publisher eLife, they return a single URL with content-type application/pdf, but the URL is not for a PDF, but for both XML and PDF, and content-type can be set with that URL as either XML or PDF to get that type. Anyway, expect changes...

Examples

Run this code
## Not run: 
# # pdf link
# cr_ft_links(doi = "10.5555/515151", "pdf")
# cr_ft_links(doi = "10.5555/515151", "pdf")
# 
# # all links
# cr_ft_links(doi = "10.3897/phytokeys.42.7604", type = "all")
# 
# # Get doi first from other fxn, then pass here
# out <- cr_works(filter=c(has_full_text = TRUE), limit = 50)
# dois <- out$data$DOI
# cr_ft_links(dois[2], "xml")
# cr_ft_links(dois[1], "plain")
# cr_ft_links(dois[1], "all")
# 
# # (most likely) No links
# cr_ft_links(cr_r(1))
# cr_ft_links(doi="10.3389/fnagi.2014.00130")
# ## End(Not run)

Run the code above in your browser using DataLab