run_papers_search: Run a papers search providing multiple keywords and...

Description Usage Arguments Examples

Description

This search performs search of papers by provifing multiple levels of keywords. The levels can have one or more keywords and the levels can be as many as desired. Deeper levels makes the search longer.

Usage

1
2
run_papers_search(..., get_papers = TRUE, sleep = 3, verbose = TRUE,
  len_keywords = 3, allow_duplicates = TRUE, save_to_rda = FALSE)

Arguments

...

keywords and keyword levels

get_papers

TRUE to retrieve the papers. FALSE, only return the count

sleep

delay in seconds between search to OnePetro

verbose

TRUE if we want internal messages of the search progress

len_keywords

length of the keywords to form the filename of the rda file

allow_duplicates

if TRUE, it will allow duplicates based on book_title and paper_id

save_to_rda

logical that indicates if we want to save results to an RDA

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
major <- c("gas influx")
minor <- c("overbalanced", "shut in")
lesser <- c("shale", "drilling")
more <- c("gas diffusion", "concentration gradient")
paper_results <- run_papers_search(major, minor, lesser, more,
                                   get_papers = TRUE,       # return with papers
                                   verbose = FALSE,         # show progress
                                   len_keywords = 4,        # naming the data file
                                   allow_duplicates = FALSE) # by paper title and id

## End(Not run)

petro.One documentation built on May 2, 2019, 3:10 p.m.