R: Quickly create a PDF, HTML, Word or Excel document showing...

quick-output {huxtable} | R Documentation

## 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)

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

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

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

### 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.

### 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.

### Value

Invisible `NULL`.

### Examples

    ## 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)

[Package huxtable version 3.0.0 Index]