## 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"))
## Use a large console (useful for p_table2())
p_table2(pacman, pdfsearch, sos)
(lst <- s_crandb_list("thermodynamic", "chemical reaction", "distillation"))
p_table2(lst)
## Print the tables as pdf files and open them in a pdf viewer.
if (interactive()) {
dir <- file.path(tempdir(), "ptablepdf")
p_table5pdf(pacman, pdfsearch, sos, filename = "table5", dir = dir)
p_table7pdf(lst, filename = "table7", dir = dir, cleantex = FALSE)
}
Run the code above in your browser using DataLab