- Improvement in label management when identical labels are assigned to different columns within the same dataframe.
- A bug in
para_md()
when equations are inline in a paragraph is fixed.
- Remotes SciViews/equatiomatic instead of datalorax/equatiomatic for correct compilation on R-Universe (no remote dependency required to yonicd/texPreview).
- Add {tinytable} table generation for {tabularise} tables as an alternative to {flextable}. Argument
kind =
allows for selecting the table engine to use.
- Vignette and README file enhanced.
-
Now,
equation.default()
swaps variables labels liketabularise()
does. -
equation.default()
now allows for super- or subscripts in labels using ^ or _, and the change affects next character, or if it is a integer (possibly with leading minus sign), the whole integer. -
If a there is a beta_1 term, but no beta_0 or beta_2 term i,
equation.default()
, then, the term is just renamed beta. -
An error was thrown when
tabularise$headtail()
is applied to a data.table with a Date column (and probably other "exotic" objects). Solved.
-
equation()
,equation.default()
andequation_character()
added to extract equations from several objects. -
eq_()
andeq__()
added to ease the inclusion of R-computed equations into R Markdown and Quarto documents.eq_()
also allows to preview the equation in the RStudio viewer pane, or in a web browser.
-
print.paragraph()
nicely displays a preview of the Markdown paragraph (in the Viewer panel if in RStudio). -
A bug in
para_md()
allowed to interpret sometimes the content of LaTeX equations as Markdown text, which led to strange results. Now, LaTeX equations between$...$
are protected by quadruple back ticks and triple dollars on each side, and thus, viewed as code chunks by the Markdown interpreter, and consequently, left intact. -
Code is added in
tabularise()
to prevent Quarto to generate an error about missing caption in a labeled chunk if we do not want one, that is, if the chunk label does not start with "tbl-".
-
The trick to use tab-cap chunk parameter both in R Markdown and in Quarto that was tested in
tabularise_default.data.frame()
is now moved up totabularise()
; meaning it works for all tables created bytabularise()
. -
A
tabularise_default.matrix()
method is added. -
A
tabularise_default.Correlation()
method is added.
-
Tables generated by
tabularise()
now "autofit" columns by default. -
Reasonable defaults are set up on package loading for {flextable} (non-breaking space for big.mark, and Arial 12 for the font)
-
Caption is set from tab-cap chunk options (both for Quarto and R Markdown documents).
- First development version of the package.