Skip to content

Commit

Permalink
Build site.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdblischak committed Jul 2, 2020
1 parent 6896c7a commit 46d9b5b
Show file tree
Hide file tree
Showing 3 changed files with 130 additions and 28 deletions.
56 changes: 45 additions & 11 deletions docs/challenge.html
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ <h4 class="date">2020-06-11</h4>
<div class="tab-content">
<div id="summary" class="tab-pane fade in active">
<p>
<strong>Last updated:</strong> 2020-06-29
<strong>Last updated:</strong> 2020-07-02
</p>
<p>
<strong>Checks:</strong> <span class="glyphicon glyphicon-ok text-success" aria-hidden="true"></span> 2 <span class="glyphicon glyphicon-exclamation-sign text-danger" aria-hidden="true"></span> 0
Expand Down Expand Up @@ -445,16 +445,16 @@ <h4 class="date">2020-06-11</h4>
<div class="panel panel-default">
<div class="panel-heading">
<p class="panel-title">
<a data-toggle="collapse" data-parent="#workflowr-checks" href="#strongRepositoryversionstrongahrefhttpsgithubcomworkflowrworkflowruseR2020tree5cef3ebfb9d98153e77efe4ef7556f9ed6f0f15atargetblank5cef3eba"> <span class="glyphicon glyphicon-ok text-success" aria-hidden="true"></span> <strong>Repository version:</strong> <a href="https://github.com/workflowr/workflowr-useR2020/tree/5cef3ebfb9d98153e77efe4ef7556f9ed6f0f15a" target="_blank">5cef3eb</a> </a>
<a data-toggle="collapse" data-parent="#workflowr-checks" href="#strongRepositoryversionstrongahrefhttpsgithubcomworkflowrworkflowruseR2020tree6896c7a7c6730261e760366436ee8caf8b018d08targetblank6896c7aa"> <span class="glyphicon glyphicon-ok text-success" aria-hidden="true"></span> <strong>Repository version:</strong> <a href="https://github.com/workflowr/workflowr-useR2020/tree/6896c7a7c6730261e760366436ee8caf8b018d08" target="_blank">6896c7a</a> </a>
</p>
</div>
<div id="strongRepositoryversionstrongahrefhttpsgithubcomworkflowrworkflowruseR2020tree5cef3ebfb9d98153e77efe4ef7556f9ed6f0f15atargetblank5cef3eba" class="panel-collapse collapse">
<div id="strongRepositoryversionstrongahrefhttpsgithubcomworkflowrworkflowruseR2020tree6896c7a7c6730261e760366436ee8caf8b018d08targetblank6896c7aa" class="panel-collapse collapse">
<div class="panel-body">
<p>
Great! You are using Git for version control. Tracking code development and connecting the code version to the results is critical for reproducibility.
</p>
<p>
The results in this page were generated with repository version <a href="https://github.com/workflowr/workflowr-useR2020/tree/5cef3ebfb9d98153e77efe4ef7556f9ed6f0f15a" target="_blank">5cef3eb</a>. See the <em>Past versions</em> tab to see a history of the changes made to the R Markdown and HTML files.
The results in this page were generated with repository version <a href="https://github.com/workflowr/workflowr-useR2020/tree/6896c7a7c6730261e760366436ee8caf8b018d08" target="_blank">6896c7a</a>. See the <em>Past versions</em> tab to see a history of the changes made to the R Markdown and HTML files.
</p>
<p>
Note that you need to be careful to ensure that all relevant files for the analysis have been committed to Git prior to generating the results (you can use <code>wflow_publish</code> or <code>wflow_git_commit</code>). workflowr only checks the R Markdown file, but you know if there are other scripts or data files that it depends on. Below is the status of the Git repository when the results were generated:
Expand Down Expand Up @@ -506,6 +506,40 @@ <h4 class="date">2020-06-11</h4>
Rmd
</td>
<td>
<a href="https://github.com/workflowr/workflowr-useR2020/blob/6896c7a7c6730261e760366436ee8caf8b018d08/analysis/challenge.Rmd" target="_blank">6896c7a</a>
</td>
<td>
John Blischak
</td>
<td>
2020-07-02
</td>
<td>
Some updates to tutorial steps.
</td>
</tr>
<tr>
<td>
html
</td>
<td>
<a href="https://rawcdn.githack.com/workflowr/workflowr-useR2020/f2e1543889c738f88aa2177671c4c0cafb478bb5/docs/challenge.html" target="_blank">f2e1543</a>
</td>
<td>
John Blischak
</td>
<td>
2020-06-29
</td>
<td>
Build site.
</td>
</tr>
<tr>
<td>
Rmd
</td>
<td>
<a href="https://github.com/workflowr/workflowr-useR2020/blob/b6df9b59c2b9741e016e644f8392f931018e692f/analysis/challenge.Rmd" target="_blank">b6df9b5</a>
</td>
<td>
Expand Down Expand Up @@ -589,7 +623,7 @@ <h2>Getting started</h2>
<div id="file-paths" class="section level2">
<h2>File paths</h2>
<p>The first error you will encounter is below:</p>
<pre><code>Quitting from lines 16-21 (spotify.Rmd)
<pre><code>Quitting from lines 18-23 (spotify.Rmd)
Error in file(file, &quot;rt&quot;) : cannot open the connection
Calls: &lt;Anonymous&gt; ... withVisible -&gt; eval -&gt; eval -&gt; read.csv -&gt; read.table -&gt; file
Execution halted</code></pre>
Expand All @@ -598,18 +632,18 @@ <h2>File paths</h2>
<div id="undefined-variable" class="section level2">
<h2>Undefined variable</h2>
<p>The next error you encounter is:</p>
<pre><code>Quitting from lines 27-30 (spotify.Rmd)
<pre><code>Quitting from lines 28-31 (spotify.Rmd)
Error in sample.int(length(x), size, replace, prob) :
object &#39;numTrainingSamples&#39; not found
Calls: &lt;Anonymous&gt; ... withVisible -&gt; eval -&gt; eval -&gt; sample -&gt; sample.int
Execution halted</code></pre>
<p>It looks like the variable <code>numTrainingSamples</code> isn’t defined in the Rmd file. This error often occurs when a variable is interactively created in the R console, but you forget to define it in the script.</p>
<p>Based on the description above the code chunk, can you define the variable <code>numTrainingSamples</code>? Hint: You can obtain the number of samples with <code>nrow(spotify)</code>.</p>
<p>The training set should contain 3/4 of the samples. Can you define the variable <code>numTrainingSamples</code>? Hint: You can obtain the number of samples with <code>nrow(spotify)</code>.</p>
</div>
<div id="missing-package" class="section level2">
<h2>Missing package</h2>
<p>The next error you encounter is:</p>
<pre><code>Quitting from lines 36-39 (spotify.Rmd)
<pre><code>Quitting from lines 37-40 (spotify.Rmd)
Error in rpart(genre ~ ., data = spotifyTraining) :
could not find function &quot;rpart&quot;
Calls: &lt;Anonymous&gt; ... handle -&gt; withCallingHandlers -&gt; withVisible -&gt; eval -&gt; eval
Expand All @@ -620,13 +654,13 @@ <h2>Missing package</h2>
<div id="renamed-variable" class="section level2">
<h2>Renamed variable</h2>
<p>The next error you encounter is:</p>
<pre><code>Quitting from lines 61-66 (spotify.Rmd)
Error in mean(spotifyTesting[, 1] == predict_random) :
<pre><code>Quitting from lines 62-67 (spotify.Rmd)
Error in mean(spotifyTesting[, 1] == predictGuess) :
object &#39;predict_random&#39; not found
Calls: &lt;Anonymous&gt; ... withCallingHandlers -&gt; withVisible -&gt; eval -&gt; eval -&gt; mean

Execution halted</code></pre>
<p>R can’t find the variable named <code>predict_random</code>. Look at the surrounding code: what do you think the name of this variable should be?</p>
<p>R can’t find the variable named <code>predictGuess</code>. Look at the surrounding code: what do you think the name of this variable should be?</p>
<p>Renaming variables during an analysis can lead to these subtle errors. Since both the original and updated versions of the variable are defined in the current R session, the code will continue to run. But when you or someone else tries to run the code in a clean R session, the code will unexpectedly fail.</p>
</div>
<div id="compare-results" class="section level2">
Expand Down
43 changes: 39 additions & 4 deletions docs/setup.html
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ <h4 class="date">2020-06-11</h4>
<div class="tab-content">
<div id="summary" class="tab-pane fade in active">
<p>
<strong>Last updated:</strong> 2020-07-01
<strong>Last updated:</strong> 2020-07-02
</p>
<p>
<strong>Checks:</strong> <span class="glyphicon glyphicon-ok text-success" aria-hidden="true"></span> 2 <span class="glyphicon glyphicon-exclamation-sign text-danger" aria-hidden="true"></span> 0
Expand Down Expand Up @@ -445,16 +445,16 @@ <h4 class="date">2020-06-11</h4>
<div class="panel panel-default">
<div class="panel-heading">
<p class="panel-title">
<a data-toggle="collapse" data-parent="#workflowr-checks" href="#strongRepositoryversionstrongahrefhttpsgithubcomworkflowrworkflowruseR2020treee3f11b9ba23b721f56c2a04eb717006cb1ff1465targetblanke3f11b9a"> <span class="glyphicon glyphicon-ok text-success" aria-hidden="true"></span> <strong>Repository version:</strong> <a href="https://github.com/workflowr/workflowr-useR2020/tree/e3f11b9ba23b721f56c2a04eb717006cb1ff1465" target="_blank">e3f11b9</a> </a>
<a data-toggle="collapse" data-parent="#workflowr-checks" href="#strongRepositoryversionstrongahrefhttpsgithubcomworkflowrworkflowruseR2020tree6896c7a7c6730261e760366436ee8caf8b018d08targetblank6896c7aa"> <span class="glyphicon glyphicon-ok text-success" aria-hidden="true"></span> <strong>Repository version:</strong> <a href="https://github.com/workflowr/workflowr-useR2020/tree/6896c7a7c6730261e760366436ee8caf8b018d08" target="_blank">6896c7a</a> </a>
</p>
</div>
<div id="strongRepositoryversionstrongahrefhttpsgithubcomworkflowrworkflowruseR2020treee3f11b9ba23b721f56c2a04eb717006cb1ff1465targetblanke3f11b9a" class="panel-collapse collapse">
<div id="strongRepositoryversionstrongahrefhttpsgithubcomworkflowrworkflowruseR2020tree6896c7a7c6730261e760366436ee8caf8b018d08targetblank6896c7aa" class="panel-collapse collapse">
<div class="panel-body">
<p>
Great! You are using Git for version control. Tracking code development and connecting the code version to the results is critical for reproducibility.
</p>
<p>
The results in this page were generated with repository version <a href="https://github.com/workflowr/workflowr-useR2020/tree/e3f11b9ba23b721f56c2a04eb717006cb1ff1465" target="_blank">e3f11b9</a>. See the <em>Past versions</em> tab to see a history of the changes made to the R Markdown and HTML files.
The results in this page were generated with repository version <a href="https://github.com/workflowr/workflowr-useR2020/tree/6896c7a7c6730261e760366436ee8caf8b018d08" target="_blank">6896c7a</a>. See the <em>Past versions</em> tab to see a history of the changes made to the R Markdown and HTML files.
</p>
<p>
Note that you need to be careful to ensure that all relevant files for the analysis have been committed to Git prior to generating the results (you can use <code>wflow_publish</code> or <code>wflow_git_commit</code>). workflowr only checks the R Markdown file, but you know if there are other scripts or data files that it depends on. Below is the status of the Git repository when the results were generated:
Expand Down Expand Up @@ -506,6 +506,40 @@ <h4 class="date">2020-06-11</h4>
Rmd
</td>
<td>
<a href="https://github.com/workflowr/workflowr-useR2020/blob/6896c7a7c6730261e760366436ee8caf8b018d08/analysis/setup.Rmd" target="_blank">6896c7a</a>
</td>
<td>
John Blischak
</td>
<td>
2020-07-02
</td>
<td>
Some updates to tutorial steps.
</td>
</tr>
<tr>
<td>
html
</td>
<td>
<a href="https://rawcdn.githack.com/workflowr/workflowr-useR2020/7c12cad05b1fcd34c530ed0a7f9179917c5d4657/docs/setup.html" target="_blank">7c12cad</a>
</td>
<td>
John Blischak
</td>
<td>
2020-07-01
</td>
<td>
Build site.
</td>
</tr>
<tr>
<td>
Rmd
</td>
<td>
<a href="https://github.com/workflowr/workflowr-useR2020/blob/e3f11b9ba23b721f56c2a04eb717006cb1ff1465/analysis/setup.Rmd" target="_blank">e3f11b9</a>
</td>
<td>
Expand Down Expand Up @@ -591,6 +625,7 @@ <h2>Create an account on GitHub</h2>
<h2>Create an account on RStudio Cloud</h2>
<p>To create an account on RStudio Cloud, go to <a href="https://login.rstudio.cloud/register/" class="uri">https://login.rstudio.cloud/register/</a>. You can either create a new username and password, or you can use your Google or GitHub credentials. I recommend using your GitHub account for authentication on RStudio Cloud. The standard “Free” plan is sufficient for this tutorial.</p>
<p><img src="assets/create-rscloud-account.jpg" /></p>
<p>If you do use an email address to create your account, you will need to verify your email address by clicking on the link in the email sent by RStudio Cloud.</p>
</div>
<div id="create-your-own-copy-of-the-tutorial-project" class="section level2">
<h2>Create your own copy of the tutorial project</h2>
Expand Down
Loading

0 comments on commit 46d9b5b

Please sign in to comment.