You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue is that the method for communicating "skip" from tutorial-format.js to the tutor code uses the data-label attribute of the exercise. If there is no exercise, the label is "undefined", which works for the first exercise-less section, but fails on the second. Hmmm ....
Sample code:
---
title: "Two exercise-less sections"
output:
tutor::tutorial:
progressive: true
allow_skip: true
runtime: shiny_prerendered
---
```{r setup, include=FALSE}
library(tutor)
```
## Welcome
### Section 1
This section can be skipped.
### Section 2
But not this one
### Section 3
Sad! Write the R code required to add two plus two:
```{r two-plus-two, exercise=TRUE}
```
The text was updated successfully, but these errors were encountered:
robbyshaver
changed the title
The second section without an exercise cannot be skipped
The second section in a document without an exercise cannot be skipped
Mar 7, 2017
The issue is that the method for communicating "skip" from tutorial-format.js to the tutor code uses the data-label attribute of the exercise. If there is no exercise, the label is "undefined", which works for the first exercise-less section, but fails on the second. Hmmm ....
Sample code:
The text was updated successfully, but these errors were encountered: