print.huxtable | R Documentation |
By default huxtables are printed using print_screen()
. In certain cases, for example
in Sweave documents, it may be
useful to change this. You can do so by setting options("huxtable.print")
.
## S3 method for class 'huxtable'
print(x, ...)
## S3 method for class 'huxtable'
format(x, ..., output = c("latex", "html", "md", "screen", "rtf"))
x |
A huxtable. |
... |
Options passed to other methods. |
output |
Output format. One of |
print
prints the huxtable and returns NULL
invisibly.
format
returns a string representation from to_latex()
, to_html()
etc.
To change how huxtables are printed within knitr
, see
options("huxtable.knitr_output_format")
in huxtable-options
## Not run:
# to print LaTeX output:
options(huxtable.print = print_latex)
## End(Not run)
format(jams, output = "screen")
format(jams, output = "md")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.