Skip to content

Commit 364e9ad

Browse files
committed
Deploying to gh-pages from @ ca8725f 🚀
1 parent b51e776 commit 364e9ad

File tree

88 files changed

+1753
-1417
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+1753
-1417
lines changed

demos/qwebr-auto-run.html

+15-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
33

44
<meta charset="utf-8">
5-
<meta name="generator" content="quarto-1.5.51">
5+
<meta name="generator" content="quarto-1.6.4">
66

77
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
88

@@ -401,7 +401,7 @@
401401
};
402402

403403
// Store cell data
404-
globalThis.qwebrCellDetails = [{"code":"# Write your name here by replace ___\nname <- \"_____\"\nprint(paste0(\"Hello, \", name, \"!\"))","id":1,"options":{"results":"markup","editor-max-height":"","fig-cap":"","dpi":72,"output":"true","message":"true","editor-quick-suggestions":"false","out-width":"700px","warning":"true","classes":"","read-only":"false","editor-font-scale":"1","out-height":"","label":"unnamed-chunk-1","context":"interactive","fig-width":7,"fig-height":5,"comment":"","autorun":"false","editor-word-wrap":"true"}},{"code":"# Write your name here by replace ___\nname <- \"_____\"\nprint(paste0(\"Hello, \", name, \"!\"))","id":2,"options":{"results":"markup","editor-max-height":"","fig-cap":"","dpi":72,"output":"true","message":"true","editor-quick-suggestions":"false","out-width":"700px","warning":"true","classes":"","read-only":"false","editor-font-scale":"1","out-height":"","label":"unnamed-chunk-2","context":"interactive","fig-width":7,"fig-height":5,"comment":"","autorun":"true","editor-word-wrap":"true"}},{"code":"data(\"gapminder\", package = \"gapminder\")\nhead(gapminder)","id":3,"options":{"results":"markup","editor-max-height":"","fig-cap":"","dpi":72,"output":"true","message":"true","editor-quick-suggestions":"false","out-width":"700px","warning":"true","classes":"","read-only":"false","editor-font-scale":"1","out-height":"","label":"unnamed-chunk-3","context":"output","fig-width":7,"fig-height":5,"comment":"","autorun":"true","editor-word-wrap":"true"}},{"code":"ggplot(gapminder, aes(lifeExp)) + \n geom_density(aes(fill=continent), alpha=1/4) + theme_bw() ","id":4,"options":{"results":"markup","editor-max-height":"","fig-cap":"","dpi":72,"output":"true","message":"true","editor-quick-suggestions":"false","out-width":"500px","warning":"true","classes":"","read-only":"false","editor-font-scale":"1","out-height":"","label":"unnamed-chunk-4","context":"output","fig-width":"5","fig-height":"3","comment":"","autorun":"true","editor-word-wrap":"true"}},{"code":"ggplot(gapminder, aes(lifeExp)) + \n theme_bw() ","id":5,"options":{"results":"markup","editor-max-height":"","fig-cap":"","dpi":72,"output":"true","message":"true","editor-quick-suggestions":"false","out-width":"500px","warning":"true","classes":"","read-only":"false","editor-font-scale":"1","out-height":"","label":"unnamed-chunk-5","context":"interactive","fig-width":"5","fig-height":"3","comment":"","autorun":"true","editor-word-wrap":"true"}}];
404+
globalThis.qwebrCellDetails = [{"options":{"out-height":"","message":"true","comment":"","dpi":72,"fig-cap":"","output":"true","editor-font-scale":"1","context":"interactive","editor-word-wrap":"true","autorun":"false","results":"markup","out-width":"700px","classes":"","fig-width":7,"fig-height":5,"label":"unnamed-chunk-1","editor-quick-suggestions":"false","editor-max-height":"","read-only":"false","warning":"true"},"id":1,"code":"# Write your name here by replace ___\nname <- \"_____\"\nprint(paste0(\"Hello, \", name, \"!\"))"},{"options":{"out-height":"","message":"true","comment":"","dpi":72,"fig-cap":"","output":"true","editor-font-scale":"1","context":"interactive","editor-word-wrap":"true","autorun":"true","results":"markup","out-width":"700px","classes":"","fig-width":7,"fig-height":5,"label":"unnamed-chunk-2","editor-quick-suggestions":"false","editor-max-height":"","read-only":"false","warning":"true"},"id":2,"code":"# Write your name here by replace ___\nname <- \"_____\"\nprint(paste0(\"Hello, \", name, \"!\"))"},{"options":{"out-height":"","message":"true","comment":"","dpi":72,"fig-cap":"","output":"true","editor-font-scale":"1","context":"output","editor-word-wrap":"true","autorun":"true","results":"markup","out-width":"700px","classes":"","fig-width":7,"fig-height":5,"label":"unnamed-chunk-3","editor-quick-suggestions":"false","editor-max-height":"","read-only":"false","warning":"true"},"id":3,"code":"data(\"gapminder\", package = \"gapminder\")\nhead(gapminder)"},{"options":{"out-height":"","message":"true","comment":"","dpi":72,"fig-cap":"","output":"true","editor-font-scale":"1","context":"output","editor-word-wrap":"true","autorun":"true","results":"markup","out-width":"500px","classes":"","fig-width":"5","fig-height":"3","label":"unnamed-chunk-4","editor-quick-suggestions":"false","editor-max-height":"","read-only":"false","warning":"true"},"id":4,"code":"ggplot(gapminder, aes(lifeExp)) + \n geom_density(aes(fill=continent), alpha=1/4) + theme_bw() "},{"options":{"out-height":"","message":"true","comment":"","dpi":72,"fig-cap":"","output":"true","editor-font-scale":"1","context":"interactive","editor-word-wrap":"true","autorun":"true","results":"markup","out-width":"500px","classes":"","fig-width":"5","fig-height":"3","label":"unnamed-chunk-5","editor-quick-suggestions":"false","editor-max-height":"","read-only":"false","warning":"true"},"id":5,"code":"ggplot(gapminder, aes(lifeExp)) + \n theme_bw() "}];
405405

406406
</script>
407407
<script type="module">
@@ -2157,7 +2157,19 @@ <h1 class="title">Demo: Autorun Interactive Code Cells</h1>
21572157

21582158
</header>
21592159

2160-
2160+
<div class="callout callout-style-default callout-important callout-titled">
2161+
<div class="callout-header d-flex align-content-center">
2162+
<div class="callout-icon-container">
2163+
<i class="callout-icon"></i>
2164+
</div>
2165+
<div class="callout-title-container flex-fill">
2166+
Important
2167+
</div>
2168+
</div>
2169+
<div class="callout-body-container callout-body">
2170+
<p>Looking for the official Quarto WebAssembly backend? Check out <a href="https://github.com/r-wasm/quarto-live"><code>quarto-live</code></a>!</p>
2171+
</div>
2172+
</div>
21612173
<section id="overview" class="level1">
21622174
<h1>Overview</h1>
21632175
<p>This demo showcases the functionality of automatically executing code within an interactive area, revealing output before any modifications can be made to the document.</p>

demos/qwebr-code-cell-options.html

+15-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
33

44
<meta charset="utf-8">
5-
<meta name="generator" content="quarto-1.5.51">
5+
<meta name="generator" content="quarto-1.6.4">
66

77
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
88

@@ -401,7 +401,7 @@
401401
};
402402

403403
// Store cell data
404-
globalThis.qwebrCellDetails = [{"options":{"editor-max-height":"","editor-font-scale":"1","autorun":"false","label":"unnamed-chunk-1","classes":"","context":"interactive","warning":"true","fig-width":7,"out-width":"700px","editor-quick-suggestions":"false","fig-height":5,"read-only":"false","out-height":"","output":"true","message":"true","results":"markup","fig-cap":"","dpi":72,"editor-word-wrap":"true","comment":""},"id":1,"code":"# Write your name here by replace ___\nname <- \"_____\"\nprint(paste0(\"Hello, \", name, \"!\"))"},{"options":{"editor-max-height":"","editor-font-scale":"1","autorun":"true","label":"unnamed-chunk-2","classes":"","context":"setup","warning":"true","fig-width":7,"out-width":"700px","editor-quick-suggestions":"false","fig-height":5,"read-only":"false","out-height":"","output":"true","message":"true","results":"markup","fig-cap":"","dpi":72,"editor-word-wrap":"true","comment":""},"id":2,"code":"# Generating a simple table\ndata <- data.frame(\n Name = c(\"Alice\", \"Bob\", \"Charlie\"),\n Age = c(25, 30, 22)\n)"},{"options":{"editor-max-height":"","editor-font-scale":"1","autorun":"false","label":"unnamed-chunk-3","classes":"","context":"interactive","warning":"true","fig-width":7,"out-width":"700px","editor-quick-suggestions":"false","fig-height":5,"read-only":"false","out-height":"","output":"true","message":"true","results":"asis","fig-cap":"","dpi":72,"editor-word-wrap":"true","comment":""},"id":3,"code":"knitr::kable(data, \"html\")"},{"options":{"editor-max-height":"","editor-font-scale":"1","autorun":"false","label":"unnamed-chunk-4","classes":"","context":"interactive","warning":"true","fig-width":7,"out-width":"700px","editor-quick-suggestions":"false","fig-height":5,"read-only":"false","out-height":"","output":"true","message":"true","results":"markup","fig-cap":"","dpi":72,"editor-word-wrap":"true","comment":""},"id":4,"code":"knitr::kable(data, \"html\")"},{"options":{"editor-max-height":"","editor-font-scale":"1","autorun":"true","label":"unnamed-chunk-5","classes":"","context":"output","warning":"true","fig-width":"6","out-width":"700px","editor-quick-suggestions":"false","fig-height":"6","read-only":"false","out-height":"","output":"true","message":"true","results":"markup","fig-cap":"","dpi":72,"editor-word-wrap":"true","comment":""},"id":5,"code":"tinyplot::tinyplot(\n ~ Petal.Length | Species,\n data = iris,\n type = \"density\",\n palette = \"dark\", fill = \"by\",\n grid = TRUE,\n main = \"Distribution of petal lengths by species\"\n)"},{"options":{"editor-max-height":"","editor-font-scale":"1","autorun":"true","label":"unnamed-chunk-6","classes":"","context":"output","warning":"true","fig-width":7,"out-width":"700px","editor-quick-suggestions":"false","fig-height":5,"read-only":"false","out-height":"","output":"true","message":"true","results":"markup","fig-cap":"","dpi":72,"editor-word-wrap":"true","comment":""},"id":6,"code":"tinyplot::tinyplot(\n ~ Petal.Length | Species,\n data = iris,\n type = \"density\",\n palette = \"dark\", fill = \"by\",\n grid = TRUE,\n main = \"Distribution of petal lengths by species\"\n)"},{"options":{"editor-max-height":"","editor-font-scale":"1","autorun":"true","label":"unnamed-chunk-7","classes":"","context":"output","warning":"true","fig-width":"6","out-width":"500px","editor-quick-suggestions":"false","fig-height":"6","read-only":"false","out-height":"500px","output":"true","message":"true","results":"markup","fig-cap":"","dpi":72,"editor-word-wrap":"true","comment":""},"id":7,"code":"tinyplot::tinyplot(\n ~ Petal.Length | Species,\n data = iris,\n type = \"density\",\n palette = \"dark\", fill = \"by\",\n grid = TRUE,\n main = \"Distribution of petal lengths by species\"\n)"}];
404+
globalThis.qwebrCellDetails = [{"code":"# Write your name here by replace ___\nname <- \"_____\"\nprint(paste0(\"Hello, \", name, \"!\"))","id":1,"options":{"dpi":72,"read-only":"false","output":"true","fig-width":7,"fig-height":5,"warning":"true","editor-font-scale":"1","fig-cap":"","label":"unnamed-chunk-1","out-width":"700px","classes":"","context":"interactive","editor-word-wrap":"true","out-height":"","message":"true","results":"markup","comment":"","editor-quick-suggestions":"false","editor-max-height":"","autorun":"false"}},{"code":"# Generating a simple table\ndata <- data.frame(\n Name = c(\"Alice\", \"Bob\", \"Charlie\"),\n Age = c(25, 30, 22)\n)","id":2,"options":{"dpi":72,"read-only":"false","output":"true","fig-width":7,"fig-height":5,"warning":"true","editor-font-scale":"1","fig-cap":"","label":"unnamed-chunk-2","out-width":"700px","classes":"","context":"setup","editor-word-wrap":"true","out-height":"","message":"true","results":"markup","comment":"","editor-quick-suggestions":"false","editor-max-height":"","autorun":"true"}},{"code":"knitr::kable(data, \"html\")","id":3,"options":{"dpi":72,"read-only":"false","output":"true","fig-width":7,"fig-height":5,"warning":"true","editor-font-scale":"1","fig-cap":"","label":"unnamed-chunk-3","out-width":"700px","classes":"","context":"interactive","editor-word-wrap":"true","out-height":"","message":"true","results":"asis","comment":"","editor-quick-suggestions":"false","editor-max-height":"","autorun":"false"}},{"code":"knitr::kable(data, \"html\")","id":4,"options":{"dpi":72,"read-only":"false","output":"true","fig-width":7,"fig-height":5,"warning":"true","editor-font-scale":"1","fig-cap":"","label":"unnamed-chunk-4","out-width":"700px","classes":"","context":"interactive","editor-word-wrap":"true","out-height":"","message":"true","results":"markup","comment":"","editor-quick-suggestions":"false","editor-max-height":"","autorun":"false"}},{"code":"tinyplot::tinyplot(\n ~ Petal.Length | Species,\n data = iris,\n type = \"density\",\n palette = \"dark\", fill = \"by\",\n grid = TRUE,\n main = \"Distribution of petal lengths by species\"\n)","id":5,"options":{"dpi":72,"read-only":"false","output":"true","fig-width":"6","fig-height":"6","warning":"true","editor-font-scale":"1","fig-cap":"","label":"unnamed-chunk-5","out-width":"700px","classes":"","context":"output","editor-word-wrap":"true","out-height":"","message":"true","results":"markup","comment":"","editor-quick-suggestions":"false","editor-max-height":"","autorun":"true"}},{"code":"tinyplot::tinyplot(\n ~ Petal.Length | Species,\n data = iris,\n type = \"density\",\n palette = \"dark\", fill = \"by\",\n grid = TRUE,\n main = \"Distribution of petal lengths by species\"\n)","id":6,"options":{"dpi":72,"read-only":"false","output":"true","fig-width":7,"fig-height":5,"warning":"true","editor-font-scale":"1","fig-cap":"","label":"unnamed-chunk-6","out-width":"700px","classes":"","context":"output","editor-word-wrap":"true","out-height":"","message":"true","results":"markup","comment":"","editor-quick-suggestions":"false","editor-max-height":"","autorun":"true"}},{"code":"tinyplot::tinyplot(\n ~ Petal.Length | Species,\n data = iris,\n type = \"density\",\n palette = \"dark\", fill = \"by\",\n grid = TRUE,\n main = \"Distribution of petal lengths by species\"\n)","id":7,"options":{"dpi":72,"read-only":"false","output":"true","fig-width":"6","fig-height":"6","warning":"true","editor-font-scale":"1","fig-cap":"","label":"unnamed-chunk-7","out-width":"500px","classes":"","context":"output","editor-word-wrap":"true","out-height":"500px","message":"true","results":"markup","comment":"","editor-quick-suggestions":"false","editor-max-height":"","autorun":"true"}}];
405405

406406
</script>
407407
<script type="module">
@@ -2159,7 +2159,19 @@ <h1 class="title">Demo: Initial Code Cell Option Support</h1>
21592159

21602160
</header>
21612161

2162-
2162+
<div class="callout callout-style-default callout-important callout-titled">
2163+
<div class="callout-header d-flex align-content-center">
2164+
<div class="callout-icon-container">
2165+
<i class="callout-icon"></i>
2166+
</div>
2167+
<div class="callout-title-container flex-fill">
2168+
Important
2169+
</div>
2170+
</div>
2171+
<div class="callout-body-container callout-body">
2172+
<p>Looking for the official Quarto WebAssembly backend? Check out <a href="https://github.com/r-wasm/quarto-live"><code>quarto-live</code></a>!</p>
2173+
</div>
2174+
</div>
21632175
<section id="overview" class="level1">
21642176
<h1>Overview</h1>
21652177
<p>In this document, we will explore and demonstrate the various cell options available in <code>{webr-r}</code> code blocks. These options allow you to customize the behavior and appearance of your code outputs. These options can only be set during the authoring stage of the document.</p>

demos/qwebr-custom-repository.html

+15-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
33

44
<meta charset="utf-8">
5-
<meta name="generator" content="quarto-1.5.51">
5+
<meta name="generator" content="quarto-1.6.4">
66

77
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
88

@@ -401,7 +401,7 @@
401401
};
402402

403403
// Store cell data
404-
globalThis.qwebrCellDetails = [{"code":"# Check to see if the function works\ndemorwasmbinary::in_webr()\n\n# View help documentation\n?demorwasmbinary::in_webr","id":1,"options":{"context":"interactive","fig-cap":"","comment":"","read-only":"false","editor-word-wrap":"true","dpi":72,"out-height":"","fig-width":7,"out-width":"700px","editor-max-height":"","editor-font-scale":"1","message":"true","label":"unnamed-chunk-1","editor-quick-suggestions":"false","fig-height":5,"warning":"true","classes":"","output":"true","results":"markup","autorun":"false"}}];
404+
globalThis.qwebrCellDetails = [{"options":{"editor-word-wrap":"true","context":"interactive","read-only":"false","out-height":"","comment":"","editor-quick-suggestions":"false","autorun":"false","results":"markup","fig-height":5,"out-width":"700px","label":"unnamed-chunk-1","warning":"true","classes":"","dpi":72,"fig-width":7,"fig-cap":"","editor-max-height":"","output":"true","editor-font-scale":"1","message":"true"},"id":1,"code":"# Check to see if the function works\ndemorwasmbinary::in_webr()\n\n# View help documentation\n?demorwasmbinary::in_webr"}];
405405

406406
</script>
407407
<script type="module">
@@ -2157,7 +2157,19 @@ <h1 class="title">Demo: Custom R WASM Package Repository</h1>
21572157

21582158
</header>
21592159

2160-
2160+
<div class="callout callout-style-default callout-important callout-titled">
2161+
<div class="callout-header d-flex align-content-center">
2162+
<div class="callout-icon-container">
2163+
<i class="callout-icon"></i>
2164+
</div>
2165+
<div class="callout-title-container flex-fill">
2166+
Important
2167+
</div>
2168+
</div>
2169+
<div class="callout-body-container callout-body">
2170+
<p>Looking for the official Quarto WebAssembly backend? Check out <a href="https://github.com/r-wasm/quarto-live"><code>quarto-live</code></a>!</p>
2171+
</div>
2172+
</div>
21612173
<section id="overview" class="level1">
21622174
<h1>Overview</h1>
21632175
<p>In this example, we add a custom R WASM Package repository that contains <code>demorwasmbinary</code> R WASM package. The package is not available from the <a href="https://repo.r-wasm.org/">main webR repository</a>.</p>

0 commit comments

Comments
 (0)