Skip to content

Commit

Permalink
Deploying to gh-pages from @ 7d5e835 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentarelbundock committed Jan 20, 2024
1 parent 0a9864a commit 607f6fb
Show file tree
Hide file tree
Showing 5 changed files with 2,326 additions and 982 deletions.
52 changes: 41 additions & 11 deletions man/format_tt.html
Original file line number Diff line number Diff line change
Expand Up @@ -406,14 +406,44 @@ <h3 class="anchored" data-anchor-id="examples">Examples</h3>
<span id="cb1-8"><a href="#cb1-8" aria-hidden="true" tabindex="-1"></a> <span class="at">num_mark_dec =</span> <span class="st">","</span>,</span>
<span id="cb1-9"><a href="#cb1-9" aria-hidden="true" tabindex="-1"></a> <span class="at">num_mark_big =</span> <span class="st">" "</span>)</span>
<span id="cb1-10"><a href="#cb1-10" aria-hidden="true" tabindex="-1"></a><span class="fu">tt</span>(tab)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-stdout">
<pre><code>Called from: tt_bootstrap(x = list(a = c("10 001", "10 000", "10 000"), b = c(" 9 999",
" 9 999", "10 001")), caption = NULL, theme = "default", width = NULL,
notes = NULL, placement = NULL)
debug: idx &lt;- grep("$tinytable_BOOTSTRAP_HEADER", template, fixed = TRUE)
debug: if (!is.null(colnames(x))) {
header &lt;- sprintf(" &lt;th scope=\"col\"&gt;%s&lt;/th&gt;", colnames(x))
header &lt;- c(" &lt;tr&gt;", header, " &lt;/tr&gt;")
header &lt;- paste(strrep(" ", 11), header)
} else {
header &lt;- NULL
}
debug: header &lt;- sprintf(" &lt;th scope=\"col\"&gt;%s&lt;/th&gt;", colnames(x))
debug: header &lt;- c(" &lt;tr&gt;", header, " &lt;/tr&gt;")
debug: header &lt;- paste(strrep(" ", 11), header)
debug: template &lt;- c(template[1:(idx - 1)], header, template[(idx +
1):length(template)])
debug: makerow &lt;- function(x) {
out &lt;- c(" &lt;tr&gt;", sprintf(" &lt;td&gt;%s&lt;/td&gt;", x), " &lt;/tr&gt;")
return(out)
}
debug: body &lt;- apply(x, 1, makerow)
debug: idx &lt;- grep("$tinytable_BOOTSTRAP_BODY", template, fixed = TRUE)
debug: template &lt;- c(template[1:(idx - 1)], paste(strrep(" ", 13), body),
template[(idx + 1):length(template)])
debug: out &lt;- paste(template, collapse = "\n")
debug: class(out) &lt;- c("tinytable", "knit_asis", class(out))
debug: attr(out, "tinytable_meta") &lt;- m
debug: return(out)</code></pre>
</div>
<div class="cell-output-display">




<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>tinytable_b9nh557py6m5cpyj1n6e</title>
<title>tinytable_o4gmfgrhoeazu3tdxksw</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<style>
</style>
Expand All @@ -433,7 +463,7 @@ <h3 class="anchored" data-anchor-id="examples">Examples</h3>


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

<tr>
Expand All @@ -444,15 +474,15 @@ <h3 class="anchored" data-anchor-id="examples">Examples</h3>

<tbody>
<tr>
<td>10 002</td>
<td>10 002</td>
<td>10 001</td>
<td> 9 999</td>
</tr>
<tr>
<td> 9 999</td>
<td>10 000</td>
<td> 9 999</td>
</tr>
<tr>
<td> 9 999</td>
<td>10 000</td>
<td>10 001</td>
</tr>
</tbody>
Expand All @@ -461,20 +491,20 @@ <h3 class="anchored" data-anchor-id="examples">Examples</h3>

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<script>
function styleCell_b9nh557py6m5cpyj1n6e(i, j, css_id) {
var table = document.getElementById("tinytable_b9nh557py6m5cpyj1n6e");
function styleCell_o4gmfgrhoeazu3tdxksw(i, j, css_id) {
var table = document.getElementById("tinytable_o4gmfgrhoeazu3tdxksw");
table.rows[i].cells[j].classList.add(css_id);
}
function styleHeaderCell_b9nh557py6m5cpyj1n6e(i, j, css_id) {
var table = document.getElementById("tinytable_b9nh557py6m5cpyj1n6e");
function styleHeaderCell_o4gmfgrhoeazu3tdxksw(i, j, css_id) {
var table = document.getElementById("tinytable_o4gmfgrhoeazu3tdxksw");
var headerRow = table.tHead.rows[i];
var headerRow = table.querySelector("thead tr");
if (headerRow) {
headerRow.cells[j].classList.add(css_id);
}
}
function insertSpanRow(i, colspan, content) {
var table = document.getElementById('tinytable_b9nh557py6m5cpyj1n6e');
var table = document.getElementById('tinytable_o4gmfgrhoeazu3tdxksw');
var newRow = table.insertRow(i);
var newCell = newRow.insertCell(0);
newCell.setAttribute("colspan", colspan);
Expand Down
98 changes: 80 additions & 18 deletions man/tt.html
Original file line number Diff line number Diff line change
Expand Up @@ -388,14 +388,45 @@ <h3 class="anchored" data-anchor-id="examples">Examples</h3>
<span id="cb1-4"><a href="#cb1-4" aria-hidden="true" tabindex="-1"></a>x <span class="ot">&lt;-</span> mtcars[<span class="dv">1</span><span class="sc">:</span><span class="dv">4</span>, <span class="dv">1</span><span class="sc">:</span><span class="dv">5</span>]</span>
<span id="cb1-5"><a href="#cb1-5" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb1-6"><a href="#cb1-6" aria-hidden="true" tabindex="-1"></a><span class="fu">tt</span>(x)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-stdout">
<pre><code>Called from: tt_bootstrap(x = list(mpg = c(21, 21, 22.8, 21.4), cyl = c(6,
6, 4, 6), disp = c(160, 160, 108, 258), hp = c(110, 110, 93,
110), drat = c(3.9, 3.9, 3.85, 3.08)), caption = NULL, theme = "default",
width = NULL, notes = NULL, placement = NULL)
debug: idx &lt;- grep("$tinytable_BOOTSTRAP_HEADER", template, fixed = TRUE)
debug: if (!is.null(colnames(x))) {
header &lt;- sprintf(" &lt;th scope=\"col\"&gt;%s&lt;/th&gt;", colnames(x))
header &lt;- c(" &lt;tr&gt;", header, " &lt;/tr&gt;")
header &lt;- paste(strrep(" ", 11), header)
} else {
header &lt;- NULL
}
debug: header &lt;- sprintf(" &lt;th scope=\"col\"&gt;%s&lt;/th&gt;", colnames(x))
debug: header &lt;- c(" &lt;tr&gt;", header, " &lt;/tr&gt;")
debug: header &lt;- paste(strrep(" ", 11), header)
debug: template &lt;- c(template[1:(idx - 1)], header, template[(idx +
1):length(template)])
debug: makerow &lt;- function(x) {
out &lt;- c(" &lt;tr&gt;", sprintf(" &lt;td&gt;%s&lt;/td&gt;", x), " &lt;/tr&gt;")
return(out)
}
debug: body &lt;- apply(x, 1, makerow)
debug: idx &lt;- grep("$tinytable_BOOTSTRAP_BODY", template, fixed = TRUE)
debug: template &lt;- c(template[1:(idx - 1)], paste(strrep(" ", 13), body),
template[(idx + 1):length(template)])
debug: out &lt;- paste(template, collapse = "\n")
debug: class(out) &lt;- c("tinytable", "knit_asis", class(out))
debug: attr(out, "tinytable_meta") &lt;- m
debug: return(out)</code></pre>
</div>
<div class="cell-output-display">




<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>tinytable_y8qyn8du6qdxz4s25mjw</title>
<title>tinytable_bucnyuh4ik48egqsomh4</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<style>
</style>
Expand All @@ -415,7 +446,7 @@ <h3 class="anchored" data-anchor-id="examples">Examples</h3>


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

<tr>
Expand Down Expand Up @@ -462,20 +493,20 @@ <h3 class="anchored" data-anchor-id="examples">Examples</h3>

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<script>
function styleCell_y8qyn8du6qdxz4s25mjw(i, j, css_id) {
var table = document.getElementById("tinytable_y8qyn8du6qdxz4s25mjw");
function styleCell_bucnyuh4ik48egqsomh4(i, j, css_id) {
var table = document.getElementById("tinytable_bucnyuh4ik48egqsomh4");
table.rows[i].cells[j].classList.add(css_id);
}
function styleHeaderCell_y8qyn8du6qdxz4s25mjw(i, j, css_id) {
var table = document.getElementById("tinytable_y8qyn8du6qdxz4s25mjw");
function styleHeaderCell_bucnyuh4ik48egqsomh4(i, j, css_id) {
var table = document.getElementById("tinytable_bucnyuh4ik48egqsomh4");
var headerRow = table.tHead.rows[i];
var headerRow = table.querySelector("thead tr");
if (headerRow) {
headerRow.cells[j].classList.add(css_id);
}
}
function insertSpanRow(i, colspan, content) {
var table = document.getElementById('tinytable_y8qyn8du6qdxz4s25mjw');
var table = document.getElementById('tinytable_bucnyuh4ik48egqsomh4');
var newRow = table.insertRow(i);
var newCell = newRow.insertCell(0);
newCell.setAttribute("colspan", colspan);
Expand All @@ -490,18 +521,49 @@ <h3 class="anchored" data-anchor-id="examples">Examples</h3>


</div>
<div class="sourceCode cell-code" id="cb2"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a><span class="fu">tt</span>(x,</span>
<span id="cb2-2"><a href="#cb2-2" aria-hidden="true" tabindex="-1"></a> <span class="at">theme =</span> <span class="st">"striped"</span>,</span>
<span id="cb2-3"><a href="#cb2-3" aria-hidden="true" tabindex="-1"></a> <span class="at">width =</span> <span class="fl">0.5</span>,</span>
<span id="cb2-4"><a href="#cb2-4" aria-hidden="true" tabindex="-1"></a> <span class="at">caption =</span> <span class="st">"Data about cars."</span>)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="sourceCode cell-code" id="cb3"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a><span class="fu">tt</span>(x,</span>
<span id="cb3-2"><a href="#cb3-2" aria-hidden="true" tabindex="-1"></a> <span class="at">theme =</span> <span class="st">"striped"</span>,</span>
<span id="cb3-3"><a href="#cb3-3" aria-hidden="true" tabindex="-1"></a> <span class="at">width =</span> <span class="fl">0.5</span>,</span>
<span id="cb3-4"><a href="#cb3-4" aria-hidden="true" tabindex="-1"></a> <span class="at">caption =</span> <span class="st">"Data about cars."</span>)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-stdout">
<pre><code>Called from: tt_bootstrap(x = list(mpg = c(21, 21, 22.8, 21.4), cyl = c(6,
6, 4, 6), disp = c(160, 160, 108, 258), hp = c(110, 110, 93,
110), drat = c(3.9, 3.9, 3.85, 3.08)), caption = "Data about cars.",
theme = "striped", width = 0.5, notes = NULL, placement = NULL)
debug: idx &lt;- grep("$tinytable_BOOTSTRAP_HEADER", template, fixed = TRUE)
debug: if (!is.null(colnames(x))) {
header &lt;- sprintf(" &lt;th scope=\"col\"&gt;%s&lt;/th&gt;", colnames(x))
header &lt;- c(" &lt;tr&gt;", header, " &lt;/tr&gt;")
header &lt;- paste(strrep(" ", 11), header)
} else {
header &lt;- NULL
}
debug: header &lt;- sprintf(" &lt;th scope=\"col\"&gt;%s&lt;/th&gt;", colnames(x))
debug: header &lt;- c(" &lt;tr&gt;", header, " &lt;/tr&gt;")
debug: header &lt;- paste(strrep(" ", 11), header)
debug: template &lt;- c(template[1:(idx - 1)], header, template[(idx +
1):length(template)])
debug: makerow &lt;- function(x) {
out &lt;- c(" &lt;tr&gt;", sprintf(" &lt;td&gt;%s&lt;/td&gt;", x), " &lt;/tr&gt;")
return(out)
}
debug: body &lt;- apply(x, 1, makerow)
debug: idx &lt;- grep("$tinytable_BOOTSTRAP_BODY", template, fixed = TRUE)
debug: template &lt;- c(template[1:(idx - 1)], paste(strrep(" ", 13), body),
template[(idx + 1):length(template)])
debug: out &lt;- paste(template, collapse = "\n")
debug: class(out) &lt;- c("tinytable", "knit_asis", class(out))
debug: attr(out, "tinytable_meta") &lt;- m
debug: return(out)</code></pre>
</div>
<div class="cell-output-display">




<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>tinytable_m7oufidj4ssewb60vcm6</title>
<title>tinytable_xf2wpd53lv3a05q87ntj</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<style>
</style>
Expand All @@ -521,7 +583,7 @@ <h3 class="anchored" data-anchor-id="examples">Examples</h3>


<div class="container">
<table class="table table-striped" id="tinytable_m7oufidj4ssewb60vcm6" style="table-layout: fixed; width: 50% !important; margin-left: auto; margin-right: auto;" data-quarto-disable-processing="true">
<table class="table table-striped" id="tinytable_xf2wpd53lv3a05q87ntj" style="table-layout: fixed; width: 50% !important; margin-left: auto; margin-right: auto;" data-quarto-disable-processing="true">
<thead>
</thead><caption>Data about cars.</caption>
<tbody><tr>
Expand Down Expand Up @@ -568,20 +630,20 @@ <h3 class="anchored" data-anchor-id="examples">Examples</h3>

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<script>
function styleCell_m7oufidj4ssewb60vcm6(i, j, css_id) {
var table = document.getElementById("tinytable_m7oufidj4ssewb60vcm6");
function styleCell_xf2wpd53lv3a05q87ntj(i, j, css_id) {
var table = document.getElementById("tinytable_xf2wpd53lv3a05q87ntj");
table.rows[i].cells[j].classList.add(css_id);
}
function styleHeaderCell_m7oufidj4ssewb60vcm6(i, j, css_id) {
var table = document.getElementById("tinytable_m7oufidj4ssewb60vcm6");
function styleHeaderCell_xf2wpd53lv3a05q87ntj(i, j, css_id) {
var table = document.getElementById("tinytable_xf2wpd53lv3a05q87ntj");
var headerRow = table.tHead.rows[i];
var headerRow = table.querySelector("thead tr");
if (headerRow) {
headerRow.cells[j].classList.add(css_id);
}
}
function insertSpanRow(i, colspan, content) {
var table = document.getElementById('tinytable_m7oufidj4ssewb60vcm6');
var table = document.getElementById('tinytable_xf2wpd53lv3a05q87ntj');
var newRow = table.insertRow(i);
var newCell = newRow.insertCell(0);
newCell.setAttribute("colspan", colspan);
Expand Down
Loading

0 comments on commit 607f6fb

Please sign in to comment.