Skip to content

Commit

Permalink
Built site for gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
mjfrigaard committed Aug 6, 2024
1 parent dbd90cc commit 2f858ea
Show file tree
Hide file tree
Showing 75 changed files with 1,109 additions and 1,063 deletions.
2 changes: 1 addition & 1 deletion .nojekyll
Original file line number Diff line number Diff line change
@@ -1 +1 @@
c3c084bb
cd8d0e31
6 changes: 3 additions & 3 deletions app_data.html
Original file line number Diff line number Diff line change
Expand Up @@ -1139,7 +1139,7 @@ <h4 data-number="27.2.0.1" class="anchored" data-anchor-id="non-reactive-objects
<span id="annotated-cell-14-4"><a href="#annotated-cell-14-4" aria-hidden="true" tabindex="-1"></a> </span>
<button class="code-annotation-anchor" data-target-cell="annotated-cell-14" data-target-annotation="2">2</button><span id="annotated-cell-14-5" class="code-annotation-target"><a href="#annotated-cell-14-5" aria-hidden="true" tabindex="-1"></a> rVals <span class="ot">&lt;-</span> <span class="fu">reactiveValues</span>()</span>
<span id="annotated-cell-14-6"><a href="#annotated-cell-14-6" aria-hidden="true" tabindex="-1"></a> </span>
<button class="code-annotation-anchor" data-target-cell="annotated-cell-14" data-target-annotation="3">3</button><span id="annotated-cell-14-7" class="code-annotation-target"><a href="#annotated-cell-14-7" aria-hidden="true" tabindex="-1"></a> rVals<span class="sc">$</span>inputs <span class="ot">&lt;-</span> shinyAppPkgs<span class="sc">::</span><span class="fu">mod_var_input_server</span>(<span class="st">"vars"</span>,</span>
<button class="code-annotation-anchor" data-target-cell="annotated-cell-14" data-target-annotation="3">3</button><span id="annotated-cell-14-7" class="code-annotation-target"><a href="#annotated-cell-14-7" aria-hidden="true" tabindex="-1"></a> rVals<span class="sc">$</span>inputs <span class="ot">&lt;-</span> shinyrPkgs<span class="sc">::</span><span class="fu">mod_var_input_server</span>(<span class="st">"vars"</span>,</span>
<span id="annotated-cell-14-8"><a href="#annotated-cell-14-8" aria-hidden="true" tabindex="-1"></a> <span class="at">.dev =</span> <span class="cn">TRUE</span>)</span>
<span id="annotated-cell-14-9"><a href="#annotated-cell-14-9" aria-hidden="true" tabindex="-1"></a></span>
<button class="code-annotation-anchor" data-target-cell="annotated-cell-14" data-target-annotation="4">4</button><span id="annotated-cell-14-10" class="code-annotation-target"><a href="#annotated-cell-14-10" aria-hidden="true" tabindex="-1"></a> <span class="fu">dev_mod_scatter_server</span>(<span class="st">"plot"</span>,</span>
Expand Down Expand Up @@ -1221,7 +1221,7 @@ <h3 data-number="27.2.1" class="anchored" data-anchor-id="step-1-1"><span class=
<button class="code-annotation-anchor" data-target-cell="annotated-cell-15" data-target-annotation="2">2</button><span id="annotated-cell-15-7" class="code-annotation-target"><a href="#annotated-cell-15-7" aria-hidden="true" tabindex="-1"></a> rVals <span class="ot">&lt;-</span> <span class="fu">reactiveValues</span>()</span>
<span id="annotated-cell-15-8"><a href="#annotated-cell-15-8" aria-hidden="true" tabindex="-1"></a> </span>
<span id="annotated-cell-15-9"><a href="#annotated-cell-15-9" aria-hidden="true" tabindex="-1"></a> <span class="co"># assign inputs to rVals</span></span>
<button class="code-annotation-anchor" data-target-cell="annotated-cell-15" data-target-annotation="3">3</button><span id="annotated-cell-15-10" class="code-annotation-target"><a href="#annotated-cell-15-10" aria-hidden="true" tabindex="-1"></a> rVals<span class="sc">$</span>inputs <span class="ot">&lt;-</span> shinyAppPkgs<span class="sc">::</span><span class="fu">mod_var_input_server</span>(<span class="st">"vars"</span>,</span>
<button class="code-annotation-anchor" data-target-cell="annotated-cell-15" data-target-annotation="3">3</button><span id="annotated-cell-15-10" class="code-annotation-target"><a href="#annotated-cell-15-10" aria-hidden="true" tabindex="-1"></a> rVals<span class="sc">$</span>inputs <span class="ot">&lt;-</span> shinyrPkgs<span class="sc">::</span><span class="fu">mod_var_input_server</span>(<span class="st">"vars"</span>,</span>
<span id="annotated-cell-15-11"><a href="#annotated-cell-15-11" aria-hidden="true" tabindex="-1"></a> <span class="at">.dev =</span> <span class="cn">TRUE</span>)</span>
<span id="annotated-cell-15-12"><a href="#annotated-cell-15-12" aria-hidden="true" tabindex="-1"></a> </span>
<span id="annotated-cell-15-13"><a href="#annotated-cell-15-13" aria-hidden="true" tabindex="-1"></a> <span class="co"># view output in the UI</span></span>
Expand Down Expand Up @@ -1471,7 +1471,7 @@ <h2 class="unnumbered anchored" data-anchor-id="recap">Recap</h2>
<li id="fn2"><p>The methods used in this chapter can be found in the chapter on <a href="./debugging.html">Debugging</a><a href="#fnref2" class="footnote-back" role="doc-backlink">↩︎</a></p></li>
<li id="fn3"><p>Read more in the <a href="https://shiny.posit.co/r/reference/shiny/0.11/reactivevalues">Shiny documentation.</a><a href="#fnref3" class="footnote-back" role="doc-backlink">↩︎</a></p></li>
<li id="fn4"><p>We <em>can</em> access the values by wrapping the assigned object in <code>isolate()</code>. Read more in the <a href="https://shiny.posit.co/r/reference/shiny/1.7.2/session.html">documentation on <code>reactiveValues()</code></a>.<a href="#fnref4" class="footnote-back" role="doc-backlink">↩︎</a></p></li>
<li id="fn5"><p>You can view the full <code>test-mod_scatter_display.R</code> test file in the <a href="https://github.com/mjfrigaard/shinyAppPkgs/tree/24.1.4_step_04"><code>24.1.4_step_04</code></a> branch.<a href="#fnref5" class="footnote-back" role="doc-backlink">↩︎</a></p></li>
<li id="fn5"><p>You can view the full <code>test-mod_scatter_display.R</code> test file in the <a href="https://github.com/mjfrigaard/shinyrPkgs/tree/24.1.4_step_04"><code>24.1.4_step_04</code></a> branch.<a href="#fnref5" class="footnote-back" role="doc-backlink">↩︎</a></p></li>
<li id="fn6"><p>I resorted to both locations because the <code>tests/testthat/helper.R</code> file wasn’t loading with <code>devtools::load_all()</code><a href="#fnref6" class="footnote-back" role="doc-backlink">↩︎</a></p></li>
<li id="fn7"><p>We’ll cover how <code>reactiveValues()</code> works in <a href="#sec-reactiveValues" class="quarto-xref"><span>Section 27.1</span></a> below.<a href="#fnref7" class="footnote-back" role="doc-backlink">↩︎</a></p></li>
<li id="fn8"><p>Notice <code>session</code> has <code>:Classes 'ShinySession', 'R6'</code><a href="#fnref8" class="footnote-back" role="doc-backlink">↩︎</a></p></li>
Expand Down
24 changes: 12 additions & 12 deletions app_packages.html
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ <h1 class="title"><span id="sec-app-pkgs" class="quarto-section-identifier">App-
<span id="cb2-2"><a href="#cb2-2" aria-hidden="true" tabindex="-1"></a><span class="do">## # A tibble: 1 × 2</span></span>
<span id="cb2-3"><a href="#cb2-3" aria-hidden="true" tabindex="-1"></a><span class="do">## branch last_updated </span></span>
<span id="cb2-4"><a href="#cb2-4" aria-hidden="true" tabindex="-1"></a><span class="do">## &lt;chr&gt; &lt;dttm&gt; </span></span>
<span id="cb2-5"><a href="#cb2-5" aria-hidden="true" tabindex="-1"></a><span class="do">## 1 01_whole-app-game 2024-07-25 12:14:02</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<span id="cb2-5"><a href="#cb2-5" aria-hidden="true" tabindex="-1"></a><span class="do">## 1 01_whole-app-game 2024-07-30 07:59:35</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div>
</div>
</div>
Expand Down Expand Up @@ -600,9 +600,9 @@ <h1 class="title"><span id="sec-app-pkgs" class="quarto-section-identifier">App-
<span id="cb4-2"><a href="#cb4-2" aria-hidden="true" tabindex="-1"></a><span class="do">## # A tibble: 3 × 2</span></span>
<span id="cb4-3"><a href="#cb4-3" aria-hidden="true" tabindex="-1"></a><span class="do">## branch last_updated </span></span>
<span id="cb4-4"><a href="#cb4-4" aria-hidden="true" tabindex="-1"></a><span class="do">## &lt;chr&gt; &lt;dttm&gt; </span></span>
<span id="cb4-5"><a href="#cb4-5" aria-hidden="true" tabindex="-1"></a><span class="do">## 1 02.1_shiny-app 2024-07-25 12:20:46</span></span>
<span id="cb4-6"><a href="#cb4-6" aria-hidden="true" tabindex="-1"></a><span class="do">## 2 02.2_movies-app 2024-07-25 12:25:24</span></span>
<span id="cb4-7"><a href="#cb4-7" aria-hidden="true" tabindex="-1"></a><span class="do">## 3 02.3_proj-app 2024-07-25 12:28:08</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<span id="cb4-5"><a href="#cb4-5" aria-hidden="true" tabindex="-1"></a><span class="do">## 1 02.1_shiny-app 2024-07-30 08:05:21</span></span>
<span id="cb4-6"><a href="#cb4-6" aria-hidden="true" tabindex="-1"></a><span class="do">## 2 02.2_movies-app 2024-07-30 08:07:26</span></span>
<span id="cb4-7"><a href="#cb4-7" aria-hidden="true" tabindex="-1"></a><span class="do">## 3 02.3_proj-app 2024-07-30 08:10:18</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div>
</div>
</div>
Expand Down Expand Up @@ -654,9 +654,9 @@ <h1 class="title"><span id="sec-app-pkgs" class="quarto-section-identifier">App-
<span id="cb6-2"><a href="#cb6-2" aria-hidden="true" tabindex="-1"></a><span class="do">## # A tibble: 3 × 2</span></span>
<span id="cb6-3"><a href="#cb6-3" aria-hidden="true" tabindex="-1"></a><span class="do">## branch last_updated </span></span>
<span id="cb6-4"><a href="#cb6-4" aria-hidden="true" tabindex="-1"></a><span class="do">## &lt;chr&gt; &lt;dttm&gt; </span></span>
<span id="cb6-5"><a href="#cb6-5" aria-hidden="true" tabindex="-1"></a><span class="do">## 1 03.1_description 2024-07-25 12:40:09</span></span>
<span id="cb6-6"><a href="#cb6-6" aria-hidden="true" tabindex="-1"></a><span class="do">## 2 03.2_rproj 2024-07-25 12:54:08</span></span>
<span id="cb6-7"><a href="#cb6-7" aria-hidden="true" tabindex="-1"></a><span class="do">## 3 03.3_create-package 2024-07-25 12:59:58</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<span id="cb6-5"><a href="#cb6-5" aria-hidden="true" tabindex="-1"></a><span class="do">## 1 03.1_description 2024-07-30 08:13:54</span></span>
<span id="cb6-6"><a href="#cb6-6" aria-hidden="true" tabindex="-1"></a><span class="do">## 2 03.2_rproj 2024-07-30 08:16:52</span></span>
<span id="cb6-7"><a href="#cb6-7" aria-hidden="true" tabindex="-1"></a><span class="do">## 3 03.3_create-package 2024-07-30 08:49:24</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div>
</div>
</div>
Expand Down Expand Up @@ -708,7 +708,7 @@ <h1 class="title"><span id="sec-app-pkgs" class="quarto-section-identifier">App-
<span id="cb8-2"><a href="#cb8-2" aria-hidden="true" tabindex="-1"></a><span class="do">## # A tibble: 1 × 2</span></span>
<span id="cb8-3"><a href="#cb8-3" aria-hidden="true" tabindex="-1"></a><span class="do">## branch last_updated </span></span>
<span id="cb8-4"><a href="#cb8-4" aria-hidden="true" tabindex="-1"></a><span class="do">## &lt;chr&gt; &lt;dttm&gt; </span></span>
<span id="cb8-5"><a href="#cb8-5" aria-hidden="true" tabindex="-1"></a><span class="do">## 1 04_devtools 2024-07-25 13:16:35</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<span id="cb8-5"><a href="#cb8-5" aria-hidden="true" tabindex="-1"></a><span class="do">## 1 04_devtools 2024-07-30 09:04:23</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div>
</div>
</div>
Expand All @@ -717,14 +717,14 @@ <h1 class="title"><span id="sec-app-pkgs" class="quarto-section-identifier">App-
</div>
</div>
</div>
<p>We now have two branches of <code>shinyAppPkgs</code> with a functioning app-package:</p>
<p>We now have two branches of <code>shinyrPkgs</code> with a functioning app-package:</p>
<ol type="1">
<li><p>In the <code>04_devtools</code> branch (created in <a href="development.html#sec-dev-install" class="quarto-xref"><span>4.3.3 Install</span></a>), <code>shinyAppPkgs</code> was converted to a package by manually adding the required fields to the <code>DESCRIPTION</code> file, then running the key <code>devtools</code> development functions (<code>load_all()</code>, <code>document()</code>, and <code>install()</code>)</p></li>
<li><p>In the <code>03.3_create-package</code> branch (created in <a href="packages.html#sec-convert-shiny-app-packages" class="quarto-xref"><span>3.3.2 Converting Shiny projects</span></a>), we used the <code>usethis::create_package()</code> function to convert <code>shinyAppPkgs</code> into a package.</p></li>
<li><p>In the <code>04_devtools</code> branch (created in <a href="development.html#sec-dev-install" class="quarto-xref"><span>4.3.3 Install</span></a>), <code>shinyrPkgs</code> was converted to a package by manually adding the required fields to the <code>DESCRIPTION</code> file, then running the key <code>devtools</code> development functions (<code>load_all()</code>, <code>document()</code>, and <code>install()</code>)</p></li>
<li><p>In the <code>03.3_create-package</code> branch (created in <a href="packages.html#sec-convert-shiny-app-packages" class="quarto-xref"><span>3.3.2 Converting Shiny projects</span></a>), we used the <code>usethis::create_package()</code> function to convert <code>shinyrPkgs</code> into a package.</p></li>
</ol>
<p>The only difference between these two branches lies in the <code>DESCRIPTION</code> file</p>
<div class="cell">
<div class="sourceCode cell-code" id="annotated-cell-1"><pre class="sourceCode bash code-annotation-code code-with-copy code-annotated"><code class="sourceCode bash"><span id="annotated-cell-1-1"><a href="#annotated-cell-1-1" aria-hidden="true" tabindex="-1"></a><span class="ex">Package:</span> shinyAppPkgs</span>
<div class="sourceCode cell-code" id="annotated-cell-1"><pre class="sourceCode bash code-annotation-code code-with-copy code-annotated"><code class="sourceCode bash"><span id="annotated-cell-1-1"><a href="#annotated-cell-1-1" aria-hidden="true" tabindex="-1"></a><span class="ex">Package:</span> shinyrPkgs</span>
<span id="annotated-cell-1-2"><a href="#annotated-cell-1-2" aria-hidden="true" tabindex="-1"></a><span class="ex">Title:</span> Shiny App-Packages</span>
<span id="annotated-cell-1-3"><a href="#annotated-cell-1-3" aria-hidden="true" tabindex="-1"></a><span class="ex">Version:</span> 0.0.0.9000</span>
<span id="annotated-cell-1-4"><a href="#annotated-cell-1-4" aria-hidden="true" tabindex="-1"></a><span class="ex">Author:</span> John Smith [aut, cre]</span>
Expand Down
2 changes: 1 addition & 1 deletion charpente.html
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ <h1 class="title"><span id="sec-charpente" class="quarto-section-identifier"><sp
<hr>
<section id="cap-a-charpente-app-package" class="level2" data-number="24.1">
<h2 data-number="24.1" class="anchored" data-anchor-id="cap-a-charpente-app-package"><span class="header-section-number">24.1</span> cap (a <code>charpente</code> app-package)</h2>
<p>This chapter walks through building a version of the <code>shinyAppPkgs</code> with the <a href="https://rinterface.github.io/charpente/"><code>charpente</code></a> framework. The resulting app-package (<code>cap</code>) is in the <a href="https://github.com/mjfrigaard/shinyAppPkgs/tree/24_charpente"><code>24_charpente</code></a> branch.</p>
<p>This chapter walks through building a version of the <code>shinyrPkgs</code> with the <a href="https://rinterface.github.io/charpente/"><code>charpente</code></a> framework. The resulting app-package (<code>cap</code>) is in the <a href="https://github.com/mjfrigaard/shinyrPkgs/tree/24_charpente"><code>24_charpente</code></a> branch.</p>
<div class="cell">
<div class="sourceCode cell-code" id="cb1"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="fu">install.packages</span>(<span class="st">"charpente"</span>)</span>
<span id="cb1-2"><a href="#cb1-2" aria-hidden="true" tabindex="-1"></a><span class="fu">library</span>(charpente)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
Expand Down
Loading

0 comments on commit 2f858ea

Please sign in to comment.