sp_lit_text: Fetch full text of articles

Description Usage Arguments Details Value Examples

View source: R/sp_lit_text.R

Description

Fetch full text of articles

Usage

1
sp_lit_text(x, from = "pubmed", progress = TRUE)

Arguments

x

An object of class lit_meta or lit_meta_one

from

(character) one or more of: bhl, pubmed (default: pubmed)

progress

(logical) print a progress bar. default: TRUE

Details

See spplit_auth for authentication

Value

An object of class lit_text, or a list of such objects

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
library(spocc)
taxa <- c('Pinus contorta', 'Accipiter striatus')
res <- occ(query=taxa, from = c("gbif", "bison"), limit = 15)
w <- sp_lit_meta(x = res, from = c("pubmed", "bhl"))
w
w[[1]]$bhl
# x = w[[1]]; from = c("pubmed", "bhl")
out <- sp_lit_text(x = w[[1]], from = c("pubmed", "bhl"))
out

## End(Not run)

ropenscilabs/spplit documentation built on Sept. 29, 2020, 3:05 a.m.