full_text_urls: Create urls for full text articles in PLOS journals.

Description Usage Arguments Details Value Examples

View source: R/fulltext.R

Description

Create urls for full text articles in PLOS journals.

Usage

1

Arguments

doi

One or more doi's

Details

We give NA for DOIs that are for annotations. Those can easily be removed like Filter(Negate(is.na), res)

Value

One or more urls, same length as input vector of dois

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## Not run: 
full_text_urls(doi='10.1371/journal.pone.0086169')
full_text_urls(doi='10.1371/journal.pbio.1001845')
full_text_urls(doi=c('10.1371/journal.pone.0086169',
  '10.1371/journal.pbio.1001845'))

# contains some annotation DOIs
dois <- searchplos(q = "*:*", fq='doc_type:full', limit=20)$data$id
full_text_urls(dois)

# contains no annotation DOIs
dois <- searchplos(q = "*:*", 
  fq=list('doc_type:full', 'article_type:"Research Article"'), 
limit=20)$data$id
full_text_urls(dois)

## End(Not run)

rplos documentation built on Feb. 24, 2021, 1:06 a.m.