learnr
learnr copied to clipboard
slidy & ioslides compatibility issues
Hello, thanks for the package!
The formats vignette mentions that learnr files can be used as slidy
or ioslodes
presentations which would be great! But there are a few issues I came across with the following reprex:
---
output: slidy_presentation
runtime: shiny_prerendered
title: "ioslides demo"
---
```{r setup, include=FALSE}
library(learnr)
tutorial_options(exercise.eval = FALSE)
```
## modify
Modify the following code to limit the number of rows printed to 5:
```{r print, exercise=TRUE}
mtcars
```
```{r print-hint}
head(mtcars,5)
```
Issues
- both disregard
tutorial_options(exercise.eval = FALSE)
and render the code chunk anyway - the hint works with
slidy
but isn't visible withioslides
- You can only ever print the current slide via the browser print function with
slidy
(it works great withioslides
)- I have tested this on multiple PCs with both chrome and firefox but I have not found a way to print all slides at once with
slidy
- I have tested this on multiple PCs with both chrome and firefox but I have not found a way to print all slides at once with
These might be minor things but break our use case: lecture presentations with embedded exercises/code chunks for demonstration and additional exercises for the students to solve on their own (but also part of the slides). Slidy would work for this if not for the broken printing feature as most of our students do print lectures on paper to add notes (or use a tablet+pen with pdf) .
Session Info
─ Session info ────────────────────────────────────────────────────────
setting value
version R version 4.2.0 (2022-04-22 ucrt)
os Windows 10 x64 (build 19044)
system x86_64, mingw32
ui RStudio
language (EN)
collate English_United States.utf8
ctype English_United States.utf8
tz Europe/Berlin
date 2022-07-05
rstudio 2022.02.2+485 Prairie Trillium (desktop)
pandoc 2.18 @ C:/PROGRA~3/CHOCOL~1/bin/ (via rmarkdown)
─ Packages ────────────────────────────────────────────────────────────
package * version date (UTC) lib source
cli 3.3.0 2022-04-25 [1] CRAN (R 4.2.0)
digest 0.6.29 2021-12-01 [1] CRAN (R 4.2.0)
evaluate 0.15 2022-02-18 [1] CRAN (R 4.2.0)
fastmap 1.1.0 2021-01-25 [1] CRAN (R 4.2.0)
htmltools 0.5.2 2021-08-25 [1] CRAN (R 4.2.0)
knitr 1.39 2022-04-26 [1] CRAN (R 4.2.0)
rlang 1.0.2 2022-03-04 [1] CRAN (R 4.2.0)
rmarkdown 2.14 2022-04-25 [1] CRAN (R 4.2.0)
sessioninfo 1.2.2 2021-12-06 [1] CRAN (R 4.2.0)
xfun 0.31 2022-05-10 [1] CRAN (R 4.2.0)
yaml 2.3.5 2022-02-21 [1] CRAN (R 4.2.0)
[1] C:/Users/jacob/AppData/Local/R/win-library/4.2
[2] C:/Program Files/R/R-4.2.0/library