Skip to content

Commit

Permalink
Deploying to gh-pages from @ e171065 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentarelbundock committed Nov 4, 2024
1 parent f3c6b3a commit d52621a
Show file tree
Hide file tree
Showing 47 changed files with 1,532 additions and 1,440 deletions.
2 changes: 1 addition & 1 deletion CITATION.html
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ <h2 id="toc-title">On this page</h2>
<h1>Citation</h1>
<p>To cite package ‘tinytable’ in publications use:</p>
<p>
Arel-Bundock V (????). <em>tinytable: Simple and Configurable Tables in ‘HTML’, ‘LaTeX’, ‘Markdown’, ‘Word’, ‘PNG’, ‘PDF’, and ‘Typst’ Formats</em>. R package version 0.5.0.2, <a href="https://vincentarelbundock.github.io/tinytable/">https://vincentarelbundock.github.io/tinytable/</a>.
Arel-Bundock V (????). <em>tinytable: Simple and Configurable Tables in ‘HTML’, ‘LaTeX’, ‘Markdown’, ‘Word’, ‘PNG’, ‘PDF’, and ‘Typst’ Formats</em>. R package version 0.5.0.3, <a href="https://vincentarelbundock.github.io/tinytable/">https://vincentarelbundock.github.io/tinytable/</a>.
</p>


Expand Down
1 change: 1 addition & 0 deletions NEWS.html
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,7 @@ <h2 class="anchored" data-anchor-id="development">Development</h2>
<ul>
<li>Major refactor of the style internals. HTML, LaTeX, and Typst documents should be much more concise and efficient.</li>
<li><code>style_tt()</code>: the <code>i</code> and <code>j</code> indices are now consistent in all formats. They refer to rows <em>after</em> the insertion of row groups.</li>
<li><code>save_tt()</code> respects <code>options(tinytable_save_overwrite=TRUE)</code></li>
</ul>
<p>Bugs:</p>
<ul>
Expand Down
Binary file modified freeze.rds
Binary file not shown.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ <h2 class="anchored" data-anchor-id="first-steps">First steps</h2>
</section>
<section id="tutorial" class="level2">
<h2 class="anchored" data-anchor-id="tutorial">Tutorial</h2>
<p>The <code>tinytable</code> 0.5.0.2 tutorial will take you much further. It is available in two formats:</p>
<p>The <code>tinytable</code> 0.5.0.3 tutorial will take you much further. It is available in two formats:</p>
<ul>
<li><a href="https://vincentarelbundock.github.io/tinytable/vignettes/tinytable_tutorial.pdf">Tutorial (PDF)</a></li>
<li>Tutorial (HTML):
Expand Down
162 changes: 92 additions & 70 deletions man/format_tt.html

Large diffs are not rendered by default.

194 changes: 97 additions & 97 deletions man/group_tt.html

Large diffs are not rendered by default.

72 changes: 36 additions & 36 deletions man/rbind2-tinytable-tinytable-method.html
Original file line number Diff line number Diff line change
Expand Up @@ -488,8 +488,8 @@ <h3 class="anchored" data-anchor-id="examples">Examples</h3>

<script>

function styleCell_d0qjgkjnua9km3iilgt4(i, j, css_id) {
var table = document.getElementById("tinytable_d0qjgkjnua9km3iilgt4");
function styleCell_9tu2hvsouoz92726dlz4(i, j, css_id) {
var table = document.getElementById("tinytable_9tu2hvsouoz92726dlz4");
var cell = table.rows[i]?.cells[j]; // Safe navigation to avoid errors
if (cell) {
console.log(`Styling cell at (${i}, ${j}) with class ${css_id}`);
Expand All @@ -499,16 +499,16 @@ <h3 class="anchored" data-anchor-id="examples">Examples</h3>
}
}
function insertSpanRow(i, colspan, content) {
var table = document.getElementById('tinytable_d0qjgkjnua9km3iilgt4');
var table = document.getElementById('tinytable_9tu2hvsouoz92726dlz4');
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;
}
function spanCell_d0qjgkjnua9km3iilgt4(i, j, rowspan, colspan) {
var table = document.getElementById("tinytable_d0qjgkjnua9km3iilgt4");
function spanCell_9tu2hvsouoz92726dlz4(i, j, rowspan, colspan) {
var table = document.getElementById("tinytable_9tu2hvsouoz92726dlz4");
const targetRow = table.rows[i];
const targetCell = targetRow.cells[j];
for (let r = 0; r < rowspan; r++) {
Expand Down Expand Up @@ -538,24 +538,24 @@ <h3 class="anchored" data-anchor-id="examples">Examples</h3>
window.addEventListener('load', function () {
var cellsToStyle = [
// tinytable style arrays after
{ positions: [ { i: 0, j: 0 }, { i: 6, j: 0 }, { i: 0, j: 1 }, { i: 6, j: 1 }, { i: 0, j: 2 }, { i: 6, j: 2 }, { i: 0, j: 3 }, { i: 6, j: 3 }, { i: 0, j: 4 }, { i: 6, j: 4 }, ], css_id: 'tinytable_css_79y06mwwycyxq2jtnabm',},
{ positions: [ { i: 0, j: 0 }, { i: 6, j: 0 }, { i: 0, j: 1 }, { i: 6, j: 1 }, { i: 0, j: 2 }, { i: 6, j: 2 }, { i: 0, j: 3 }, { i: 6, j: 3 }, { i: 0, j: 4 }, { i: 6, j: 4 }, ], css_id: 'tinytable_css_nyy22q7qnv7epfc0tn24',},
];

// Loop over the arrays to style the cells
cellsToStyle.forEach(function (group) {
group.positions.forEach(function (cell) {
styleCell_d0qjgkjnua9km3iilgt4(cell.i, cell.j, group.css_id);
styleCell_9tu2hvsouoz92726dlz4(cell.i, cell.j, group.css_id);
});
});
});
</script>

<style>
/* tinytable css entries after */
.table td.tinytable_css_79y06mwwycyxq2jtnabm, .table th.tinytable_css_79y06mwwycyxq2jtnabm { border-bottom: solid #d3d8dc 0.1em; }
.table td.tinytable_css_nyy22q7qnv7epfc0tn24, .table th.tinytable_css_nyy22q7qnv7epfc0tn24 { border-bottom: solid #d3d8dc 0.1em; }
</style>
<div class="container">
<table class="table table-borderless" id="tinytable_d0qjgkjnua9km3iilgt4" style="width: auto; margin-left: auto; margin-right: auto;" data-quarto-disable-processing="true">
<table class="table table-borderless" id="tinytable_9tu2hvsouoz92726dlz4" style="width: auto; margin-left: auto; margin-right: auto;" data-quarto-disable-processing="true">
<thead>
</thead><caption>Combine two tiny tables.</caption>
<tbody><tr>
Expand Down Expand Up @@ -621,8 +621,8 @@ <h3 class="anchored" data-anchor-id="examples">Examples</h3>

<script>

function styleCell_qm7hnly7p8ac7bswn5ym(i, j, css_id) {
var table = document.getElementById("tinytable_qm7hnly7p8ac7bswn5ym");
function styleCell_h4845sftiq0sumirvtcf(i, j, css_id) {
var table = document.getElementById("tinytable_h4845sftiq0sumirvtcf");
var cell = table.rows[i]?.cells[j]; // Safe navigation to avoid errors
if (cell) {
console.log(`Styling cell at (${i}, ${j}) with class ${css_id}`);
Expand All @@ -632,16 +632,16 @@ <h3 class="anchored" data-anchor-id="examples">Examples</h3>
}
}
function insertSpanRow(i, colspan, content) {
var table = document.getElementById('tinytable_qm7hnly7p8ac7bswn5ym');
var table = document.getElementById('tinytable_h4845sftiq0sumirvtcf');
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;
}
function spanCell_qm7hnly7p8ac7bswn5ym(i, j, rowspan, colspan) {
var table = document.getElementById("tinytable_qm7hnly7p8ac7bswn5ym");
function spanCell_h4845sftiq0sumirvtcf(i, j, rowspan, colspan) {
var table = document.getElementById("tinytable_h4845sftiq0sumirvtcf");
const targetRow = table.rows[i];
const targetCell = targetRow.cells[j];
for (let r = 0; r < rowspan; r++) {
Expand Down Expand Up @@ -671,24 +671,24 @@ <h3 class="anchored" data-anchor-id="examples">Examples</h3>
window.addEventListener('load', function () {
var cellsToStyle = [
// tinytable style arrays after
{ positions: [ { i: 0, j: 0 }, { i: 6, j: 0 }, { i: 0, j: 1 }, { i: 6, j: 1 }, { i: 0, j: 2 }, { i: 6, j: 2 }, { i: 0, j: 3 }, { i: 6, j: 3 }, { i: 0, j: 4 }, { i: 6, j: 4 }, ], css_id: 'tinytable_css_0jzqi5wzhtvvsf52ouwt',},
{ positions: [ { i: 0, j: 0 }, { i: 6, j: 0 }, { i: 0, j: 1 }, { i: 6, j: 1 }, { i: 0, j: 2 }, { i: 6, j: 2 }, { i: 0, j: 3 }, { i: 6, j: 3 }, { i: 0, j: 4 }, { i: 6, j: 4 }, ], css_id: 'tinytable_css_0anrmiuqrs5r9akf64pr',},
];

// Loop over the arrays to style the cells
cellsToStyle.forEach(function (group) {
group.positions.forEach(function (cell) {
styleCell_qm7hnly7p8ac7bswn5ym(cell.i, cell.j, group.css_id);
styleCell_h4845sftiq0sumirvtcf(cell.i, cell.j, group.css_id);
});
});
});
</script>

<style>
/* tinytable css entries after */
.table td.tinytable_css_0jzqi5wzhtvvsf52ouwt, .table th.tinytable_css_0jzqi5wzhtvvsf52ouwt { border-bottom: solid #d3d8dc 0.1em; }
.table td.tinytable_css_0anrmiuqrs5r9akf64pr, .table th.tinytable_css_0anrmiuqrs5r9akf64pr { border-bottom: solid #d3d8dc 0.1em; }
</style>
<div class="container">
<table class="table table-borderless" id="tinytable_qm7hnly7p8ac7bswn5ym" style="width: auto; margin-left: auto; margin-right: auto;" data-quarto-disable-processing="true">
<table class="table table-borderless" id="tinytable_h4845sftiq0sumirvtcf" style="width: auto; margin-left: auto; margin-right: auto;" data-quarto-disable-processing="true">
<thead>
</thead><caption>Combine two tiny tables.</caption>
<tbody><tr>
Expand Down Expand Up @@ -755,8 +755,8 @@ <h3 class="anchored" data-anchor-id="examples">Examples</h3>

<script>

function styleCell_r3ioapywmy2f0pl2v630(i, j, css_id) {
var table = document.getElementById("tinytable_r3ioapywmy2f0pl2v630");
function styleCell_5cvawze2p5cj85skxdk6(i, j, css_id) {
var table = document.getElementById("tinytable_5cvawze2p5cj85skxdk6");
var cell = table.rows[i]?.cells[j]; // Safe navigation to avoid errors
if (cell) {
console.log(`Styling cell at (${i}, ${j}) with class ${css_id}`);
Expand All @@ -766,16 +766,16 @@ <h3 class="anchored" data-anchor-id="examples">Examples</h3>
}
}
function insertSpanRow(i, colspan, content) {
var table = document.getElementById('tinytable_r3ioapywmy2f0pl2v630');
var table = document.getElementById('tinytable_5cvawze2p5cj85skxdk6');
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;
}
function spanCell_r3ioapywmy2f0pl2v630(i, j, rowspan, colspan) {
var table = document.getElementById("tinytable_r3ioapywmy2f0pl2v630");
function spanCell_5cvawze2p5cj85skxdk6(i, j, rowspan, colspan) {
var table = document.getElementById("tinytable_5cvawze2p5cj85skxdk6");
const targetRow = table.rows[i];
const targetCell = targetRow.cells[j];
for (let r = 0; r < rowspan; r++) {
Expand Down Expand Up @@ -805,24 +805,24 @@ <h3 class="anchored" data-anchor-id="examples">Examples</h3>
window.addEventListener('load', function () {
var cellsToStyle = [
// tinytable style arrays after
{ positions: [ { i: 0, j: 0 }, { i: 5, j: 0 }, { i: 0, j: 1 }, { i: 5, j: 1 }, { i: 0, j: 2 }, { i: 5, j: 2 }, { i: 0, j: 3 }, { i: 5, j: 3 }, { i: 0, j: 4 }, { i: 5, j: 4 }, ], css_id: 'tinytable_css_knh1gsswg1exxck7zkej',},
{ positions: [ { i: 0, j: 0 }, { i: 5, j: 0 }, { i: 0, j: 1 }, { i: 5, j: 1 }, { i: 0, j: 2 }, { i: 5, j: 2 }, { i: 0, j: 3 }, { i: 5, j: 3 }, { i: 0, j: 4 }, { i: 5, j: 4 }, ], css_id: 'tinytable_css_yv1xgajho7ad9qrwgwgt',},
];

// Loop over the arrays to style the cells
cellsToStyle.forEach(function (group) {
group.positions.forEach(function (cell) {
styleCell_r3ioapywmy2f0pl2v630(cell.i, cell.j, group.css_id);
styleCell_5cvawze2p5cj85skxdk6(cell.i, cell.j, group.css_id);
});
});
});
</script>

<style>
/* tinytable css entries after */
.table td.tinytable_css_knh1gsswg1exxck7zkej, .table th.tinytable_css_knh1gsswg1exxck7zkej { border-bottom: solid #d3d8dc 0.1em; }
.table td.tinytable_css_yv1xgajho7ad9qrwgwgt, .table th.tinytable_css_yv1xgajho7ad9qrwgwgt { border-bottom: solid #d3d8dc 0.1em; }
</style>
<div class="container">
<table class="table table-borderless" id="tinytable_r3ioapywmy2f0pl2v630" style="width: auto; margin-left: auto; margin-right: auto;" data-quarto-disable-processing="true">
<table class="table table-borderless" id="tinytable_5cvawze2p5cj85skxdk6" style="width: auto; margin-left: auto; margin-right: auto;" data-quarto-disable-processing="true">
<thead>
</thead><caption>Combine two tiny tables.</caption>
<tbody><tr>
Expand Down Expand Up @@ -882,8 +882,8 @@ <h3 class="anchored" data-anchor-id="examples">Examples</h3>

<script>

function styleCell_zlu450iubalytmk3j3t4(i, j, css_id) {
var table = document.getElementById("tinytable_zlu450iubalytmk3j3t4");
function styleCell_4uacxwfaism03i87jspe(i, j, css_id) {
var table = document.getElementById("tinytable_4uacxwfaism03i87jspe");
var cell = table.rows[i]?.cells[j]; // Safe navigation to avoid errors
if (cell) {
console.log(`Styling cell at (${i}, ${j}) with class ${css_id}`);
Expand All @@ -893,16 +893,16 @@ <h3 class="anchored" data-anchor-id="examples">Examples</h3>
}
}
function insertSpanRow(i, colspan, content) {
var table = document.getElementById('tinytable_zlu450iubalytmk3j3t4');
var table = document.getElementById('tinytable_4uacxwfaism03i87jspe');
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;
}
function spanCell_zlu450iubalytmk3j3t4(i, j, rowspan, colspan) {
var table = document.getElementById("tinytable_zlu450iubalytmk3j3t4");
function spanCell_4uacxwfaism03i87jspe(i, j, rowspan, colspan) {
var table = document.getElementById("tinytable_4uacxwfaism03i87jspe");
const targetRow = table.rows[i];
const targetCell = targetRow.cells[j];
for (let r = 0; r < rowspan; r++) {
Expand Down Expand Up @@ -932,24 +932,24 @@ <h3 class="anchored" data-anchor-id="examples">Examples</h3>
window.addEventListener('load', function () {
var cellsToStyle = [
// tinytable style arrays after
{ positions: [ { i: 0, j: 0 }, { i: 6, j: 0 }, { i: 0, j: 1 }, { i: 6, j: 1 }, { i: 0, j: 2 }, { i: 6, j: 2 }, ], css_id: 'tinytable_css_2gq5z70bwvposdb0cpjd',},
{ positions: [ { i: 0, j: 0 }, { i: 6, j: 0 }, { i: 0, j: 1 }, { i: 6, j: 1 }, { i: 0, j: 2 }, { i: 6, j: 2 }, ], css_id: 'tinytable_css_wtifsa9j5ayleltt6st7',},
];

// Loop over the arrays to style the cells
cellsToStyle.forEach(function (group) {
group.positions.forEach(function (cell) {
styleCell_zlu450iubalytmk3j3t4(cell.i, cell.j, group.css_id);
styleCell_4uacxwfaism03i87jspe(cell.i, cell.j, group.css_id);
});
});
});
</script>

<style>
/* tinytable css entries after */
.table td.tinytable_css_2gq5z70bwvposdb0cpjd, .table th.tinytable_css_2gq5z70bwvposdb0cpjd { border-bottom: solid #d3d8dc 0.1em; }
.table td.tinytable_css_wtifsa9j5ayleltt6st7, .table th.tinytable_css_wtifsa9j5ayleltt6st7 { border-bottom: solid #d3d8dc 0.1em; }
</style>
<div class="container">
<table class="table table-borderless" id="tinytable_zlu450iubalytmk3j3t4" style="width: auto; margin-left: auto; margin-right: auto;" data-quarto-disable-processing="true">
<table class="table table-borderless" id="tinytable_4uacxwfaism03i87jspe" style="width: auto; margin-left: auto; margin-right: auto;" data-quarto-disable-processing="true">
<thead>
</thead><caption>Combine two tiny tables.</caption>
<tbody><tr>
Expand Down
6 changes: 5 additions & 1 deletion man/save_tt.html
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,11 @@ <h3 class="anchored" data-anchor-id="description">Description</h3>
</section>
<section id="usage" class="level3">
<h3 class="anchored" data-anchor-id="usage">Usage</h3>
<pre><code class="language-R">save_tt(x, output, overwrite = FALSE)
<pre><code class="language-R">save_tt(
x,
output,
overwrite = get_option("tinytable_print_output", default = FALSE)
)
</code></pre>
</section>
<section id="arguments" class="level3">
Expand Down
Loading

0 comments on commit d52621a

Please sign in to comment.