-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deploying to gh-pages from @ 7d5e835 🚀
- Loading branch information
1 parent
0a9864a
commit 607f6fb
Showing
5 changed files
with
2,326 additions
and
982 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 <- grep("$tinytable_BOOTSTRAP_HEADER", template, fixed = TRUE) | ||
debug: if (!is.null(colnames(x))) { | ||
header <- sprintf(" <th scope=\"col\">%s</th>", colnames(x)) | ||
header <- c(" <tr>", header, " </tr>") | ||
header <- paste(strrep(" ", 11), header) | ||
} else { | ||
header <- NULL | ||
} | ||
debug: header <- sprintf(" <th scope=\"col\">%s</th>", colnames(x)) | ||
debug: header <- c(" <tr>", header, " </tr>") | ||
debug: header <- paste(strrep(" ", 11), header) | ||
debug: template <- c(template[1:(idx - 1)], header, template[(idx + | ||
1):length(template)]) | ||
debug: makerow <- function(x) { | ||
out <- c(" <tr>", sprintf(" <td>%s</td>", x), " </tr>") | ||
return(out) | ||
} | ||
debug: body <- apply(x, 1, makerow) | ||
debug: idx <- grep("$tinytable_BOOTSTRAP_BODY", template, fixed = TRUE) | ||
debug: template <- c(template[1:(idx - 1)], paste(strrep(" ", 13), body), | ||
template[(idx + 1):length(template)]) | ||
debug: out <- paste(template, collapse = "\n") | ||
debug: class(out) <- c("tinytable", "knit_asis", class(out)) | ||
debug: attr(out, "tinytable_meta") <- 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> | ||
|
@@ -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> | ||
|
@@ -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> | ||
|
@@ -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); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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"><-</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 <- grep("$tinytable_BOOTSTRAP_HEADER", template, fixed = TRUE) | ||
debug: if (!is.null(colnames(x))) { | ||
header <- sprintf(" <th scope=\"col\">%s</th>", colnames(x)) | ||
header <- c(" <tr>", header, " </tr>") | ||
header <- paste(strrep(" ", 11), header) | ||
} else { | ||
header <- NULL | ||
} | ||
debug: header <- sprintf(" <th scope=\"col\">%s</th>", colnames(x)) | ||
debug: header <- c(" <tr>", header, " </tr>") | ||
debug: header <- paste(strrep(" ", 11), header) | ||
debug: template <- c(template[1:(idx - 1)], header, template[(idx + | ||
1):length(template)]) | ||
debug: makerow <- function(x) { | ||
out <- c(" <tr>", sprintf(" <td>%s</td>", x), " </tr>") | ||
return(out) | ||
} | ||
debug: body <- apply(x, 1, makerow) | ||
debug: idx <- grep("$tinytable_BOOTSTRAP_BODY", template, fixed = TRUE) | ||
debug: template <- c(template[1:(idx - 1)], paste(strrep(" ", 13), body), | ||
template[(idx + 1):length(template)]) | ||
debug: out <- paste(template, collapse = "\n") | ||
debug: class(out) <- c("tinytable", "knit_asis", class(out)) | ||
debug: attr(out, "tinytable_meta") <- 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> | ||
|
@@ -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> | ||
|
@@ -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); | ||
|
@@ -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 <- grep("$tinytable_BOOTSTRAP_HEADER", template, fixed = TRUE) | ||
debug: if (!is.null(colnames(x))) { | ||
header <- sprintf(" <th scope=\"col\">%s</th>", colnames(x)) | ||
header <- c(" <tr>", header, " </tr>") | ||
header <- paste(strrep(" ", 11), header) | ||
} else { | ||
header <- NULL | ||
} | ||
debug: header <- sprintf(" <th scope=\"col\">%s</th>", colnames(x)) | ||
debug: header <- c(" <tr>", header, " </tr>") | ||
debug: header <- paste(strrep(" ", 11), header) | ||
debug: template <- c(template[1:(idx - 1)], header, template[(idx + | ||
1):length(template)]) | ||
debug: makerow <- function(x) { | ||
out <- c(" <tr>", sprintf(" <td>%s</td>", x), " </tr>") | ||
return(out) | ||
} | ||
debug: body <- apply(x, 1, makerow) | ||
debug: idx <- grep("$tinytable_BOOTSTRAP_BODY", template, fixed = TRUE) | ||
debug: template <- c(template[1:(idx - 1)], paste(strrep(" ", 13), body), | ||
template[(idx + 1):length(template)]) | ||
debug: out <- paste(template, collapse = "\n") | ||
debug: class(out) <- c("tinytable", "knit_asis", class(out)) | ||
debug: attr(out, "tinytable_meta") <- 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> | ||
|
@@ -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> | ||
|
@@ -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); | ||
|
Oops, something went wrong.