p_table2pdf | R Documentation |
p_table
returns a subset of crandb
for the given packages and the selected
columns, by default the Package name, the Title and the Description.
p_table2
has a preset value to 2 columns: "Package", "Title" and prints the
results in the console with a left alignment.
p_table5
has a preset value to 5 columns: "Package", "Title", "Description",
"Author", "Maintainer".
p_table7
has a preset value to 7 columns: "Package", "Version", "Published",
"Title", "Description", "Author", "Maintainer".
table_pdf
prints the results of p_table
, p_table5
or p_table7
in pdf file(s). Miktex or Texlive is required.
p_table2pdf
, p_table3pdf
, p_table5pdf
, p_table7pdf
combine the
above functions.
p_table(..., char = NULL, columns = c("Package", "Title", "Description"), crandb = get("crandb", envir = .GlobalEnv)) p_table2(..., char = NULL, crandb = get("crandb", envir = .GlobalEnv)) p_table5(..., char = NULL, crandb = get("crandb", envir = .GlobalEnv)) p_table7(..., char = NULL, crandb = get("crandb", envir = .GlobalEnv)) table_pdf(x, filename = "SelectedPkgs.tex", dir = ".", texops = "a4paper,landscape,10pt", pdf = TRUE, cleantex = TRUE, openpdf = TRUE, verbose = TRUE) p_table2pdf(..., char = NULL, filename = "Selectedpkgs", dir = ".", texops = "a4paper,landscape,10pt", pdf = TRUE, cleantex = TRUE, openpdf = TRUE, verbose = TRUE, crandb = get("crandb", envir = .GlobalEnv)) p_table3pdf(..., char = NULL, filename = "Selectedpkgs", dir = ".", texops = "a4paper,landscape,10pt", pdf = TRUE, cleantex = TRUE, openpdf = TRUE, verbose = TRUE, crandb = get("crandb", envir = .GlobalEnv)) p_table5pdf(..., char = NULL, filename = "Selectedpkgs", dir = ".", texops = "a4paper,landscape,10pt", pdf = TRUE, cleantex = TRUE, openpdf = TRUE, verbose = TRUE, crandb = get("crandb", envir = .GlobalEnv)) p_table7pdf(..., char = NULL, filename = "Selectedpkgs", dir = ".", texops = "a4paper,landscape,10pt", pdf = TRUE, cleantex = TRUE, openpdf = TRUE, verbose = TRUE, 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 |
crandb |
data.frame |
x |
(list of) data.frame produced by |
filename |
character. The file name (with or without extension). |
dir |
character. The directory in which the files are read or written.
Default value |
texops |
character vector. Options passed to instruction |
pdf |
logical. |
cleantex |
logical. Remove the |
openpdf |
logical. Open the generated *.pdf file(s) in a pdf viewer (only if
|
verbose |
logical. Print the path(s) to the generated file(s). |
## 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) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.