p_display | R Documentation |
p_display
, p_display5
and p_display7
open the default browser and
display the results of p_table
, p_table5
and p_table7
in one or
several html pages. If ...
(or char
) is a list, several pages are opened.
p_display(..., char = NULL, columns = c("Package", "Title", "Description"),
dir = tempdir(), verbose = FALSE, crandb = get("crandb", envir =
.GlobalEnv))
p_display5(..., char = NULL, dir = tempdir(), verbose = FALSE,
crandb = get("crandb", envir = .GlobalEnv))
p_display7(..., char = NULL, dir = tempdir(), verbose = FALSE,
crandb = get("crandb", envir = .GlobalEnv))
... |
any format recognized by |
char |
(name to) a character vector. Use this argument if |
columns |
character vector. A sub-vector of |
dir |
character. The directory in which the html file(s) is (are) saved.
|
verbose |
logical. List the generated html file(s). |
crandb |
data.frame |
## 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.
## No package has the 'distillation' keyword. An empty table is returned.
crandb_load(system.file("data", "zcrandb.rda", package = "RWsearch"))
(lst <- s_crandb_list("thermodynamic", "chemical reaction", "distillation"))
if (interactive()) {
dir <- file.path(tempdir(), "pdisplay")
## Vector => 1 page
p_display(RWsearch, pacman, pdfsearch, sos, brew, dir = dir)
## List with 3 items => 3 pages with one empty
p_display5(lst, dir = dir)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.