fx_output: Effex Function: Render Output

Description Usage Arguments Forms

Description

This function transforms the tibble which fx_info() yields (and which may be modified afterwards) into a certain form.

Usage

 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 "}", ...)

Arguments

info

The info tibble

form

What form should it take. fx_output can be extended via this argument (see fxe_output())

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 fxe_output() methods

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 character that specifies how every cell, in connection with its column name is styled. name enclosed by the characters specified in .open and .close (see the documentation of glue::glue()) refers to the column name and value to the cell content. Note that you will have to specify cell_scheme if you change .open or .close.

cell_spec

Forms


sflippl/tectr documentation built on May 6, 2019, 8:51 a.m.