v0.10.0
learnr 0.10.0
New features
-
Quiz questions are implemented using shiny modules (instead of htmlwidgets). (#194)
-
Aggressively rerender prerendered tutorials in favor of a cohesive exercise environment (#169, #179, and rstudio/rmarkdown#1420)
-
Added a new function,
safe
, which evaluates code in a new, safe R environment. (#174)
Minor new features and improvements
-
Added the last evaluated exercise submission value,
last_value
, as an exercise checker function argument. (#228) -
Question width will expand to the container width. (#222)
-
Available tutorial names will be displayed when no
name
parameter or an incorrectname
is provided torun_tutorial()
. (#234) -
The
options
parameter was added toquestion
to allow custom questions to pass along custom information. Seesortable::sortable_question
for an example. (#243) -
Missing package dependencies will ask to be installed at tutorial run time. (@isteves, #253)
-
When questions are tried again, the existing answer will remain, not forcing the user to restart from scratch. (#270)
-
A version number has been added to
question_submission
events. This will help when using custom storage methods. (#291) -
Tutorial storage on the browser is now executed directly on
indexedDB
usingidb-keyval
(droppinglocalforage
). This change prevents browser tabs from blocking each other when trying to accessindexedDB
data. (#305)
Bug fixes
-
Fixed a spurious console warning when running exercises using Pandoc 2.0. (#154)
-
Added a fail-safe to try-catch bad student code that would crash the tutorial. (@adamblake, #229)
-
Replaced references to
checkthat
andgrader
in docs with gradethis (#269) -
Removed a warning created by pandoc when evaluating exercises where pandoc was wanting a title or pagetitle. #303