You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Great! You are using Git for version control. Tracking code development and connecting the code version to the results is critical for reproducibility.
455
455
</p>
456
456
<p>
457
-
The results in this page were generated with repository version <ahref="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.
457
+
The results in this page were generated with repository version <ahref="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.
458
458
</p>
459
459
<p>
460
460
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:
<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>
607
-
<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>
641
+
<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>
608
642
</div>
609
643
<divid="missing-package" class="section level2">
610
644
<h2>Missing package</h2>
611
645
<p>The next error you encounter is:</p>
612
-
<pre><code>Quitting from lines 36-39 (spotify.Rmd)
646
+
<pre><code>Quitting from lines 37-40 (spotify.Rmd)
613
647
Error in rpart(genre ~ ., data = spotifyTraining) :
<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>
663
+
<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>
630
664
<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>
Great! You are using Git for version control. Tracking code development and connecting the code version to the results is critical for reproducibility.
455
455
</p>
456
456
<p>
457
-
The results in this page were generated with repository version <ahref="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.
457
+
The results in this page were generated with repository version <ahref="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.
458
458
</p>
459
459
<p>
460
460
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:
@@ -591,6 +625,7 @@ <h2>Create an account on GitHub</h2>
591
625
<h2>Create an account on RStudio Cloud</h2>
592
626
<p>To create an account on RStudio Cloud, go to <ahref="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>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>
0 commit comments