tests/testthat/_snaps/banner.md

init_banner(): returns a string with a tag</h1> <pre><code>Code init_banner() </code></pre> <hr /> <pre><code>Code init_banner(left = "bottom left", position = "bottom") Output &lt;script&gt;document.addEventListener('DOMContentLoaded',function(){new xeBanner(JSON.parse('{"left":"bottom left","position":"bottom"}'))})&lt;/script&gt; </code></pre> <hr /> <pre><code>Code init_banner(right = "top right", position = "top") Output &lt;script&gt;document.addEventListener('DOMContentLoaded',function(){new xeBanner(JSON.parse('{"right":"top right","position":"top"}'))})&lt;/script&gt; </code></pre> <hr /> <pre><code>Code init_banner(left = "left text", exclude = "title-slide") Output &lt;script&gt;document.addEventListener('DOMContentLoaded',function(){new xeBanner(JSON.parse('{"left":"left text","exclude":["title-slide"],"position":"bottom"}'))})&lt;/script&gt; </code></pre> <hr /> <pre><code>Code init_banner(center = "center", exclude = c("one", "two")) Output &lt;script&gt;document.addEventListener('DOMContentLoaded',function(){new xeBanner(JSON.parse('{"center":"center","exclude":["one two"],"position":"bottom"}'))})&lt;/script&gt; </code></pre> <h1>style_banner(): returns style tag</h1> <pre><code>Code paste(x$children[[1]]) Output [1] ":root {\n --xe-banner-fg: red;\n --xe-banner-height: 3em;\n}" </code></pre>



Try the xaringanExtra package in your browser

Any scripts or data that you put into this service are public.

xaringanExtra documentation built on July 16, 2022, 5:06 p.m.