Skip to content

Commit

Permalink
removed "" around years in DT exercise
Browse files Browse the repository at this point in the history
  • Loading branch information
samanthacsik committed Jan 26, 2024
1 parent 1b4126e commit ff4fc38
Show file tree
Hide file tree
Showing 19 changed files with 28 additions and 28 deletions.
4 changes: 2 additions & 2 deletions course-materials/slides/part2.1-single-file-app-slides.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -1126,8 +1126,8 @@ ui <- fluidPage(
# year input ----
checkboxGroupInput(inputId = "year_input", label = "Select year(s):",
choices = c("2007", "2008", "2009"), # or `unique(penguins$year_input)` | NOTE: update checkbox display name by using "New name" = "observation name" (e.g "The year 2007" = "2007")
selected = c("2007", "2008")),
choices = c(2007, 2008, 2009), # or `unique(penguins$year)` | NOTE: update checkbox display name by using "New name" = "observation name" (e.g "The year 2007" = 2007)
selected = c(2007, 2008)),
# DT output ----
DT::dataTableOutput(outputId = "penguin_DT_output")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ <h2></h2>
</div>
<div class="cell">
<div class="cell-output-display">
<div class="countdown" id="timer_e16b790c" data-update-every="1" tabindex="0" style="right:0;bottom:0;font-size:2em;">
<div class="countdown" id="timer_5466677f" data-update-every="1" tabindex="0" style="right:0;bottom:0;font-size:2em;">
<div class="countdown-controls"><button class="countdown-bump-down"></button><button class="countdown-bump-up">+</button></div>
<code class="countdown-time"><span class="countdown-digits minutes">05</span><span class="countdown-digits colon">:</span><span class="countdown-digits seconds">00</span></code>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/course-materials/slides/part1.2-setup-app-slides.html
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ <h2></h2>
</div>
<div class="cell">
<div class="cell-output-display">
<div class="countdown" id="timer_83b2ae5c" data-update-every="1" tabindex="0" style="right:0;bottom:0;font-size:2em;">
<div class="countdown" id="timer_28e2b736" data-update-every="1" tabindex="0" style="right:0;bottom:0;font-size:2em;">
<div class="countdown-controls"><button class="countdown-bump-down"></button><button class="countdown-bump-up">+</button></div>
<code class="countdown-time"><span class="countdown-digits minutes">05</span><span class="countdown-digits colon">:</span><span class="countdown-digits seconds">00</span></code>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1389,8 +1389,8 @@ <h2></h2>
<span id="cb18-22"><a href="#cb18-22"></a> </span>
<span id="cb18-23"><a href="#cb18-23"></a> <span class="co"># year input ----</span></span>
<span id="cb18-24"><a href="#cb18-24"></a> <span class="fu">checkboxGroupInput</span>(<span class="at">inputId =</span> <span class="st">"year_input"</span>, <span class="at">label =</span> <span class="st">"Select year(s):"</span>,</span>
<span id="cb18-25"><a href="#cb18-25"></a> <span class="at">choices =</span> <span class="fu">c</span>(<span class="st">"2007"</span>, <span class="st">"2008"</span>, <span class="st">"2009"</span>), <span class="co"># or `unique(penguins$year_input)` | </span><span class="al">NOTE</span><span class="co">: update checkbox display name by using "New name" = "observation name" (e.g "The year 2007" = "2007")</span></span>
<span id="cb18-26"><a href="#cb18-26"></a> <span class="at">selected =</span> <span class="fu">c</span>(<span class="st">"2007"</span>, <span class="st">"2008"</span>)),</span>
<span id="cb18-25"><a href="#cb18-25"></a> <span class="at">choices =</span> <span class="fu">c</span>(<span class="dv">2007</span>, <span class="dv">2008</span>, <span class="dv">2009</span>), <span class="co"># or `unique(penguins$year)` | </span><span class="al">NOTE</span><span class="co">: update checkbox display name by using "New name" = "observation name" (e.g "The year 2007" = 2007)</span></span>
<span id="cb18-26"><a href="#cb18-26"></a> <span class="at">selected =</span> <span class="fu">c</span>(<span class="dv">2007</span>, <span class="dv">2008</span>)),</span>
<span id="cb18-27"><a href="#cb18-27"></a> </span>
<span id="cb18-28"><a href="#cb18-28"></a> <span class="co"># DT output ----</span></span>
<span id="cb18-29"><a href="#cb18-29"></a> DT<span class="sc">::</span><span class="fu">dataTableOutput</span>(<span class="at">outputId =</span> <span class="st">"penguin_DT_output"</span>)</span>
Expand Down Expand Up @@ -1494,7 +1494,7 @@ <h2></h2>
</div>
<div class="cell">
<div class="cell-output-display">
<div class="countdown" id="timer_b84a7912" data-update-every="1" tabindex="0" style="right:0;bottom:0;font-size:2em;">
<div class="countdown" id="timer_986beaa3" data-update-every="1" tabindex="0" style="right:0;bottom:0;font-size:2em;">
<div class="countdown-controls"><button class="countdown-bump-down"></button><button class="countdown-bump-up">+</button></div>
<code class="countdown-time"><span class="countdown-digits minutes">05</span><span class="countdown-digits colon">:</span><span class="countdown-digits seconds">00</span></code>
</div>
Expand Down
6 changes: 3 additions & 3 deletions docs/course-materials/slides/part2.2-two-file-app-slides.html
Original file line number Diff line number Diff line change
Expand Up @@ -1538,7 +1538,7 @@ <h2></h2>
</div>
<div class="cell">
<div class="cell-output-display">
<div class="countdown" id="timer_d48e6088" data-update-every="1" tabindex="0" style="right:0;bottom:0;font-size:2em;">
<div class="countdown" id="timer_6080619c" data-update-every="1" tabindex="0" style="right:0;bottom:0;font-size:2em;">
<div class="countdown-controls"><button class="countdown-bump-down"></button><button class="countdown-bump-up">+</button></div>
<code class="countdown-time"><span class="countdown-digits minutes">05</span><span class="countdown-digits colon">:</span><span class="countdown-digits seconds">00</span></code>
</div>
Expand Down Expand Up @@ -1848,7 +1848,7 @@ <h2></h2>
</div>
<div class="cell">
<div class="cell-output-display">
<div class="countdown" id="timer_e76491e9" data-update-every="1" tabindex="0" style="right:0;bottom:0;font-size:2em;">
<div class="countdown" id="timer_be695468" data-update-every="1" tabindex="0" style="right:0;bottom:0;font-size:2em;">
<div class="countdown-controls"><button class="countdown-bump-down"></button><button class="countdown-bump-up">+</button></div>
<code class="countdown-time"><span class="countdown-digits minutes">05</span><span class="countdown-digits colon">:</span><span class="countdown-digits seconds">00</span></code>
</div>
Expand Down Expand Up @@ -2456,7 +2456,7 @@ <h2></h2>
</div>
<div class="cell">
<div class="cell-output-display">
<div class="countdown" id="timer_1d8fef50" data-update-every="1" tabindex="0" style="right:0;bottom:0;font-size:2em;">
<div class="countdown" id="timer_768937fd" data-update-every="1" tabindex="0" style="right:0;bottom:0;font-size:2em;">
<div class="countdown-controls"><button class="countdown-bump-down"></button><button class="countdown-bump-up">+</button></div>
<code class="countdown-time"><span class="countdown-digits minutes">05</span><span class="countdown-digits colon">:</span><span class="countdown-digits seconds">00</span></code>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/course-materials/slides/part2.2A.html
Original file line number Diff line number Diff line change
Expand Up @@ -1531,7 +1531,7 @@ <h2></h2>
</div>
<div class="cell">
<div class="cell-output-display">
<div class="countdown" id="timer_acc77fd1" data-update-every="1" tabindex="0" style="right:0;bottom:0;font-size:2em;">
<div class="countdown" id="timer_d951a3bb" data-update-every="1" tabindex="0" style="right:0;bottom:0;font-size:2em;">
<div class="countdown-controls"><button class="countdown-bump-down"></button><button class="countdown-bump-up">+</button></div>
<code class="countdown-time"><span class="countdown-digits minutes">05</span><span class="countdown-digits colon">:</span><span class="countdown-digits seconds">00</span></code>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/course-materials/slides/part2.2B.html
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ <h2></h2>
</div>
<div class="cell">
<div class="cell-output-display">
<div class="countdown" id="timer_25e6c505" data-update-every="1" tabindex="0" style="right:0;bottom:0;font-size:2em;">
<div class="countdown" id="timer_9c22fc50" data-update-every="1" tabindex="0" style="right:0;bottom:0;font-size:2em;">
<div class="countdown-controls"><button class="countdown-bump-down"></button><button class="countdown-bump-up">+</button></div>
<code class="countdown-time"><span class="countdown-digits minutes">05</span><span class="countdown-digits colon">:</span><span class="countdown-digits seconds">00</span></code>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/course-materials/slides/part2.2C.html
Original file line number Diff line number Diff line change
Expand Up @@ -996,7 +996,7 @@ <h2></h2>
</div>
<div class="cell">
<div class="cell-output-display">
<div class="countdown" id="timer_8e159efc" data-update-every="1" tabindex="0" style="right:0;bottom:0;font-size:2em;">
<div class="countdown" id="timer_da3951ed" data-update-every="1" tabindex="0" style="right:0;bottom:0;font-size:2em;">
<div class="countdown-controls"><button class="countdown-bump-down"></button><button class="countdown-bump-up">+</button></div>
<code class="countdown-time"><span class="countdown-digits minutes">05</span><span class="countdown-digits colon">:</span><span class="countdown-digits seconds">00</span></code>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -895,7 +895,7 @@ <h2></h2>
</div>
<div class="cell">
<div class="cell-output-display">
<div class="countdown" id="timer_65b4d1b9" data-update-every="1" tabindex="0" style="right:0;bottom:0;font-size:2em;">
<div class="countdown" id="timer_14ccd395" data-update-every="1" tabindex="0" style="right:0;bottom:0;font-size:2em;">
<div class="countdown-controls"><button class="countdown-bump-down"></button><button class="countdown-bump-up">+</button></div>
<code class="countdown-time"><span class="countdown-digits minutes">05</span><span class="countdown-digits colon">:</span><span class="countdown-digits seconds">00</span></code>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/course-materials/slides/part2.3C.html
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ <h2></h2>
</div>
<div class="cell">
<div class="cell-output-display">
<div class="countdown" id="timer_25337476" data-update-every="1" tabindex="0" style="right:0;bottom:0;font-size:2em;">
<div class="countdown" id="timer_07bb708d" data-update-every="1" tabindex="0" style="right:0;bottom:0;font-size:2em;">
<div class="countdown-controls"><button class="countdown-bump-down"></button><button class="countdown-bump-up">+</button></div>
<code class="countdown-time"><span class="countdown-digits minutes">05</span><span class="countdown-digits colon">:</span><span class="countdown-digits seconds">00</span></code>
</div>
Expand Down
10 changes: 5 additions & 5 deletions docs/course-materials/slides/part3-shiny-dashboard-slides.html
Original file line number Diff line number Diff line change
Expand Up @@ -824,8 +824,8 @@ <h2></h2>
</p>
<div class="cell" data-layout-align="center">
<div class="cell-output-display">
<div class="leaflet html-widget html-fill-item-overflow-hidden html-fill-item" id="htmlwidget-d019b7710025802a37e0" style="width:60%;height:480px;"></div>
<script type="application/json" data-for="htmlwidget-d019b7710025802a37e0">{"x":{"options":{"crs":{"crsClass":"L.CRS.EPSG3857","code":null,"proj4def":null,"projectedBounds":null,"options":{}}},"calls":[{"method":"addProviderTiles","args":["Esri.WorldImagery",null,null,{"errorTileUrl":"","noWrap":false,"detectRetina":false}]},{"method":"addMiniMap","args":[null,null,"bottomright",150,150,19,19,-5,false,false,false,true,false,false,{"color":"#ff7800","weight":1,"clickable":false},{"color":"#000000","weight":1,"clickable":false,"opacity":0,"fillOpacity":0},{"hideText":"Hide MiniMap","showText":"Show MiniMap"},[]]},{"method":"addMarkers","args":[[70.032,70.236,70.17,70.233,70.27,70.267,70.032,70.09699999999999,70.247,70.113,70.246],[-152.194,-152.186,-152.785,-151.339,-151.355,-151.387,-152.194,-152.074,-151.478,-152.077,-152.141],null,null,null,{"interactive":true,"draggable":false,"keyboard":true,"title":"","alt":"","zIndexOffset":0,"opacity":1,"riseOnHover":false,"riseOffset":250},["Site Name: HarryPotter <br> Elevation: 12.3 meters (above SL) <br> Avg Depth: 2.3 meters <br> Avg Lake Bed Temperature: 5.6 deg Celsius","Site Name: Hipbone <br> Elevation: 21 meters (above SL) <br> Avg Depth: 2 meters <br> Avg Lake Bed Temperature: 10.7 deg Celsius","Site Name: Iceshove <br> Elevation: 20.3 meters (above SL) <br> Avg Depth: 1.8 meters <br> Avg Lake Bed Temperature: 10.9 deg Celsius","Site Name: L9817 <br> Elevation: 16.1 meters (above SL) <br> Avg Depth: 2.6 meters <br> Avg Lake Bed Temperature: 5.9 deg Celsius","Site Name: L9819 <br> Elevation: 8.2 meters (above SL) <br> Avg Depth: 1.7 meters <br> Avg Lake Bed Temperature: 5.6 deg Celsius","Site Name: L9820 <br> Elevation: 9.5 meters (above SL) <br> Avg Depth: 1.1 meters <br> Avg Lake Bed Temperature: 5.5 deg Celsius","Site Name: LittleAlaska <br> Elevation: 28.9 meters (above SL) <br> Avg Depth: 1.2 meters <br> Avg Lake Bed Temperature: 5.2 deg Celsius","Site Name: LowerSnowman <br> Elevation: 27.4 meters (above SL) <br> Avg Depth: 1.2 meters <br> Avg Lake Bed Temperature: 7.2 deg Celsius","Site Name: M9925 <br> Elevation: 14.7 meters (above SL) <br> Avg Depth: 0.9 meters <br> Avg Lake Bed Temperature: 7 deg Celsius","Site Name: MiddleSnowman <br> Elevation: 26.3 meters (above SL) <br> Avg Depth: 1.1 meters <br> Avg Lake Bed Temperature: 6.4 deg Celsius","Site Name: Serenity <br> Elevation: 12 meters (above SL) <br> Avg Depth: 3.9 meters <br> Avg Lake Bed Temperature: 10.7 deg Celsius"],null,null,null,null,{"interactive":false,"permanent":false,"direction":"auto","opacity":1,"offset":[0,0],"textsize":"10px","textOnly":false,"className":"","sticky":true},null]}],"setView":[[70.249234,-152.048442],6,[]],"limits":{"lat":[70.032,70.27],"lng":[-152.785,-151.339]}},"evals":[],"jsHooks":[]}</script>
<div class="leaflet html-widget html-fill-item-overflow-hidden html-fill-item" id="htmlwidget-b1f61d99fa34f8a294a3" style="width:60%;height:480px;"></div>
<script type="application/json" data-for="htmlwidget-b1f61d99fa34f8a294a3">{"x":{"options":{"crs":{"crsClass":"L.CRS.EPSG3857","code":null,"proj4def":null,"projectedBounds":null,"options":{}}},"calls":[{"method":"addProviderTiles","args":["Esri.WorldImagery",null,null,{"errorTileUrl":"","noWrap":false,"detectRetina":false}]},{"method":"addMiniMap","args":[null,null,"bottomright",150,150,19,19,-5,false,false,false,true,false,false,{"color":"#ff7800","weight":1,"clickable":false},{"color":"#000000","weight":1,"clickable":false,"opacity":0,"fillOpacity":0},{"hideText":"Hide MiniMap","showText":"Show MiniMap"},[]]},{"method":"addMarkers","args":[[70.032,70.236,70.17,70.233,70.27,70.267,70.032,70.09699999999999,70.247,70.113,70.246],[-152.194,-152.186,-152.785,-151.339,-151.355,-151.387,-152.194,-152.074,-151.478,-152.077,-152.141],null,null,null,{"interactive":true,"draggable":false,"keyboard":true,"title":"","alt":"","zIndexOffset":0,"opacity":1,"riseOnHover":false,"riseOffset":250},["Site Name: HarryPotter <br> Elevation: 12.3 meters (above SL) <br> Avg Depth: 2.3 meters <br> Avg Lake Bed Temperature: 5.6 deg Celsius","Site Name: Hipbone <br> Elevation: 21 meters (above SL) <br> Avg Depth: 2 meters <br> Avg Lake Bed Temperature: 10.7 deg Celsius","Site Name: Iceshove <br> Elevation: 20.3 meters (above SL) <br> Avg Depth: 1.8 meters <br> Avg Lake Bed Temperature: 10.9 deg Celsius","Site Name: L9817 <br> Elevation: 16.1 meters (above SL) <br> Avg Depth: 2.6 meters <br> Avg Lake Bed Temperature: 5.9 deg Celsius","Site Name: L9819 <br> Elevation: 8.2 meters (above SL) <br> Avg Depth: 1.7 meters <br> Avg Lake Bed Temperature: 5.6 deg Celsius","Site Name: L9820 <br> Elevation: 9.5 meters (above SL) <br> Avg Depth: 1.1 meters <br> Avg Lake Bed Temperature: 5.5 deg Celsius","Site Name: LittleAlaska <br> Elevation: 28.9 meters (above SL) <br> Avg Depth: 1.2 meters <br> Avg Lake Bed Temperature: 5.2 deg Celsius","Site Name: LowerSnowman <br> Elevation: 27.4 meters (above SL) <br> Avg Depth: 1.2 meters <br> Avg Lake Bed Temperature: 7.2 deg Celsius","Site Name: M9925 <br> Elevation: 14.7 meters (above SL) <br> Avg Depth: 0.9 meters <br> Avg Lake Bed Temperature: 7 deg Celsius","Site Name: MiddleSnowman <br> Elevation: 26.3 meters (above SL) <br> Avg Depth: 1.1 meters <br> Avg Lake Bed Temperature: 6.4 deg Celsius","Site Name: Serenity <br> Elevation: 12 meters (above SL) <br> Avg Depth: 3.9 meters <br> Avg Lake Bed Temperature: 10.7 deg Celsius"],null,null,null,null,{"interactive":false,"permanent":false,"direction":"auto","opacity":1,"offset":[0,0],"textsize":"10px","textOnly":false,"className":"","sticky":true},null]}],"setView":[[70.249234,-152.048442],6,[]],"limits":{"lat":[70.032,70.27],"lng":[-152.785,-151.339]}},"evals":[],"jsHooks":[]}</script>
</div>
</div>
</div>
Expand Down Expand Up @@ -883,8 +883,8 @@ <h2></h2>
</p>
<div class="cell" data-layout-align="center">
<div class="cell-output-display">
<div class="leaflet html-widget html-fill-item-overflow-hidden html-fill-item" id="htmlwidget-f6e578664b870c625a7a" style="width:60%;height:480px;"></div>
<script type="application/json" data-for="htmlwidget-f6e578664b870c625a7a">{"x":{"options":{"crs":{"crsClass":"L.CRS.EPSG3857","code":null,"proj4def":null,"projectedBounds":null,"options":{}}},"calls":[{"method":"addProviderTiles","args":["Esri.WorldImagery",null,null,{"errorTileUrl":"","noWrap":false,"detectRetina":false}]},{"method":"addMiniMap","args":[null,null,"bottomright",150,150,19,19,-5,false,false,false,true,false,false,{"color":"#ff7800","weight":1,"clickable":false},{"color":"#000000","weight":1,"clickable":false,"opacity":0,"fillOpacity":0},{"hideText":"Hide MiniMap","showText":"Show MiniMap"},[]]},{"method":"addMarkers","args":[[70.032,70.233],[-152.194,-151.339],null,null,null,{"interactive":true,"draggable":false,"keyboard":true,"title":"","alt":"","zIndexOffset":0,"opacity":1,"riseOnHover":false,"riseOffset":250},["Site Name: HarryPotter <br> Elevation: 12.3 meters (above SL) <br> Avg Depth: 2.3 meters <br> Avg Lake Bed Temperature: 5.6 deg Celsius","Site Name: L9817 <br> Elevation: 16.1 meters (above SL) <br> Avg Depth: 2.6 meters <br> Avg Lake Bed Temperature: 5.9 deg Celsius"],null,null,null,null,{"interactive":false,"permanent":false,"direction":"auto","opacity":1,"offset":[0,0],"textsize":"10px","textOnly":false,"className":"","sticky":true},null]}],"setView":[[70.249234,-152.048442],6,[]],"limits":{"lat":[70.032,70.233],"lng":[-152.194,-151.339]}},"evals":[],"jsHooks":[]}</script>
<div class="leaflet html-widget html-fill-item-overflow-hidden html-fill-item" id="htmlwidget-11b50f74a7afa2f20a99" style="width:60%;height:480px;"></div>
<script type="application/json" data-for="htmlwidget-11b50f74a7afa2f20a99">{"x":{"options":{"crs":{"crsClass":"L.CRS.EPSG3857","code":null,"proj4def":null,"projectedBounds":null,"options":{}}},"calls":[{"method":"addProviderTiles","args":["Esri.WorldImagery",null,null,{"errorTileUrl":"","noWrap":false,"detectRetina":false}]},{"method":"addMiniMap","args":[null,null,"bottomright",150,150,19,19,-5,false,false,false,true,false,false,{"color":"#ff7800","weight":1,"clickable":false},{"color":"#000000","weight":1,"clickable":false,"opacity":0,"fillOpacity":0},{"hideText":"Hide MiniMap","showText":"Show MiniMap"},[]]},{"method":"addMarkers","args":[[70.032,70.233],[-152.194,-151.339],null,null,null,{"interactive":true,"draggable":false,"keyboard":true,"title":"","alt":"","zIndexOffset":0,"opacity":1,"riseOnHover":false,"riseOffset":250},["Site Name: HarryPotter <br> Elevation: 12.3 meters (above SL) <br> Avg Depth: 2.3 meters <br> Avg Lake Bed Temperature: 5.6 deg Celsius","Site Name: L9817 <br> Elevation: 16.1 meters (above SL) <br> Avg Depth: 2.6 meters <br> Avg Lake Bed Temperature: 5.9 deg Celsius"],null,null,null,null,{"interactive":false,"permanent":false,"direction":"auto","opacity":1,"offset":[0,0],"textsize":"10px","textOnly":false,"className":"","sticky":true},null]}],"setView":[[70.249234,-152.048442],6,[]],"limits":{"lat":[70.032,70.233],"lng":[-152.194,-151.339]}},"evals":[],"jsHooks":[]}</script>
</div>
</div>
</div>
Expand Down Expand Up @@ -2445,7 +2445,7 @@ <h2></h2>
</div>
<div class="cell">
<div class="cell-output-display">
<div class="countdown" id="timer_a5b80e0d" data-update-every="1" tabindex="0" style="right:0;bottom:0;font-size:2em;">
<div class="countdown" id="timer_ff70bb3a" data-update-every="1" tabindex="0" style="right:0;bottom:0;font-size:2em;">
<div class="countdown-controls"><button class="countdown-bump-down"></button><button class="countdown-bump-up">+</button></div>
<code class="countdown-time"><span class="countdown-digits minutes">05</span><span class="countdown-digits colon">:</span><span class="countdown-digits seconds">00</span></code>
</div>
Expand Down
Loading

0 comments on commit ff4fc38

Please sign in to comment.