Skip to content

Commit

Permalink
redeploy first 3 examples
Browse files Browse the repository at this point in the history
  • Loading branch information
jjallaire committed Mar 26, 2018
1 parent b87a40c commit 6feaf64
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 48 deletions.
44 changes: 22 additions & 22 deletions examples/00-setup/00-setup.html

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ account: jjallaire
server: shinyapps.io
hostUrl: https://api.shinyapps.io/v1
appId: 176928
bundleId: 1284316
bundleId: 1288591
url: https://jjallaire.shinyapps.io/learnr-tutorial-00-setup/
when: 1521814731.39492
when: 1522075144.94164
asMultiple: FALSE
asStatic: FALSE
36 changes: 18 additions & 18 deletions examples/01-data-basics/01-data-basics.html
Original file line number Diff line number Diff line change
Expand Up @@ -124,40 +124,40 @@ <h3>Exercises</h3>
<tr>
<td>

<div id="htmlwidget-3993050b50c59fd8150f" style="width:100%;height:auto;", class = "quiz html-widget">
<div id="htmlwidget-27023abd1fd1962a1981" style="width:100%;height:auto;", class = "quiz html-widget">
<div class="panel panel-default">
<div class="panel-body quizArea">
</div>
</div>
</div>

<script type="application/json" data-for="htmlwidget-3993050b50c59fd8150f">{"x":{"question":"What does the <code>drv<\/code> variable of <code>mpg<\/code> describe? Read the help for <code>?mpg<\/code> to find out.","answers":[{"option":"Whether or not the vehicle has driver side airbags","correct":false,"message":null},{"option":"Whether a car is automatic or manual transmission","correct":false,"message":null},{"option":"The number of cylinders in the car&#39;s engine","correct":false,"message":null},{"option":"Something else","correct":"`drv` describes the type of drivetrain in a car: front wheel drive, rear wheel drive, or four wheel drive.","message":null}],"label":"quiz1-1","skipStartButton":true,"perQuestionResponseAnswers":true,"perQuestionResponseMessaging":true,"preventUnanswered":true,"displayQuestionCount":false,"displayQuestionNumber":false,"disableRanking":true,"nextQuestionText":"","checkAnswerText":"Submit Answer","allowRetry":true,"randomSortAnswers":false,"json":{"info":{"name":"","main":""},"questions":[{"q":"What does the <code>drv<\/code> variable of <code>mpg<\/code> describe? Read the help for <code>?mpg<\/code> to find out.","a":[{"option":"Whether or not the vehicle has driver side airbags","correct":false,"message":null},{"option":"Whether a car is automatic or manual transmission","correct":false,"message":null},{"option":"The number of cylinders in the car&#39;s engine","correct":false,"message":null},{"option":"Something else","correct":"`drv` describes the type of drivetrain in a car: front wheel drive, rear wheel drive, or four wheel drive.","message":null}],"correct":"Correct!","incorrect":"Incorrect."}]}},"evals":[],"jsHooks":[]}</script>
<script type="application/json" data-for="htmlwidget-27023abd1fd1962a1981">{"x":{"question":"What does the <code>drv<\/code> variable of <code>mpg<\/code> describe? Read the help for <code>?mpg<\/code> to find out.","answers":[{"option":"Whether or not the vehicle has driver side airbags","correct":false,"message":null},{"option":"Whether a car is automatic or manual transmission","correct":false,"message":null},{"option":"The number of cylinders in the car&#39;s engine","correct":false,"message":null},{"option":"Something else","correct":"`drv` describes the type of drivetrain in a car: front wheel drive, rear wheel drive, or four wheel drive.","message":null}],"label":"quiz1-1","skipStartButton":true,"perQuestionResponseAnswers":true,"perQuestionResponseMessaging":true,"preventUnanswered":true,"displayQuestionCount":false,"displayQuestionNumber":false,"disableRanking":true,"nextQuestionText":"","checkAnswerText":"Submit Answer","allowRetry":true,"randomSortAnswers":false,"json":{"info":{"name":"","main":""},"questions":[{"q":"What does the <code>drv<\/code> variable of <code>mpg<\/code> describe? Read the help for <code>?mpg<\/code> to find out.","a":[{"option":"Whether or not the vehicle has driver side airbags","correct":false,"message":null},{"option":"Whether a car is automatic or manual transmission","correct":false,"message":null},{"option":"The number of cylinders in the car&#39;s engine","correct":false,"message":null},{"option":"Something else","correct":"`drv` describes the type of drivetrain in a car: front wheel drive, rear wheel drive, or four wheel drive.","message":null}],"correct":"Correct!","incorrect":"Incorrect."}]}},"evals":[],"jsHooks":[]}</script>
</td>
</tr>
<tr>
<td>

<div id="htmlwidget-99543874253386cf692e" style="width:100%;height:auto;", class = "quiz html-widget">
<div id="htmlwidget-16b4f86e8a7582e10d01" style="width:100%;height:auto;", class = "quiz html-widget">
<div class="panel panel-default">
<div class="panel-body quizArea">
</div>
</div>
</div>

<script type="application/json" data-for="htmlwidget-99543874253386cf692e">{"x":{"question":"How many rows are in the data frame named <code>cars<\/code>?","answers":[{"option":"2","correct":false,"message":null},{"option":"25","correct":false,"message":null},{"option":"50","correct":true,"message":null},{"option":"100","correct":false,"message":null}],"label":"quiz1-2","skipStartButton":true,"perQuestionResponseAnswers":true,"perQuestionResponseMessaging":true,"preventUnanswered":true,"displayQuestionCount":false,"displayQuestionNumber":false,"disableRanking":true,"nextQuestionText":"","checkAnswerText":"Submit Answer","allowRetry":true,"randomSortAnswers":false,"json":{"info":{"name":"","main":""},"questions":[{"q":"How many rows are in the data frame named <code>cars<\/code>?","a":[{"option":"2","correct":false,"message":null},{"option":"25","correct":false,"message":null},{"option":"50","correct":true,"message":null},{"option":"100","correct":false,"message":null}],"correct":"Correct!","incorrect":"Hint: R numbers the rows of a data frame when it displays the contents of a data frame. As a result, you can spot the number of rows in <code>cars<\/code> by examining <code>cars<\/code> in the code block above."}]}},"evals":[],"jsHooks":[]}</script>
<script type="application/json" data-for="htmlwidget-16b4f86e8a7582e10d01">{"x":{"question":"How many rows are in the data frame named <code>cars<\/code>?","answers":[{"option":"2","correct":false,"message":null},{"option":"25","correct":false,"message":null},{"option":"50","correct":true,"message":null},{"option":"100","correct":false,"message":null}],"label":"quiz1-2","skipStartButton":true,"perQuestionResponseAnswers":true,"perQuestionResponseMessaging":true,"preventUnanswered":true,"displayQuestionCount":false,"displayQuestionNumber":false,"disableRanking":true,"nextQuestionText":"","checkAnswerText":"Submit Answer","allowRetry":true,"randomSortAnswers":false,"json":{"info":{"name":"","main":""},"questions":[{"q":"How many rows are in the data frame named <code>cars<\/code>?","a":[{"option":"2","correct":false,"message":null},{"option":"25","correct":false,"message":null},{"option":"50","correct":true,"message":null},{"option":"100","correct":false,"message":null}],"correct":"Correct!","incorrect":"Hint: R numbers the rows of a data frame when it displays the contents of a data frame. As a result, you can spot the number of rows in <code>cars<\/code> by examining <code>cars<\/code> in the code block above."}]}},"evals":[],"jsHooks":[]}</script>
</td>
</tr>
<tr>
<td>

<div id="htmlwidget-edfe721e6cabdc1736f8" style="width:100%;height:auto;", class = "quiz html-widget">
<div id="htmlwidget-0653f0450fe6fe5a18c0" style="width:100%;height:auto;", class = "quiz html-widget">
<div class="panel panel-default">
<div class="panel-body quizArea">
</div>
</div>
</div>

<script type="application/json" data-for="htmlwidget-edfe721e6cabdc1736f8">{"x":{"question":"How many columns are in the data frame named <code>cars<\/code>?","answers":[{"option":"1","correct":false,"message":null},{"option":"2","correct":true,"message":null},{"option":"4","correct":false,"message":null},{"option":"more than four","correct":false,"message":null}],"label":"quiz1-3","skipStartButton":true,"perQuestionResponseAnswers":true,"perQuestionResponseMessaging":true,"preventUnanswered":true,"displayQuestionCount":false,"displayQuestionNumber":false,"disableRanking":true,"nextQuestionText":"","checkAnswerText":"Submit Answer","allowRetry":true,"randomSortAnswers":false,"json":{"info":{"name":"","main":""},"questions":[{"q":"How many columns are in the data frame named <code>cars<\/code>?","a":[{"option":"1","correct":false,"message":null},{"option":"2","correct":true,"message":null},{"option":"4","correct":false,"message":null},{"option":"more than four","correct":false,"message":null}],"correct":"Correct!","incorrect":"Hint: If you inspect the contents of <code>cars<\/code> in the code block above, it should be pretty easy to count the number of columns."}]}},"evals":[],"jsHooks":[]}</script>
<script type="application/json" data-for="htmlwidget-0653f0450fe6fe5a18c0">{"x":{"question":"How many columns are in the data frame named <code>cars<\/code>?","answers":[{"option":"1","correct":false,"message":null},{"option":"2","correct":true,"message":null},{"option":"4","correct":false,"message":null},{"option":"more than four","correct":false,"message":null}],"label":"quiz1-3","skipStartButton":true,"perQuestionResponseAnswers":true,"perQuestionResponseMessaging":true,"preventUnanswered":true,"displayQuestionCount":false,"displayQuestionNumber":false,"disableRanking":true,"nextQuestionText":"","checkAnswerText":"Submit Answer","allowRetry":true,"randomSortAnswers":false,"json":{"info":{"name":"","main":""},"questions":[{"q":"How many columns are in the data frame named <code>cars<\/code>?","a":[{"option":"1","correct":false,"message":null},{"option":"2","correct":true,"message":null},{"option":"4","correct":false,"message":null},{"option":"more than four","correct":false,"message":null}],"correct":"Correct!","incorrect":"Hint: If you inspect the contents of <code>cars<\/code> in the code block above, it should be pretty easy to count the number of columns."}]}},"evals":[],"jsHooks":[]}</script>
</td>
</tr>
</table>
Expand Down Expand Up @@ -195,16 +195,16 @@ <h3>Type codes</h3>
<pre><code># A tibble: 336,776 x 19
year month day dep_time sched_dep_time dep_delay arr_time
&lt;int&gt; &lt;int&gt; &lt;int&gt; &lt;int&gt; &lt;int&gt; &lt;dbl&gt; &lt;int&gt;
1 2013 1 1 517 515 2 830
2 2013 1 1 533 529 4 850
3 2013 1 1 542 540 2 923
4 2013 1 1 544 545 -1 1004
5 2013 1 1 554 600 -6 812
6 2013 1 1 554 558 -4 740
7 2013 1 1 555 600 -5 913
8 2013 1 1 557 600 -3 709
9 2013 1 1 557 600 -3 838
10 2013 1 1 558 600 -2 753
1 2013 1 1 517 515 2.00 830
2 2013 1 1 533 529 4.00 850
3 2013 1 1 542 540 2.00 923
4 2013 1 1 544 545 -1.00 1004
5 2013 1 1 554 600 -6.00 812
6 2013 1 1 554 558 -4.00 740
7 2013 1 1 555 600 -5.00 913
8 2013 1 1 557 600 -3.00 709
9 2013 1 1 557 600 -3.00 838
10 2013 1 1 558 600 -2.00 753
# ... with 336,766 more rows, and 12 more variables: sched_arr_time &lt;int&gt;,
# arr_delay &lt;dbl&gt;, carrier &lt;chr&gt;, flight &lt;int&gt;, tailnum &lt;chr&gt;,
# origin &lt;chr&gt;, dest &lt;chr&gt;, air_time &lt;dbl&gt;, distance &lt;dbl&gt;, hour &lt;dbl&gt;,
Expand All @@ -229,14 +229,14 @@ <h3>Type codes</h3>
<div id="section-test-your-knowledge" class="section level3">
<h3>Test your knowledge</h3>

<div id="htmlwidget-1afbc91f9feb371506bc" style="width:100%;height:auto;", class = "quiz html-widget">
<div id="htmlwidget-6f9268b5e6773bc75fc7" style="width:100%;height:auto;", class = "quiz html-widget">
<div class="panel panel-default">
<div class="panel-body quizArea">
</div>
</div>
</div>

<script type="application/json" data-for="htmlwidget-1afbc91f9feb371506bc">{"x":{"question":"Which types of variables does <code>flights<\/code> contain? Check all that apply.","answers":[{"option":"integers","correct":true,"message":null},{"option":"doubles","correct":true,"message":null},{"option":"factors","correct":false,"message":null},{"option":"characters","correct":true,"message":null}],"label":"quiz2","skipStartButton":true,"perQuestionResponseAnswers":true,"perQuestionResponseMessaging":true,"preventUnanswered":true,"displayQuestionCount":false,"displayQuestionNumber":false,"disableRanking":true,"nextQuestionText":"","checkAnswerText":"Submit Answer","allowRetry":true,"randomSortAnswers":false,"json":{"info":{"name":"","main":""},"questions":[{"q":"Which types of variables does <code>flights<\/code> contain? Check all that apply.","a":[{"option":"integers","correct":true,"message":null},{"option":"doubles","correct":true,"message":null},{"option":"factors","correct":false,"message":null},{"option":"characters","correct":true,"message":null}],"correct":"Great Job!","incorrect":"Look a little closer at <code>flights<\/code>.","force_checkbox":true}]}},"evals":[],"jsHooks":[]}</script>
<script type="application/json" data-for="htmlwidget-6f9268b5e6773bc75fc7">{"x":{"question":"Which types of variables does <code>flights<\/code> contain? Check all that apply.","answers":[{"option":"integers","correct":true,"message":null},{"option":"doubles","correct":true,"message":null},{"option":"factors","correct":false,"message":null},{"option":"characters","correct":true,"message":null}],"label":"quiz2","skipStartButton":true,"perQuestionResponseAnswers":true,"perQuestionResponseMessaging":true,"preventUnanswered":true,"displayQuestionCount":false,"displayQuestionNumber":false,"disableRanking":true,"nextQuestionText":"","checkAnswerText":"Submit Answer","allowRetry":true,"randomSortAnswers":false,"json":{"info":{"name":"","main":""},"questions":[{"q":"Which types of variables does <code>flights<\/code> contain? Check all that apply.","a":[{"option":"integers","correct":true,"message":null},{"option":"doubles","correct":true,"message":null},{"option":"factors","correct":false,"message":null},{"option":"characters","correct":true,"message":null}],"correct":"Great Job!","incorrect":"Look a little closer at <code>flights<\/code>.","force_checkbox":true}]}},"evals":[],"jsHooks":[]}</script>
</div>
<div id="section-congratulations" class="section level3">
<h3>Congratulations</h3>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ account: jjallaire
server: shinyapps.io
hostUrl: https://api.shinyapps.io/v1
appId: 176930
bundleId: 1284336
bundleId: 1288597
url: https://jjallaire.shinyapps.io/learnr-tutorial-01-data-basics/
when: 1521815382.26068
when: 1522075291.56135
asMultiple: FALSE
asStatic: FALSE
4 changes: 2 additions & 2 deletions examples/03a-data-manip-filter/03a-data-manip-filter.html
Original file line number Diff line number Diff line change
Expand Up @@ -147,14 +147,14 @@ <h3>&amp;, |, and !</h3>
</p>
</div>

<div id="htmlwidget-a189a1a2c30f5b4e8ff8" style="width:100%;height:auto;", class = "quiz html-widget">
<div id="htmlwidget-8a1224c2bcdc5ff33101" style="width:100%;height:auto;", class = "quiz html-widget">
<div class="panel panel-default">
<div class="panel-body quizArea">
</div>
</div>
</div>

<script type="application/json" data-for="htmlwidget-a189a1a2c30f5b4e8ff8">{"x":{"question":"What will the following code return? <code>filter(flights, month == 11 | month == 12)<\/code>","answers":[{"option":"Every flight that departed in November <em>or<\/em> December","correct":true,"message":null},{"option":"Every flight that departed in November <em>and<\/em> December","correct":false,"message":"Technically a flight could not have departed in November <em>and<\/em> December unless it departed twice."},{"option":"Every flight <em>except for<\/em> those that departed in November or December","correct":false,"message":null},{"option":"An error. This is an incorrect way to combine tests.","correct":false,"message":"The next section will say a little more about combining tests."}],"label":"logicals","skipStartButton":true,"perQuestionResponseAnswers":true,"perQuestionResponseMessaging":true,"preventUnanswered":true,"displayQuestionCount":false,"displayQuestionNumber":false,"disableRanking":true,"nextQuestionText":"","checkAnswerText":"Submit Answer","allowRetry":true,"randomSortAnswers":false,"json":{"info":{"name":"","main":""},"questions":[{"q":"What will the following code return? <code>filter(flights, month == 11 | month == 12)<\/code>","a":[{"option":"Every flight that departed in November <em>or<\/em> December","correct":true,"message":null},{"option":"Every flight that departed in November <em>and<\/em> December","correct":false,"message":"Technically a flight could not have departed in November <em>and<\/em> December unless it departed twice."},{"option":"Every flight <em>except for<\/em> those that departed in November or December","correct":false,"message":null},{"option":"An error. This is an incorrect way to combine tests.","correct":false,"message":"The next section will say a little more about combining tests."}],"correct":"Correct!","incorrect":"Incorrect."}]}},"evals":[],"jsHooks":[]}</script>
<script type="application/json" data-for="htmlwidget-8a1224c2bcdc5ff33101">{"x":{"question":"What will the following code return? <code>filter(flights, month == 11 | month == 12)<\/code>","answers":[{"option":"Every flight that departed in November <em>or<\/em> December","correct":true,"message":null},{"option":"Every flight that departed in November <em>and<\/em> December","correct":false,"message":"Technically a flight could not have departed in November <em>and<\/em> December unless it departed twice."},{"option":"Every flight <em>except for<\/em> those that departed in November or December","correct":false,"message":null},{"option":"An error. This is an incorrect way to combine tests.","correct":false,"message":"The next section will say a little more about combining tests."}],"label":"logicals","skipStartButton":true,"perQuestionResponseAnswers":true,"perQuestionResponseMessaging":true,"preventUnanswered":true,"displayQuestionCount":false,"displayQuestionNumber":false,"disableRanking":true,"nextQuestionText":"","checkAnswerText":"Submit Answer","allowRetry":true,"randomSortAnswers":false,"json":{"info":{"name":"","main":""},"questions":[{"q":"What will the following code return? <code>filter(flights, month == 11 | month == 12)<\/code>","a":[{"option":"Every flight that departed in November <em>or<\/em> December","correct":true,"message":null},{"option":"Every flight that departed in November <em>and<\/em> December","correct":false,"message":"Technically a flight could not have departed in November <em>and<\/em> December unless it departed twice."},{"option":"Every flight <em>except for<\/em> those that departed in November or December","correct":false,"message":null},{"option":"An error. This is an incorrect way to combine tests.","correct":false,"message":"The next section will say a little more about combining tests."}],"correct":"Correct!","incorrect":"Incorrect."}]}},"evals":[],"jsHooks":[]}</script>
</div>
<div id="section-common-mistakes" class="section level3">
<h3>Common mistakes</h3>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ account: jjallaire
server: shinyapps.io
hostUrl: https://api.shinyapps.io/v1
appId: 176933
bundleId: 1284355
bundleId: 1288601
url: https://jjallaire.shinyapps.io/learnr-tutorial-03a-data-manip-filter/
when: 1521815816.00744
when: 1522075464.06247
asMultiple: FALSE
asStatic: FALSE

0 comments on commit 6feaf64

Please sign in to comment.