Description Usage Arguments Forms
This function transforms the tibble which fx_info()
yields (and which may
be modified afterwards) into a certain form.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | fx_output(info, form = "", out_format = "rst", ...)
fxe_output(info, form, out_format, ...)
## S3 method for class 'fxd_output_'
fxe_output(info, form, out_format, ...)
## S3 method for class 'fxd_output_asis'
fxe_output(info, form, out_format, ...)
## S3 method for class 'fxd_output_table'
fxe_output(info, form, out_format, out_file,
digits = 2, ...)
## S3 method for class 'fxd_output_collapse'
fxe_output(info, form, out_format, out_file,
cell_scheme = if (out_format == "latex") "<<name>>: <<value>>" else
"{name}: {value}", digits = 2, cell_sep = ", ", .open = if
(out_format == "latex") "<<" else "{", .close = if (out_format ==
"latex") ">>" else "}", ...)
|
info |
The info tibble |
form |
What form should it take. |
out_format |
What format should the output be in? Default argument is "rst" which means an R object. For now, the other valid values are "markdown", "html" and "latex". |
... |
arguments for the |
out_file |
Should the object be saved somewhere? If yes, provide the path - the object will still be returned in the end. |
cell_scheme |
a |
cell_spec |
form = ""
: This standard does nothing except removing the name column
which should generally only be used for internal purposes. It is only
compatible with out_format = NULL
.
form = "asis"
: This form changes absolutely nothing. It only works with
out_format = NULL
, as well.
form = "table"
: This form generates a table and
works with all output formats. It is mainly powered by knitr::kable()
and
you can pass additional options to both kable
and
kableExtra::kable_styling()
via ...
form = "collapse"
: This form generates one line for every row of the
tibble. ...
are passed on to format()
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.