Fetch full text of articles

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

Value

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

Details

See spplit_auth for authentication

Examples

if (FALSE) { 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 }