The following learnR tutorial generates an error when it is "run", and the code box's run button is pressed. The notebook works fine if I omit the DT:datable
function but I need to use this in my true implementation in order to get access to the escape parameter.
---
output:
learnr::tutorial
runtime: shiny_prerendered
---
``{r setup, include=FALSE}
library(shiny)
library(learnr)
``
``{r tst1, exercise = TRUE, exercise.eval = TRUE}
data(iris, package = "datasets")
DT::datatable(iris)
``
For formatting reasons I have only shown two backticks for the code blocks above instead of the normal three.