Skip to content

Commit b5907fb

Browse files
minor bug correction
1 parent 23981b4 commit b5907fb

File tree

2 files changed

+25
-11
lines changed

2 files changed

+25
-11
lines changed

inst/tutorials/06b_recombinaison/recombinaison.Rmd

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ output:
66
learnr::tutorial
77
tutorial:
88
id: "sdd1.06b"
9-
version: 1.0.0
9+
version: 1.1.0
1010
runtime: shiny_prerendered
1111
---
1212

@@ -240,7 +240,7 @@ bacteria <- tibble(
240240
)
241241
```
242242

243-
```{r separate, exercise = TRUE, exercise.setup = "long-prep"}
243+
```{r separate, exercise = TRUE, exercise.setup = "separate-prep"}
244244
head(bacteria)
245245
summary(bacteria)
246246
```
@@ -315,7 +315,7 @@ weight <- tibble(
315315
)
316316
```
317317

318-
```{r join1, exercise = TRUE, exercise.setup = "join-prep"}
318+
```{r join1, exercise = TRUE, exercise.setup = "join_prep"}
319319
head(physico)
320320
summary(physico)
321321
@@ -345,7 +345,7 @@ full_join(physico, weight, by = "aqua") %>.%
345345
knitr::kable(.)
346346
```
347347

348-
```{r join2, exercise = TRUE, exercise.setup = "join-prep"}
348+
```{r join2, exercise = TRUE, exercise.setup = "join_prep"}
349349
head(physico)
350350
summary(physico)
351351
@@ -375,7 +375,7 @@ inner_join(physico, weight, by = "aqua") %>.%
375375
knitr::kable(.)
376376
```
377377

378-
```{r join3, exercise = TRUE, exercise.setup = "join-prep"}
378+
```{r join3, exercise = TRUE, exercise.setup = "join_prep"}
379379
head(physico)
380380
summary(physico)
381381

inst/tutorials/06b_recombinaison/recombinaison.html

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ <h2>Diviser des colonnes dans un tableau</h2>
459459
<div class="tutorial-exercise" data-label="separate" data-caption="Code R" data-completion="1" data-diagnostics="1" data-startover="1" data-lines="0">
460460
<pre class="text"><code>head(bacteria)
461461
summary(bacteria)</code></pre>
462-
<script type="application/json" data-opts-chunk="1">{"fig.width":6.5,"fig.height":4,"fig.retina":2,"fig.align":"default","fig.keep":"high","fig.show":"asis","out.width":624,"warning":true,"error":false,"message":true,"exercise.df_print":"paged","exercise.timelimit":60,"exercise.setup":"long-prep","exercise.checker":["function (label, user_code, solution_code, check_code, envir_result, "," evaluate_result, ...) ","{"," list(message = \"Your answer is recorded!\", correct = TRUE, "," type = \"info\", location = \"append\")","}"]}</script>
462+
<script type="application/json" data-opts-chunk="1">{"fig.width":6.5,"fig.height":4,"fig.retina":2,"fig.align":"default","fig.keep":"high","fig.show":"asis","out.width":624,"warning":true,"error":false,"message":true,"exercise.df_print":"paged","exercise.timelimit":60,"exercise.setup":"separate-prep","exercise.checker":["function (label, user_code, solution_code, check_code, envir_result, "," evaluate_result, ...) ","{"," list(message = \"Your answer is recorded!\", correct = TRUE, "," type = \"info\", location = \"append\")","}"]}</script>
463463
</div>
464464
<div class="tutorial-exercise-support" data-label="separate-hint-1" data-caption="Code R" data-completion="1" data-diagnostics="1" data-startover="1" data-lines="0">
465465
<pre class="text"><code># snippet correspondant
@@ -590,13 +590,27 @@ <h2>Combinaison de deux tableaux</h2>
590590
</tr>
591591
</tbody>
592592
</table>
593+
<div class="tutorial-exercise-support" data-label="join_prep" data-caption="Code R" data-completion="1" data-diagnostics="1" data-startover="1" data-lines="0">
594+
<pre class="text"><code>set.seed(42)
595+
596+
physico &lt;- tibble(
597+
aqua = letters[1:5],
598+
temp = rnorm(n = 5,mean = 25, sd = 2),
599+
salinity = rnorm(n = 5, mean = 35, sd = 2)
600+
)
601+
602+
weight &lt;- tibble(
603+
aqua = letters[2:6],
604+
weight = rnorm(n = 5, mean = 1.5, sd = 0.5)
605+
)</code></pre>
606+
</div>
593607
<div class="tutorial-exercise" data-label="join1" data-caption="Code R" data-completion="1" data-diagnostics="1" data-startover="1" data-lines="0">
594608
<pre class="text"><code>head(physico)
595609
summary(physico)
596610

597611
head(weight)
598612
summary(weight)</code></pre>
599-
<script type="application/json" data-opts-chunk="1">{"fig.width":6.5,"fig.height":4,"fig.retina":2,"fig.align":"default","fig.keep":"high","fig.show":"asis","out.width":624,"warning":true,"error":false,"message":true,"exercise.df_print":"paged","exercise.timelimit":60,"exercise.setup":"join-prep","exercise.checker":["function (label, user_code, solution_code, check_code, envir_result, "," evaluate_result, ...) ","{"," list(message = \"Your answer is recorded!\", correct = TRUE, "," type = \"info\", location = \"append\")","}"]}</script>
613+
<script type="application/json" data-opts-chunk="1">{"fig.width":6.5,"fig.height":4,"fig.retina":2,"fig.align":"default","fig.keep":"high","fig.show":"asis","out.width":624,"warning":true,"error":false,"message":true,"exercise.df_print":"paged","exercise.timelimit":60,"exercise.setup":"join_prep","exercise.checker":["function (label, user_code, solution_code, check_code, envir_result, "," evaluate_result, ...) ","{"," list(message = \"Your answer is recorded!\", correct = TRUE, "," type = \"info\", location = \"append\")","}"]}</script>
600614
</div>
601615
<div class="tutorial-exercise-support" data-label="join1-hint-1" data-caption="Code R" data-completion="1" data-diagnostics="1" data-startover="1" data-lines="0">
602616
<pre class="text"><code># snippet correspondant
@@ -667,7 +681,7 @@ <h2>Combinaison de deux tableaux</h2>
667681

668682
head(weight)
669683
summary(weight)</code></pre>
670-
<script type="application/json" data-opts-chunk="1">{"fig.width":6.5,"fig.height":4,"fig.retina":2,"fig.align":"default","fig.keep":"high","fig.show":"asis","out.width":624,"warning":true,"error":false,"message":true,"exercise.df_print":"paged","exercise.timelimit":60,"exercise.setup":"join-prep","exercise.checker":["function (label, user_code, solution_code, check_code, envir_result, "," evaluate_result, ...) ","{"," list(message = \"Your answer is recorded!\", correct = TRUE, "," type = \"info\", location = \"append\")","}"]}</script>
684+
<script type="application/json" data-opts-chunk="1">{"fig.width":6.5,"fig.height":4,"fig.retina":2,"fig.align":"default","fig.keep":"high","fig.show":"asis","out.width":624,"warning":true,"error":false,"message":true,"exercise.df_print":"paged","exercise.timelimit":60,"exercise.setup":"join_prep","exercise.checker":["function (label, user_code, solution_code, check_code, envir_result, "," evaluate_result, ...) ","{"," list(message = \"Your answer is recorded!\", correct = TRUE, "," type = \"info\", location = \"append\")","}"]}</script>
671685
</div>
672686
<div class="tutorial-exercise-support" data-label="join2-hint-1" data-caption="Code R" data-completion="1" data-diagnostics="1" data-startover="1" data-lines="0">
673687
<pre class="text"><code># snippet correspondant
@@ -726,7 +740,7 @@ <h2>Combinaison de deux tableaux</h2>
726740

727741
head(weight)
728742
summary(weight)</code></pre>
729-
<script type="application/json" data-opts-chunk="1">{"fig.width":6.5,"fig.height":4,"fig.retina":2,"fig.align":"default","fig.keep":"high","fig.show":"asis","out.width":624,"warning":true,"error":false,"message":true,"exercise.df_print":"paged","exercise.timelimit":60,"exercise.setup":"join-prep","exercise.checker":["function (label, user_code, solution_code, check_code, envir_result, "," evaluate_result, ...) ","{"," list(message = \"Your answer is recorded!\", correct = TRUE, "," type = \"info\", location = \"append\")","}"]}</script>
743+
<script type="application/json" data-opts-chunk="1">{"fig.width":6.5,"fig.height":4,"fig.retina":2,"fig.align":"default","fig.keep":"high","fig.show":"asis","out.width":624,"warning":true,"error":false,"message":true,"exercise.df_print":"paged","exercise.timelimit":60,"exercise.setup":"join_prep","exercise.checker":["function (label, user_code, solution_code, check_code, envir_result, "," evaluate_result, ...) ","{"," list(message = \"Your answer is recorded!\", correct = TRUE, "," type = \"info\", location = \"append\")","}"]}</script>
730744
</div>
731745
<div class="tutorial-exercise-support" data-label="join3-hint-1" data-caption="Code R" data-completion="1" data-diagnostics="1" data-startover="1" data-lines="0">
732746
<pre class="text"><code># snippet correspondant
@@ -770,7 +784,7 @@ <h2>Conclusion</h2>
770784
</script>
771785

772786
<script type="application/shiny-prerendered" data-context="server">
773-
learnr:::register_http_handlers(session, metadata = list("sdd1.06b", "1.0.0"))
787+
learnr:::register_http_handlers(session, metadata = list("sdd1.06b", "1.1.0"))
774788
</script>
775789

776790
<script type="application/shiny-prerendered" data-context="server">
@@ -835,7 +849,7 @@ <h2>Conclusion</h2>
835849
<!--/html_preserve-->
836850
<!--html_preserve-->
837851
<script type="application/shiny-prerendered" data-context="execution_dependencies">
838-
{"type":"list","attributes":{"names":{"type":"character","attributes":{},"value":["packages"]}},"value":[{"type":"list","attributes":{"names":{"type":"character","attributes":{},"value":["packages","version"]},"class":{"type":"character","attributes":{},"value":["data.frame"]},"row.names":{"type":"integer","attributes":{},"value":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118]}},"value":[{"type":"character","attributes":{},"value":["acepack","assertthat","backports","base","base64enc","BioDataScience","broom","cellranger","chart","checkmate","cli","cluster","codetools","colorspace","compiler","cowplot","crayon","data.io","data.table","datasets","digest","dplyr","ellipse","evaluate","farver","flow","forcats","foreign","Formula","generics","gganimate","ggplot2","ggplotify","ggpubr","glue","graphics","grDevices","grid","gridExtra","gridGraphics","gtable","haven","highr","Hmisc","hms","htmlTable","htmltools","htmlwidgets","httpuv","httr","igraph","inline","jsonlite","knitr","later","lattice","latticeExtra","lazyeval","learnr","lubridate","magick","magrittr","markdown","MASS","Matrix","methods","mime","modelr","mongolite","munsell","nlme","nnet","pillar","pkgconfig","plyr","prettyunits","progress","promises","proto","pryr","purrr","R6","RColorBrewer","Rcpp","readr","readxl","remotes","rlang","rmarkdown","rpart","rprojroot","rstudioapi","rvcheck","rvest","scales","SciViews","shiny","splines","stats","stringi","stringr","survival","svMisc","tibble","tidyr","tidyselect","tidyverse","tools","tsibble","tweenr","utils","viridis","viridisLite","withr","xfun","xml2","xtable","yaml"]},{"type":"character","attributes":{},"value":["1.4.1","0.2.1","1.1.3","3.5.3","0.1-3","2019.3.0","0.5.2","1.1.0","1.3.0","1.9.1","1.1.0","2.0.8","0.2-16","1.4-1","3.5.3","0.9.4","1.3.4","1.2.2","1.12.2","3.5.3","0.6.18","0.8.0.1","0.4.1","0.13","1.1.0","1.0.0","0.4.0","0.8-71","1.2-3","0.0.2","1.0.3","3.1.1","0.0.3","0.2","1.3.1","3.5.3","3.5.3","3.5.3","2.3","0.3-0","0.3.0","2.1.0","0.8","4.2-0","0.4.2","1.13.1","0.3.6","1.3","1.5.1","1.4.0","1.2.4","0.3.15","1.6","1.22","0.8.0","0.20-38","0.6-28","0.2.2","0.9.2.1","1.7.4","2.0","1.5","0.9","7.3-51.3","1.2-17","3.5.3","0.6","0.1.4","2.0.1","0.5.0","3.1-138","7.3-12","1.3.1","2.0.2","1.8.4","1.0.2","1.2.0","1.0.1","1.0.0","0.1.4","0.3.2","2.4.0","1.1-2","1.0.1","1.3.1","1.3.1","2.0.2","0.3.4","1.12","4.1-13","1.3-2","0.10","0.1.3","0.3.2","1.0.0","1.1.0","1.3.0","3.5.3","3.5.3","1.4.3","1.4.0","2.44-1.1","1.1.0","2.1.1","0.8.3","0.2.5","1.2.1","3.5.3","0.7.0","1.0.1","3.5.3","0.5.1","0.3.0","2.1.2","0.6","1.2.0","1.8-3","2.2.0"]}]}]}
852+
{"type":"list","attributes":{"names":{"type":"character","attributes":{},"value":["packages"]}},"value":[{"type":"list","attributes":{"names":{"type":"character","attributes":{},"value":["packages","version"]},"class":{"type":"character","attributes":{},"value":["data.frame"]},"row.names":{"type":"integer","attributes":{},"value":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118]}},"value":[{"type":"character","attributes":{},"value":["acepack","assertthat","backports","base","base64enc","BioDataScience","broom","cellranger","chart","checkmate","cli","cluster","codetools","colorspace","compiler","cowplot","crayon","data.io","data.table","datasets","digest","dplyr","ellipse","evaluate","farver","flow","forcats","foreign","Formula","generics","gganimate","ggplot2","ggplotify","ggpubr","glue","graphics","grDevices","grid","gridExtra","gridGraphics","gtable","haven","highr","Hmisc","hms","htmlTable","htmltools","htmlwidgets","httpuv","httr","igraph","inline","jsonlite","knitr","later","lattice","latticeExtra","lazyeval","learnr","lubridate","magick","magrittr","markdown","MASS","Matrix","methods","mime","modelr","mongolite","munsell","nlme","nnet","pillar","pkgconfig","plyr","prettyunits","progress","promises","proto","pryr","purrr","R6","RColorBrewer","Rcpp","readr","readxl","remotes","rlang","rmarkdown","rpart","rprojroot","rstudioapi","rvcheck","rvest","scales","SciViews","shiny","splines","stats","stringi","stringr","survival","svMisc","tibble","tidyr","tidyselect","tidyverse","tools","tsibble","tweenr","utils","viridis","viridisLite","withr","xfun","xml2","xtable","yaml"]},{"type":"character","attributes":{},"value":["1.4.1","0.2.1","1.1.3","3.5.3","0.1-3","2019.4.0","0.5.2","1.1.0","1.3.0","1.9.1","1.1.0","2.0.8","0.2-16","1.4-1","3.5.3","0.9.4","1.3.4","1.2.2","1.12.2","3.5.3","0.6.18","0.8.0.1","0.4.1","0.13","1.1.0","1.0.0","0.4.0","0.8-71","1.2-3","0.0.2","1.0.3","3.1.1","0.0.3","0.2","1.3.1","3.5.3","3.5.3","3.5.3","2.3","0.3-0","0.3.0","2.1.0","0.8","4.2-0","0.4.2","1.13.1","0.3.6","1.3","1.5.1","1.4.0","1.2.4","0.3.15","1.6","1.22","0.8.0","0.20-38","0.6-28","0.2.2","0.9.2.1","1.7.4","2.0","1.5","0.9","7.3-51.3","1.2-17","3.5.3","0.6","0.1.4","2.0.1","0.5.0","3.1-138","7.3-12","1.3.1","2.0.2","1.8.4","1.0.2","1.2.0","1.0.1","1.0.0","0.1.4","0.3.2","2.4.0","1.1-2","1.0.1","1.3.1","1.3.1","2.0.2","0.3.4","1.12","4.1-13","1.3-2","0.10","0.1.3","0.3.2","1.0.0","1.1.0","1.3.0","3.5.3","3.5.3","1.4.3","1.4.0","2.44-1.1","1.1.0","2.1.1","0.8.3","0.2.5","1.2.1","3.5.3","0.7.0","1.0.1","3.5.3","0.5.1","0.3.0","2.1.2","0.6","1.2.0","1.8-3","2.2.0"]}]}]}
839853
</script>
840854
<!--/html_preserve-->
841855
</div>

0 commit comments

Comments
 (0)