-
Notifications
You must be signed in to change notification settings - Fork 241
Description
Issue
Current behavior of learnr exercises with YAML progressive: true and allow_skip: false doesn't condition the access to a next section based on the code submitted.
When clicking Continue / Next topic before any interaction with the exercise, the following message appears:
You must complete the exercise in this section before continuing.
This is a bit misleading as clicking on the Run code button on any code or even on an empty console unlocks access to the next section.
I understand conditioning button behavior on code run in exercises chunks might be tricky, but it should at least check that users didn't just click Run code on an empty console.
Steps to reproduce
Initiate a basic learnr tutorial (with Rstudio: File > New file > R Markdown... > from Template > interactive tutorial).
Replace YAML:
---
output: learnr::tutorial
---
With
---
output:
learnr::tutorial:
progressive: true
allow_skip: false
---
Click Run code on the first exercise without typing any code in to mark the exercise as completed and unlock access to the next section.
Session info
learnr 0.10.1.9017 on Win10 machine