methods-PaperDownloader: PaperDownloader methods

Description Usage Arguments Value See Also Examples

Description

Methods to work with a PaperDownloader. getPapersIds gets the number of papers possible to download that relate the entities. And updates the PaperDownloader. downloadPapers downloads the papers (n is the max desired to download). getPapers gets the list of downloaded Paper objects (n is the max desired to download).

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
"methods-PaperDownloader"(paperDownloader)

getPapersIds(paperDownloader)

## S4 method for signature 'PaperDownloader'
getPapersIds(paperDownloader)

downloadPapers(paperDownloader, ...)

## S4 method for signature 'PaperDownloader'
downloadPapers(paperDownloader, n = -1)

getPapers(paperDownloader, ...)

## S4 method for signature 'PaperDownloader'
getPapers(paperDownloader, n = -1)

Arguments

paperDownloader

a PaperDownloader object.

...

not in use.

n

(optional) numeric parameter.

Value

PaperDownloader object with updated values. Or a list of Paper objects.

See Also

AllClasses

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Create a PaperDownloader to query for two entities relations
entities <- c('terminal differentiation', 'basal-like');
pprDldr <- PaperDownloader(entities=entities, papersDir='/tmp/pmcERR/');

## Get the number of papers possible to download, updating the pprDldr
pprDldr <- getPapersIds(pprDldr);

## Download the first 3 papers
pprDldr <- downloadPapers(pprDldr, n=3);

## Get the first 3 papers
papers <- getPapers(pprDldr, n=3);
length(papers);

jcrodriguez1989/pmcERR documentation built on May 20, 2019, 10:20 p.m.