Skip to content

Commit

Permalink
Deploying to gh-pages from @ 6dd7296 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentarelbundock committed Feb 9, 2024
1 parent ff927c3 commit 0a0aa0d
Show file tree
Hide file tree
Showing 37 changed files with 3,694 additions and 2,341 deletions.
4 changes: 2 additions & 2 deletions CITATION.html
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ <h1>Citation</h1>

Arel-Bundock V (????). _tinytable: Simple and Configurable Tables in
'HTML', 'LaTeX', 'Markdown', 'Word', 'PNG', 'PDF', and 'Typst'
Formats_. R package version 0.0.3.9005,
Formats_. R package version 0.0.3.9006,
https://github.com/vincentarelbundock/tinytable/,
&lt;https://vincentarelbundock.github.io/tinytable/&gt;.

Expand All @@ -257,7 +257,7 @@ <h1>Citation</h1>
@Manual{,
title = {tinytable: Simple and Configurable Tables in 'HTML', 'LaTeX', 'Markdown', 'Word', 'PNG', 'PDF', and 'Typst' Formats},
author = {Vincent Arel-Bundock},
note = {R package version 0.0.3.9005, https://github.com/vincentarelbundock/tinytable/},
note = {R package version 0.0.3.9006, https://github.com/vincentarelbundock/tinytable/},
url = {https://vincentarelbundock.github.io/tinytable/},
}</code></pre>

Expand Down
1 change: 1 addition & 0 deletions NEWS.html
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ <h2 class="anchored" data-anchor-id="development">Development</h2>
<li><code>j</code> argument in <code>style_tt()</code> and <code>format_tt()</code> now accepts a string vector to match columns. Issue <a href="https://github.com/vincentarelbundock/tinytable//issues/122">#122</a></li>
<li>Line plots: <code>plot_tt(fun = "line")</code></li>
<li><code>format_tt(j=NULL, escape=TRUE)</code> now escapes column headers in addition to all cells.</li>
<li><code>style_tt()</code>: <code>rowspan</code> and <code>colspan</code> arguments are now supported for LaTeX and HTML tables.</li>
</ul>
<p>Bugfix:</p>
<ul>
Expand Down
Binary file modified freeze.rds
Binary file not shown.
66 changes: 41 additions & 25 deletions man/format_tt.html
Original file line number Diff line number Diff line change
Expand Up @@ -337,9 +337,6 @@ <h3 class="anchored" data-anchor-id="arguments">Arguments</h3>
<li>
<p>A single string specifying a Perl-style regular expression used to match column names.</p>
</li>
<li>
<p>Note: If <code>colspan</code> is used, <code>j</code> must be of length 1.</p>
</li>
</ul>
</td>
</tr>
Expand Down Expand Up @@ -464,9 +461,9 @@ <h3 class="anchored" data-anchor-id="examples">Examples</h3>

<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>tinytable_m59sh23woz6mp60du2pd</title>
<title>tinytable_adosiexk7rwim635ptbr</title>
<style>
.table td.tinytable_css_4tcqnubv00xa1ms7xsxg, .table th.tinytable_css_4tcqnubv00xa1ms7xsxg { border-bottom: solid 0.1em #d3d8dc; }
.table td.tinytable_css_bzerl8khbipluh33kgxl, .table th.tinytable_css_bzerl8khbipluh33kgxl { border-bottom: solid 0.1em #d3d8dc; }
</style>
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async="" src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
Expand All @@ -484,7 +481,7 @@ <h3 class="anchored" data-anchor-id="examples">Examples</h3>


<div class="container">
<table class="table table-borderless" id="tinytable_m59sh23woz6mp60du2pd" style="width: auto; margin-left: auto; margin-right: auto;" data-quarto-disable-processing="true">
<table class="table table-borderless" id="tinytable_adosiexk7rwim635ptbr" style="width: auto; margin-left: auto; margin-right: auto;" data-quarto-disable-processing="true">
<thead>

<tr>
Expand All @@ -496,36 +493,55 @@ <h3 class="anchored" data-anchor-id="examples">Examples</h3>
<tbody>
<tr>
<td>10 000</td>
<td>10 000</td>
</tr>
<tr>
<td> 9 998</td>
<td>10 001</td>
</tr>
<tr>
<td> 9 999</td>
<td>10 000</td>
</tr>
<tr>
<td>10 001</td>
<td>10 001</td>
</tr>
</tbody>
</table>
</div>

<script>
function styleCell_tinytable_3tfou56qnbtnfrja0w13(i, j, css_id) {
var table = document.getElementById("tinytable_m59sh23woz6mp60du2pd");
table.rows[i].cells[j].classList.add(css_id);
}
function insertSpanRow(i, colspan, content) {
var table = document.getElementById('tinytable_m59sh23woz6mp60du2pd');
var newRow = table.insertRow(i);
var newCell = newRow.insertCell(0);
newCell.setAttribute("colspan", colspan);
// newCell.innerText = content;
// this may be unsafe, but innerText does not interpret <br>
newCell.innerHTML = content;
}
window.addEventListener('load', function () { styleCell_tinytable_3tfou56qnbtnfrja0w13(0, 0, 'tinytable_css_4tcqnubv00xa1ms7xsxg') })
window.addEventListener('load', function () { styleCell_tinytable_3tfou56qnbtnfrja0w13(0, 1, 'tinytable_css_4tcqnubv00xa1ms7xsxg') })
function styleCell_tinytable_fb6d5cjdyr4rs08qcrd6(i, j, css_id) {
var table = document.getElementById("tinytable_adosiexk7rwim635ptbr");
table.rows[i].cells[j].classList.add(css_id);
}
function spanCell_tinytable_fb6d5cjdyr4rs08qcrd6(i, j, rowspan, colspan) {
var table = document.getElementById("tinytable_adosiexk7rwim635ptbr");
const targetRow = table.rows[i];
const targetCell = targetRow.cells[j];
for (let r = 0; r < rowspan; r++) {
// Only start deleting cells to the right for the first row (r == 0)
if (r === 0) {
// Delete cells to the right of the target cell in the first row
for (let c = colspan - 1; c > 0; c--) {
if (table.rows[i + r].cells[j + c]) {
table.rows[i + r].deleteCell(j + c);
}
}
}
// For rows below the first, delete starting from the target column
if (r > 0) {
for (let c = colspan - 1; c >= 0; c--) {
if (table.rows[i + r] && table.rows[i + r].cells[j]) {
table.rows[i + r].deleteCell(j);
}
}
}
}
// Set rowspan and colspan of the target cell
targetCell.rowSpan = rowspan;
targetCell.colSpan = colspan;
}

window.addEventListener('load', function () { styleCell_tinytable_fb6d5cjdyr4rs08qcrd6(0, 0, 'tinytable_css_bzerl8khbipluh33kgxl') })
window.addEventListener('load', function () { styleCell_tinytable_fb6d5cjdyr4rs08qcrd6(0, 1, 'tinytable_css_bzerl8khbipluh33kgxl') })
</script>


Expand Down
117 changes: 68 additions & 49 deletions man/group_tt.html
Original file line number Diff line number Diff line change
Expand Up @@ -369,13 +369,13 @@ <h3 class="anchored" data-anchor-id="examples">Examples</h3>

<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>tinytable_8idkoa8v4uycom61j5ct</title>
<title>tinytable_gnv6k1f1i7nm1npngqkj</title>
<style>
.table td.tinytable_css_upgg5ikhsai6ct1gyjdn, .table th.tinytable_css_upgg5ikhsai6ct1gyjdn { border-bottom: solid 0.1em #d3d8dc; }
.table td.tinytable_css_u2ofkrkf9z1wuqrom2b7, .table th.tinytable_css_u2ofkrkf9z1wuqrom2b7 { text-align: center; }
.table td.tinytable_css_s5846y1ka0m0nyg268oe, .table th.tinytable_css_s5846y1ka0m0nyg268oe { border-bottom: solid 0.05em #d3d8dc; }
.table td.tinytable_css_ep6j92ui7saqcwlmuv3n, .table th.tinytable_css_ep6j92ui7saqcwlmuv3n { padding-left: 1em; }
.table td.tinytable_css_u19d9hfnojhzv482zms4, .table th.tinytable_css_u19d9hfnojhzv482zms4 { text-align: center; }
.table td.tinytable_css_bw71p4tn7yg38cofbpby, .table th.tinytable_css_bw71p4tn7yg38cofbpby { border-bottom: solid 0.1em #d3d8dc; }
.table td.tinytable_css_0cjvkreaoyxfd232kf4y, .table th.tinytable_css_0cjvkreaoyxfd232kf4y { text-align: center; }
.table td.tinytable_css_7qec8jzzsxiuj7ptmfcx, .table th.tinytable_css_7qec8jzzsxiuj7ptmfcx { border-bottom: solid 0.05em #d3d8dc; }
.table td.tinytable_css_39ku2zdug0rqanc4adxk, .table th.tinytable_css_39ku2zdug0rqanc4adxk { padding-left: 1em; }
.table td.tinytable_css_4kt5si6a2y2z96psjlac, .table th.tinytable_css_4kt5si6a2y2z96psjlac { text-align: center; }
</style>
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async="" src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
Expand All @@ -393,7 +393,7 @@ <h3 class="anchored" data-anchor-id="examples">Examples</h3>


<div class="container">
<table class="table table-borderless" id="tinytable_8idkoa8v4uycom61j5ct" style="width: auto; margin-left: auto; margin-right: auto;" data-quarto-disable-processing="true">
<table class="table table-borderless" id="tinytable_gnv6k1f1i7nm1npngqkj" style="width: auto; margin-left: auto; margin-right: auto;" data-quarto-disable-processing="true">
<thead>
<tr>
<th scope="col" align="center" colspan="1"> </th>
Expand Down Expand Up @@ -486,48 +486,67 @@ <h3 class="anchored" data-anchor-id="examples">Examples</h3>
</div>

<script>
function styleCell_tinytable_wtmf5g7xpf2eewzjnvg1(i, j, css_id) {
var table = document.getElementById("tinytable_8idkoa8v4uycom61j5ct");
table.rows[i].cells[j].classList.add(css_id);
}
function insertSpanRow_j5qhhyr61z7qbdg9e9uz(i, colspan, content) {
var table = document.getElementById('tinytable_8idkoa8v4uycom61j5ct');
var newRow = table.insertRow(i);
var newCell = newRow.insertCell(0);
newCell.setAttribute("colspan", colspan);
// newCell.innerText = content;
// this may be unsafe, but innerText does not interpret <br>
newCell.innerHTML = content;
}
window.addEventListener('load', function () { styleCell_tinytable_wtmf5g7xpf2eewzjnvg1(1, 0, 'tinytable_css_upgg5ikhsai6ct1gyjdn') })
window.addEventListener('load', function () { styleCell_tinytable_wtmf5g7xpf2eewzjnvg1(1, 1, 'tinytable_css_upgg5ikhsai6ct1gyjdn') })
window.addEventListener('load', function () { styleCell_tinytable_wtmf5g7xpf2eewzjnvg1(1, 2, 'tinytable_css_upgg5ikhsai6ct1gyjdn') })
window.addEventListener('load', function () { styleCell_tinytable_wtmf5g7xpf2eewzjnvg1(1, 3, 'tinytable_css_upgg5ikhsai6ct1gyjdn') })
window.addEventListener('load', function () { styleCell_tinytable_wtmf5g7xpf2eewzjnvg1(1, 4, 'tinytable_css_upgg5ikhsai6ct1gyjdn') })
window.addEventListener('load', function () { styleCell_tinytable_wtmf5g7xpf2eewzjnvg1(0, 0, 'tinytable_css_u2ofkrkf9z1wuqrom2b7') })
window.addEventListener('load', function () { styleCell_tinytable_wtmf5g7xpf2eewzjnvg1(0, 1, 'tinytable_css_u2ofkrkf9z1wuqrom2b7') })
window.addEventListener('load', function () { styleCell_tinytable_wtmf5g7xpf2eewzjnvg1(0, 2, 'tinytable_css_u2ofkrkf9z1wuqrom2b7') })
window.addEventListener('load', function () { styleCell_tinytable_wtmf5g7xpf2eewzjnvg1(0, 3, 'tinytable_css_u2ofkrkf9z1wuqrom2b7') })
window.addEventListener('load', function () { styleCell_tinytable_wtmf5g7xpf2eewzjnvg1(0, 4, 'tinytable_css_u2ofkrkf9z1wuqrom2b7') })
window.addEventListener('load', function () { styleCell_tinytable_wtmf5g7xpf2eewzjnvg1(0, 1, 'tinytable_css_s5846y1ka0m0nyg268oe') })
window.addEventListener('load', function () { styleCell_tinytable_wtmf5g7xpf2eewzjnvg1(0, 2, 'tinytable_css_s5846y1ka0m0nyg268oe') })
window.addEventListener('load', function () { insertSpanRow_j5qhhyr61z7qbdg9e9uz(9, 5, 'World') });
window.addEventListener('load', function () { insertSpanRow_j5qhhyr61z7qbdg9e9uz(4, 5, 'Hello') });
window.addEventListener('load', function () { styleCell_tinytable_wtmf5g7xpf2eewzjnvg1(2, 0, 'tinytable_css_ep6j92ui7saqcwlmuv3n') })
window.addEventListener('load', function () { styleCell_tinytable_wtmf5g7xpf2eewzjnvg1(3, 0, 'tinytable_css_ep6j92ui7saqcwlmuv3n') })
window.addEventListener('load', function () { styleCell_tinytable_wtmf5g7xpf2eewzjnvg1(5, 0, 'tinytable_css_ep6j92ui7saqcwlmuv3n') })
window.addEventListener('load', function () { styleCell_tinytable_wtmf5g7xpf2eewzjnvg1(6, 0, 'tinytable_css_ep6j92ui7saqcwlmuv3n') })
window.addEventListener('load', function () { styleCell_tinytable_wtmf5g7xpf2eewzjnvg1(7, 0, 'tinytable_css_ep6j92ui7saqcwlmuv3n') })
window.addEventListener('load', function () { styleCell_tinytable_wtmf5g7xpf2eewzjnvg1(8, 0, 'tinytable_css_ep6j92ui7saqcwlmuv3n') })
window.addEventListener('load', function () { styleCell_tinytable_wtmf5g7xpf2eewzjnvg1(9, 0, 'tinytable_css_ep6j92ui7saqcwlmuv3n') })
window.addEventListener('load', function () { styleCell_tinytable_wtmf5g7xpf2eewzjnvg1(11, 0, 'tinytable_css_ep6j92ui7saqcwlmuv3n') })
window.addEventListener('load', function () { styleCell_tinytable_wtmf5g7xpf2eewzjnvg1(12, 0, 'tinytable_css_ep6j92ui7saqcwlmuv3n') })
window.addEventListener('load', function () { styleCell_tinytable_wtmf5g7xpf2eewzjnvg1(13, 0, 'tinytable_css_ep6j92ui7saqcwlmuv3n') })
window.addEventListener('load', function () { styleCell_tinytable_wtmf5g7xpf2eewzjnvg1(0, 0, 'tinytable_css_u19d9hfnojhzv482zms4') })
window.addEventListener('load', function () { styleCell_tinytable_wtmf5g7xpf2eewzjnvg1(0, 1, 'tinytable_css_u19d9hfnojhzv482zms4') })
window.addEventListener('load', function () { styleCell_tinytable_wtmf5g7xpf2eewzjnvg1(0, 2, 'tinytable_css_u19d9hfnojhzv482zms4') })
window.addEventListener('load', function () { styleCell_tinytable_wtmf5g7xpf2eewzjnvg1(0, 3, 'tinytable_css_u19d9hfnojhzv482zms4') })
window.addEventListener('load', function () { styleCell_tinytable_wtmf5g7xpf2eewzjnvg1(0, 4, 'tinytable_css_u19d9hfnojhzv482zms4') })
function styleCell_tinytable_xybru1f03jvvbar97m9n(i, j, css_id) {
var table = document.getElementById("tinytable_gnv6k1f1i7nm1npngqkj");
table.rows[i].cells[j].classList.add(css_id);
}
function spanCell_tinytable_xybru1f03jvvbar97m9n(i, j, rowspan, colspan) {
var table = document.getElementById("tinytable_gnv6k1f1i7nm1npngqkj");
const targetRow = table.rows[i];
const targetCell = targetRow.cells[j];
for (let r = 0; r < rowspan; r++) {
// Only start deleting cells to the right for the first row (r == 0)
if (r === 0) {
// Delete cells to the right of the target cell in the first row
for (let c = colspan - 1; c > 0; c--) {
if (table.rows[i + r].cells[j + c]) {
table.rows[i + r].deleteCell(j + c);
}
}
}
// For rows below the first, delete starting from the target column
if (r > 0) {
for (let c = colspan - 1; c >= 0; c--) {
if (table.rows[i + r] && table.rows[i + r].cells[j]) {
table.rows[i + r].deleteCell(j);
}
}
}
}
// Set rowspan and colspan of the target cell
targetCell.rowSpan = rowspan;
targetCell.colSpan = colspan;
}

window.addEventListener('load', function () { styleCell_tinytable_xybru1f03jvvbar97m9n(1, 0, 'tinytable_css_bw71p4tn7yg38cofbpby') })
window.addEventListener('load', function () { styleCell_tinytable_xybru1f03jvvbar97m9n(1, 1, 'tinytable_css_bw71p4tn7yg38cofbpby') })
window.addEventListener('load', function () { styleCell_tinytable_xybru1f03jvvbar97m9n(1, 2, 'tinytable_css_bw71p4tn7yg38cofbpby') })
window.addEventListener('load', function () { styleCell_tinytable_xybru1f03jvvbar97m9n(1, 3, 'tinytable_css_bw71p4tn7yg38cofbpby') })
window.addEventListener('load', function () { styleCell_tinytable_xybru1f03jvvbar97m9n(1, 4, 'tinytable_css_bw71p4tn7yg38cofbpby') })
window.addEventListener('load', function () { styleCell_tinytable_xybru1f03jvvbar97m9n(0, 0, 'tinytable_css_0cjvkreaoyxfd232kf4y') })
window.addEventListener('load', function () { styleCell_tinytable_xybru1f03jvvbar97m9n(0, 1, 'tinytable_css_0cjvkreaoyxfd232kf4y') })
window.addEventListener('load', function () { styleCell_tinytable_xybru1f03jvvbar97m9n(0, 2, 'tinytable_css_0cjvkreaoyxfd232kf4y') })
window.addEventListener('load', function () { styleCell_tinytable_xybru1f03jvvbar97m9n(0, 3, 'tinytable_css_0cjvkreaoyxfd232kf4y') })
window.addEventListener('load', function () { styleCell_tinytable_xybru1f03jvvbar97m9n(0, 4, 'tinytable_css_0cjvkreaoyxfd232kf4y') })
window.addEventListener('load', function () { styleCell_tinytable_xybru1f03jvvbar97m9n(0, 1, 'tinytable_css_7qec8jzzsxiuj7ptmfcx') })
window.addEventListener('load', function () { styleCell_tinytable_xybru1f03jvvbar97m9n(0, 2, 'tinytable_css_7qec8jzzsxiuj7ptmfcx') })
window.addEventListener('load', function () { insertSpanRow_11mppstw809c1xsk8pbz(9, 5, 'World') });
window.addEventListener('load', function () { insertSpanRow_11mppstw809c1xsk8pbz(4, 5, 'Hello') });
window.addEventListener('load', function () { styleCell_tinytable_xybru1f03jvvbar97m9n(2, 0, 'tinytable_css_39ku2zdug0rqanc4adxk') })
window.addEventListener('load', function () { styleCell_tinytable_xybru1f03jvvbar97m9n(3, 0, 'tinytable_css_39ku2zdug0rqanc4adxk') })
window.addEventListener('load', function () { styleCell_tinytable_xybru1f03jvvbar97m9n(5, 0, 'tinytable_css_39ku2zdug0rqanc4adxk') })
window.addEventListener('load', function () { styleCell_tinytable_xybru1f03jvvbar97m9n(6, 0, 'tinytable_css_39ku2zdug0rqanc4adxk') })
window.addEventListener('load', function () { styleCell_tinytable_xybru1f03jvvbar97m9n(7, 0, 'tinytable_css_39ku2zdug0rqanc4adxk') })
window.addEventListener('load', function () { styleCell_tinytable_xybru1f03jvvbar97m9n(8, 0, 'tinytable_css_39ku2zdug0rqanc4adxk') })
window.addEventListener('load', function () { styleCell_tinytable_xybru1f03jvvbar97m9n(9, 0, 'tinytable_css_39ku2zdug0rqanc4adxk') })
window.addEventListener('load', function () { styleCell_tinytable_xybru1f03jvvbar97m9n(11, 0, 'tinytable_css_39ku2zdug0rqanc4adxk') })
window.addEventListener('load', function () { styleCell_tinytable_xybru1f03jvvbar97m9n(12, 0, 'tinytable_css_39ku2zdug0rqanc4adxk') })
window.addEventListener('load', function () { styleCell_tinytable_xybru1f03jvvbar97m9n(13, 0, 'tinytable_css_39ku2zdug0rqanc4adxk') })
window.addEventListener('load', function () { styleCell_tinytable_xybru1f03jvvbar97m9n(0, 0, 'tinytable_css_4kt5si6a2y2z96psjlac') })
window.addEventListener('load', function () { styleCell_tinytable_xybru1f03jvvbar97m9n(0, 1, 'tinytable_css_4kt5si6a2y2z96psjlac') })
window.addEventListener('load', function () { styleCell_tinytable_xybru1f03jvvbar97m9n(0, 2, 'tinytable_css_4kt5si6a2y2z96psjlac') })
window.addEventListener('load', function () { styleCell_tinytable_xybru1f03jvvbar97m9n(0, 3, 'tinytable_css_4kt5si6a2y2z96psjlac') })
window.addEventListener('load', function () { styleCell_tinytable_xybru1f03jvvbar97m9n(0, 4, 'tinytable_css_4kt5si6a2y2z96psjlac') })
</script>


Expand Down
Loading

0 comments on commit 0a0aa0d

Please sign in to comment.