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 Nov 21, 2023
1 parent d6e53b7 commit 62342d3
Show file tree
Hide file tree
Showing 29 changed files with 2,511 additions and 2,182 deletions.
2 changes: 1 addition & 1 deletion .nojekyll
Original file line number Diff line number Diff line change
@@ -1 +1 @@
620bc54c
4ca5afc6
14 changes: 11 additions & 3 deletions app_data.html
Original file line number Diff line number Diff line change
Expand Up @@ -485,12 +485,16 @@ <h1 class="title"><span id="sec-spec-topic-vals-data" class="quarto-section-iden
<h2 data-number="19.1" class="anchored" data-anchor-id="sec-reactiveValues"><span class="header-section-number">19.1</span> <code>reactiveValues()</code></h2>

<div class="no-row-height column-margin column-container"><div class="">
<div style="font-size: 1.10em;">
<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<p><img src="img/new_branch_ico.png" class="img-fluid figure-img" style="width:65.0%"></p>
</figure>
</div>
<p>This section’s code is in the <a href="https://github.com/mjfrigaard/moviesApp/tree/spec_topic-reactiveValues"><code>spec_topic-reactiveValues</code></a> branch of <a href="https://github.com/mjfrigaard/moviesApp"><code>moviesApp</code></a>.</p>
</div>
<div style="font-size: 1.05em;">
<p>This section’s code is in the <a href="https://github.com/mjfrigaard/moviesApp/tree/19a_reactive-values"><code>19a_reactive-values</code></a> branch of <a href="https://github.com/mjfrigaard/moviesApp"><code>moviesApp</code></a>.</p>
</div>
</div></div><p>Calling <code>reactiveValues()</code> creates <em>“an object for storing reactive values.”</em> We’ve been storing the reactive values returned from the <code>var_input</code> module in the <code>selected_vars</code> object, then passing these values into the <code>scatter_display</code> module. <a href="#fn1" class="footnote-ref" id="fnref1" role="doc-noteref"><sup>1</sup></a></p>
<div class="cell">
<div class="sourceCode cell-code" id="annotated-cell-1"><pre class="sourceCode r code-annotation-code code-with-copy code-annotated"><code class="sourceCode r"><span id="annotated-cell-1-1"><a href="#annotated-cell-1-1" aria-hidden="true" tabindex="-1"></a>movies_server <span class="ot">&lt;-</span> <span class="cf">function</span>(input, output, session) {</span>
Expand Down Expand Up @@ -850,12 +854,16 @@ <h3 data-number="19.1.4" class="anchored" data-anchor-id="step-4"><span class="h
<p>You can also view these outputs using <code>movies_app(run = 'b', bslib = TRUE)</code>.</p>

<div class="no-row-height column-margin column-container"><div class="">
<div style="font-size: 1.10em;">
<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<p><img src="img/new_branch_ico.png" class="img-fluid figure-img" style="width:65.0%"></p>
</figure>
</div>
<p>This section’s code is in the <a href="https://github.com/mjfrigaard/moviesApp/tree/spec_topic-userData"><code>spec_topic-userData</code></a> branch of <a href="https://github.com/mjfrigaard/moviesApp"><code>moviesApp</code></a>.</p>
</div>
<div style="font-size: 1.05em;">
<p>This section’s code is in the <a href="https://github.com/mjfrigaard/moviesApp/tree/19b_user-data"><code>19b_user-data</code></a> branch of <a href="https://github.com/mjfrigaard/moviesApp"><code>moviesApp</code></a>.</p>
</div>
</div></div></section>
</section>
<section id="sessionuserdata" class="level2 page-columns page-full" data-number="19.2">
Expand Down Expand Up @@ -1123,7 +1131,7 @@ <h2 data-number="19.3" class="anchored" data-anchor-id="tests"><span class="head
<p>If you decide to use <code>reactiveValues()</code> or <code>session$userData</code>, you’ll need to confirm these objects in your tests.</p>
<section id="sec-testing-reactive-values" class="level3" data-number="19.3.1">
<h3 data-number="19.3.1" class="anchored" data-anchor-id="sec-testing-reactive-values"><span class="header-section-number">19.3.1</span> Example: testing <code>reactiveValues()</code></h3>
<p>The module tests for <code>test-mod_scatter_display.R</code> had to be redesigned to handle the <code>reactiveValues()</code> input. You can view the full test file in <a href="https://github.com/mjfrigaard/moviesApp/blob/spec_topic-reactiveValues/tests/testthat/test-mod_scatter_display.R">this branch</a>, but to briefly summarize:</p>
<p>The module tests for <code>test-mod_scatter_display.R</code> had to be redesigned to handle the <code>reactiveValues()</code> input. You can view the full test file in <a href="https://github.com/mjfrigaard/moviesApp/blob/19a_reactive-values/tests/testthat/test-mod_scatter_display.R">this branch</a>, but to briefly summarize:</p>
<ul>
<li><p><code>args = list()</code> in <code>testServer()</code> now takes the output from helper functions (stored in <code>tests/testthat/helper.R</code> and <code>R/testthat.R</code>). <a href="#fn7" class="footnote-ref" id="fnref7" role="doc-noteref"><sup>7</sup></a></p>
<div class="cell">
Expand Down
16 changes: 8 additions & 8 deletions app_packages.html
Original file line number Diff line number Diff line change
Expand Up @@ -519,8 +519,8 @@ <h3 class="anchored" data-anchor-id="shiny-chapter-2">Shiny (Chapter 2)</h3>
<p>The code for Chapter 2 (Shiny) is stored in the following branches:</p>
<ol type="1">
<li><p><a href="https://github.com/mjfrigaard/moviesApp/tree/main"><code>main</code></a>: Contains a new Shiny app project created from the <strong>New Project Wizard</strong> (with Old Faithful Geyser Data)</p></li>
<li><p><a href="https://github.com/mjfrigaard/moviesApp/tree/02_movies-app"><code>02_movies-app</code></a>: The boilerplate app in <code>app.R</code> is replaced with the code for the movie review application, and the <code>scatter_plot()</code> utility function is added to <code>utils.R</code> and <code>movies.RData</code> is added to the project.</p></li>
<li><p><a href="https://github.com/mjfrigaard/moviesApp/tree/03_proj-app"><code>03_proj-app</code></a> contains an ‘fully developed’ Shiny app project with the following contents:</p>
<li><p><a href="https://github.com/mjfrigaard/moviesApp/tree/02a_movies-app"><code>02a_movies-app</code></a>: The boilerplate app in <code>app.R</code> is replaced with the code for the movie review application, and the <code>scatter_plot()</code> utility function is added to <code>utils.R</code> and <code>movies.RData</code> is added to the project.</p></li>
<li><p><a href="https://github.com/mjfrigaard/moviesApp/tree/02b_proj-app"><code>02b_proj-app</code></a> contains an ‘fully developed’ Shiny app project with the following contents:</p>
<ul>
<li><code>DESCRIPTION</code> file<br>
</li>
Expand Down Expand Up @@ -567,10 +567,10 @@ <h3 class="anchored" data-anchor-id="packages-chapter-3">Packages (Chapter 3)</h
<div style="font-size: 1.05em; color: #282b2d;">
<p>The code for Chapter 3 (Packages) is stored in the following branches:</p>
<ol type="1">
<li><p><a href="https://github.com/mjfrigaard/moviesApp/tree/03_proj-app"><code>03_proj-app</code></a> is an ‘advanced’ package from the previous chapter</p></li>
<li><p><a href="https://github.com/mjfrigaard/moviesApp/tree/04_description"><code>04_description</code></a> is a branch from <code>03_proj-app</code> and adds the seven mandatory <code>DESCRIPTION</code> fields.</p></li>
<li><p><a href="https://github.com/mjfrigaard/moviesApp/tree/05_rproj"><code>05_rproj</code></a> is a branch from <code>04_description</code> and manually converts the Shiny app project to a Shiny app-package using the <code>.Rproj</code> file.</p></li>
<li><p><a href="https://github.com/mjfrigaard/moviesApp/tree/06a_create-package"><code>06a_create-package</code></a> is a branch from <code>05_rproj</code> and creates a package using <code>usethis::create_package()</code></p></li>
<li><p><a href="https://github.com/mjfrigaard/moviesApp/tree/02b_proj-app"><code>02b_proj-app</code></a> is an ‘advanced’ package from the previous chapter</p></li>
<li><p><a href="https://github.com/mjfrigaard/moviesApp/tree/03a_description"><code>03a_description</code></a> is a branch from <code>02b_proj-app</code> and adds the seven mandatory <code>DESCRIPTION</code> fields.</p></li>
<li><p><a href="https://github.com/mjfrigaard/moviesApp/tree/03b_rproj"><code>03b_rproj</code></a> is a branch from <code>03a_description</code> and manually converts the Shiny app project to a Shiny app-package using the <code>.Rproj</code> file.</p></li>
<li><p><a href="https://github.com/mjfrigaard/moviesApp/tree/03c_create-package"><code>03c_create-package</code></a> is a branch from <code>03b_rproj</code> and creates a package using <code>usethis::create_package()</code></p></li>
</ol>
</div>
</div>
Expand Down Expand Up @@ -600,7 +600,7 @@ <h3 class="anchored" data-anchor-id="development-chapter-4">Development (Chapter
<div style="font-size: 1.05em; color: #282b2d;">
<p>The code for Chapter 4 (Development) is stored in the following branch:</p>
<ol type="1">
<li><a href="https://github.com/mjfrigaard/moviesApp/tree/06b_devtools"><code>06b_devtools</code></a> is a branch from the manually converted app-package in <a href="https://github.com/mjfrigaard/moviesApp/tree/05_rproj"><code>05_rproj</code></a></li>
<li><a href="https://github.com/mjfrigaard/moviesApp/tree/04_devtools"><code>04_devtools</code></a> is a branch from the manually converted app-package in <a href="https://github.com/mjfrigaard/moviesApp/tree/03b_rproj"><code>03b_rproj</code></a></li>
</ol>
</div>
</div>
Expand Down Expand Up @@ -628,7 +628,7 @@ <h2 class="anchored" data-anchor-id="app-packages">App-packages</h2>
<dl class="code-annotation-container-hidden code-annotation-container-grid">
<dt data-target-cell="annotated-cell-1" data-target-annotation="1">1</dt>
<dd>
<span data-code-cell="annotated-cell-1" data-code-annotation="1" data-code-lines="10">Always leave an empty line in the <code>DESCRIPTION</code></span>
<span data-code-cell="annotated-cell-1" data-code-lines="10" data-code-annotation="1">Always leave an empty line in the <code>DESCRIPTION</code></span>
</dd>
</dl>
</div>
Expand Down
4 changes: 2 additions & 2 deletions comparisons.html
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ <h3 data-number="E.0.1" class="anchored" data-anchor-id="waldo"><span class="hea
<dl class="code-annotation-container-hidden code-annotation-container-grid">
<dt data-target-cell="annotated-cell-1" data-target-annotation="1">1</dt>
<dd>
<span data-code-annotation="1" data-code-cell="annotated-cell-1" data-code-lines="2,3">Comparing identical objects</span>
<span data-code-annotation="1" data-code-lines="2,3" data-code-cell="annotated-cell-1">Comparing identical objects</span>
</dd>
</dl>
</div>
Expand Down Expand Up @@ -527,7 +527,7 @@ <h3 data-number="E.0.1" class="anchored" data-anchor-id="waldo"><span class="hea
<dl class="code-annotation-container-hidden code-annotation-container-grid">
<dt data-target-cell="annotated-cell-2" data-target-annotation="1">1</dt>
<dd>
<span data-code-annotation="1" data-code-cell="annotated-cell-2" data-code-lines="2,3">Comparing different objects</span>
<span data-code-annotation="1" data-code-lines="2,3" data-code-cell="annotated-cell-2">Comparing different objects</span>
</dd>
</dl>
</div>
Expand Down
8 changes: 6 additions & 2 deletions data.html
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ <h3 data-number="7.2.2" class="anchored" data-anchor-id="using-movies"><span cla
<dl class="code-annotation-container-hidden code-annotation-container-grid">
<dt data-target-cell="annotated-cell-19" data-target-annotation="1">1</dt>
<dd>
<span data-code-annotation="1" data-code-lines="17" data-code-cell="annotated-cell-19">The <code>movies</code> data from our package namespace</span>
<span data-code-lines="17" data-code-cell="annotated-cell-19" data-code-annotation="1">The <code>movies</code> data from our package namespace</span>
</dd>
</dl>
</div>
Expand Down Expand Up @@ -992,12 +992,16 @@ <h2 data-number="7.4" class="anchored" data-anchor-id="sec-data-inst-extdata"><s
<p>We’ll cover <code>inst/</code> and <code>system.file()</code> in more detail in the next chapter.</p>

<div class="no-row-height column-margin column-container"><div class="">
<div style="font-size: 1.10em;">
<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<p><img src="img/new_branch_ico.png" class="img-fluid figure-img" style="width:75.0%"></p>
</figure>
</div>
<p>This section’s code is in the <a href="https://github.com/mjfrigaard/moviesApp/tree/09_data"><code>09_data</code></a> branch of <a href="https://github.com/mjfrigaard/moviesApp"><code>moviesApp</code></a>.</p>
</div>
<div style="font-size: 1.05em;">
<p>This section’s code is in the <a href="https://github.com/mjfrigaard/moviesApp/tree/07_data"><code>07_data</code></a> branch of <a href="https://github.com/mjfrigaard/moviesApp"><code>moviesApp</code></a>.</p>
</div>
</div></div></section>
<section id="recap" class="level2" data-number="7.5">
<h2 data-number="7.5" class="anchored" data-anchor-id="recap"><span class="header-section-number">7.5</span> Recap</h2>
Expand Down
Loading

0 comments on commit 62342d3

Please sign in to comment.