| quick-output {huxtable} | R Documentation |
These functions use huxtable to print objects to an output document. They are useful as one-liners for data reporting.
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())
... |
One or more huxtables or R objects with an |
file |
File path for the output. |
borders |
Border width for members of |
open |
Logical. Automatically open the resulting file? |
Objects in ... will be converted to huxtables, with borders added.
If ‘file’ is not specified, the command will fail in non-interactive sessions. In interactive sessions, the default file path is "huxtable-output.xxx" in the working directory; if this already exists, you will be asked to confirm manually before proceeding.
Invisible NULL.
## 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) ## End(Not run)