Skip to content

Commit 660fb36

Browse files
Issue #612 document rbind2 limitation
1 parent 84a6430 commit 660fb36

30 files changed

+1904
-1775
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Package: tinytable
22
Type: Package
33
Title: Simple and Configurable Tables in 'HTML', 'LaTeX', 'Markdown', 'Word', 'PNG', 'PDF', and 'Typst' Formats
44
Description: Create highly customized tables with this simple and dependency-free package. Data frames can be converted to 'HTML', 'LaTeX', 'Markdown', 'Word', 'PNG', 'PDF', or 'Typst' tables. The user interface is minimalist and easy to learn. The syntax is concise. 'HTML' tables can be customized using the flexible 'Bootstrap' framework, and 'LaTeX' code with the 'tabularray' package.
5-
Version: 0.15.1.1
5+
Version: 0.15.1.2
66
Imports:
77
methods
88
Depends:

NEWS.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44

55
Bugs:
66

7-
* Tabulator HTML output now preserves special characters in column names like question marks (thanks to @etiennebacher for the report).
7+
* Tabulator HTML output now preserves special characters in column names like question marks (Issue #611, thanks to @etiennebacher).
8+
* Document `rbind2()` limitations around `format_tt()`/`style_tt()` and string coercion when stacking tables (Issue #612, thanks to @alexploner).
89

910
## 0.15.1
1011

R/rbind2.R

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#' Combine `tinytable` objects by rows (vertically)
22
#'
33
#' @details
4-
#' `format_tt()` calls applied to `x` or `y` are evaluated before binding, to allow distinct formatting for each panel.
4+
#' Transformations recorded via `format_tt()` and `style_tt()` are evaluated at the very end of the rendering pipeline, after `rbind2()` has combined the tables. When headers are inserted or columns differ in type, the combined data is first coerced to character, so subsequent formatting/styling works on strings. Apply `format_tt()` directly to raw data frames before calling `tt()`, or re-run the formatting/styling steps on the combined table to preserve rounding and other rules.
55
#'
66
#' Calls to other `tinytable` functions such as `style_tt()` or `group_tt()` are ignored when applied to `x` or `y`. These functions should be applied to the final table instead.
77
#'
@@ -42,6 +42,12 @@
4242
#' # bind by position rather than column names
4343
#' rbind2(x, y, use_names = FALSE)
4444
#'
45+
#' # `iris` example with pre-tt() formatting
46+
#' dat <- iris[1:3, 1:4]
47+
#' a <- format_tt(dat, i = 1:3, digits = 1) |> tt()
48+
#' b <- format_tt(dat, i = 1:3, digits = 2) |> tt()
49+
#' rbind2(a, b)
50+
#'
4551
#' @importFrom methods rbind2
4652
#' @export
4753
setMethod(

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ tt(x,
135135

136136
## Tutorial
137137

138-
The `tinytable` 0.15.1.1 tutorial will take you much further. It is
138+
The `tinytable` 0.15.1.2 tutorial will take you much further. It is
139139
available in HTML and PDF formats at:
140140
<https://vincentarelbundock.github.io/tinytable/>
141141

docs/CITATION.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ <h2 id="toc-title">On this page</h2>
496496
<h1>Citation</h1>
497497
<p>To cite package ‘tinytable’ in publications use:</p>
498498
<p>
499-
Arel-Bundock V (2025). <em>tinytable: Simple and Configurable Tables in ‘HTML’, ‘LaTeX’, ‘Markdown’, ‘Word’, ‘PNG’, ‘PDF’, and ‘Typst’ Formats</em>. R package version 0.15.1.1, <a href="https://vincentarelbundock.github.io/tinytable/">https://vincentarelbundock.github.io/tinytable/</a>.
499+
Arel-Bundock V (2025). <em>tinytable: Simple and Configurable Tables in ‘HTML’, ‘LaTeX’, ‘Markdown’, ‘Word’, ‘PNG’, ‘PDF’, and ‘Typst’ Formats</em>. R package version 0.15.1.2, <a href="https://vincentarelbundock.github.io/tinytable/">https://vincentarelbundock.github.io/tinytable/</a>.
500500
</p>
501501

502502

docs/NEWS.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,8 @@ <h1>News</h1>
563563
<h2 class="anchored" data-anchor-id="development">Development</h2>
564564
<p>Bugs:</p>
565565
<ul>
566-
<li>Tabulator HTML output now preserves special characters in column names like question marks (thanks to <a href="https://github.com/etiennebacher"><span class="citation" data-cites="etiennebacher">@etiennebacher</span></a> for the report).</li>
566+
<li>Tabulator HTML output now preserves special characters in column names like question marks (Issue <a href="https://github.com/vincentarelbundock/tinytable/issues/611">#611</a>, thanks to <a href="https://github.com/etiennebacher"><span class="citation" data-cites="etiennebacher">@etiennebacher</span></a>).</li>
567+
<li>Document <code>rbind2()</code> limitations around <code>format_tt()</code>/<code>style_tt()</code> and string coercion when stacking tables (Issue <a href="https://github.com/vincentarelbundock/tinytable/issues/612">#612</a>, thanks to <a href="https://github.com/alexploner"><span class="citation" data-cites="alexploner">@alexploner</span></a>).</li>
567568
</ul>
568569
</section>
569570
<section id="section" class="level2">

docs/freeze.rds

1 Byte
Binary file not shown.

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ <h2 class="anchored" data-anchor-id="first-steps">First steps</h2>
606606
</section>
607607
<section id="tutorial" class="level2">
608608
<h2 class="anchored" data-anchor-id="tutorial">Tutorial</h2>
609-
<p>The <code>tinytable</code> 0.15.1.1 tutorial will take you much further. It is available in HTML and PDF formats at: <a href="https://vincentarelbundock.github.io/tinytable/">https://vincentarelbundock.github.io/tinytable/</a></p>
609+
<p>The <code>tinytable</code> 0.15.1.2 tutorial will take you much further. It is available in HTML and PDF formats at: <a href="https://vincentarelbundock.github.io/tinytable/">https://vincentarelbundock.github.io/tinytable/</a></p>
610610

611611

612612
</section>

0 commit comments

Comments
 (0)