| print.huxtable {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)
x |
A huxtable. |
... |
Options passed to other methods. |
output |
One of |
print prints the huxtable and returns NULL invisibly.
format returns a string representation from to_latex(), to_html() etc.
## Not run: # to print LaTeX output: options(huxtable.print = print_latex) # to print huxtables like data frames: options(huxtable.print = function(x, ...) print(as.data.frame(x))) ## End(Not run) ht <- hux(a = 1:3, b = 4:6) format(ht, output = 'screen') format(ht, output = 'md')