Skip to content

Global option to show/hide solution  #402

@mine-cetinkaya-rundel

Description

@mine-cetinkaya-rundel

Currently, an exercise chunk will show the model solution if a chunk with -solution is provided. If you have hints, you scroll through all fo them and then the solution is shown.

I would love to be able to set some global option which, if set to FALSE, will show the hints but not the model solution, and if set to TRUE, it will show it. This would allow me to develop the learnr tutorial with the solution chunks in place, hide them until a deadline, and then redeploy with the option turned on to show the solutions.

I realize that right now I can achieve this result by going back after the deadline and adding the solution chunks in (or uncommenting them), but it would be nice to write the whole tutorial at once and then just flip a switch later.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions