# NOT RUN {
## In real life, download crandb from CRAN or load it from your directory
## with functions crandb_down() or crandb_load().
## In this example, we use a small file.
crandb_load(system.file("data", "zcrandb.rda", package = "RWsearch"))
## Search in crandb
vec <- s_crandb(search, find, select = "PT") ; vec
lst <- s_crandb_list(thermodynamic, "chemical reaction") ; lst
dir <- file.path(tempdir(), "ptext")
# }
# NOT RUN {
## Generate a txt file
p_text(vec[1:5], filename = "SearchFind.txt", dir = dir,
repos = "https://cloud.r-project.org")
## Generate 2 tex + 2 pdf files (10-20 seconds)
p_text2pdf(lst, dir = dir, cleantex = FALSE, openpdf = FALSE,
repos = "https://cloud.r-project.org")
# }
Run the code above in your browser using DataLab