R/joining.R
run_papers_search.Rd
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.
run_papers_search(..., get_papers = TRUE, sleep = 3, verbose = TRUE, len_keywords = 3, allow_duplicates = TRUE, save_to_rda = FALSE)
... | 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 |
# 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 # }