Learn R Programming

huxtable (version 4.0.0)

quick-output: Quickly create a PDF, HTML, Word or Excel document showing matrices, data frames, et cetera.

Description

Quickly create a PDF, HTML, Word or Excel document showing matrices, data frames, et cetera.

Usage

quick_pdf(..., file = confirm("huxtable-output.pdf"), borders = 0.4,
  open = interactive())

quick_html(..., file = confirm("huxtable-output.html"), borders = 0.4, open = interactive())

quick_docx(..., file = confirm("huxtable-output.docx"), borders = 0.4, open = interactive())

quick_xlsx(..., file = confirm("huxtable-output.xlsx"), borders = 0.4, open = interactive())

Arguments

...

One or more huxtables or R objects with an as_huxtable method.

file

File path for the output.

borders

Border width for members of ... that are not huxtables.

open

Logical. Automatically open the resulting file?

Value

Invisible NULL.

Details

Objects in ... will be converted to huxtables, with borders added.

If ‘file’ is not specified, the default file path is "huxtable-output.xxx" in the working directory. If the session is interactive, you'll be asked to confirm any overwrite; if the session is not interactive, the command will fail.

Examples

Run this code
# NOT RUN {
m <- matrix(1:4, 2, 2)
dfr <- data.frame(a = 1:5, b = 1:5)
quick_pdf(m, dfr)
quick_html(m, dfr)
quick_docx(m, dfr)
quick_xlsx(m, dfr)
# }

Run the code above in your browser using DataLab