Skip to content

v0.10.0

Compare
Choose a tag to compare
@schloerke schloerke released this 12 Nov 16:04
a47a7e0

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)

  • Added tabset support. (#219 #212)

  • Question width will expand to the container width. (#222)

  • Available tutorial names will be displayed when no name parameter or an incorrect name is provided to run_tutorial(). (#234)

  • The options parameter was added to question to allow custom questions to pass along custom information. See sortable::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 using idb-keyval (dropping localforage). This change prevents browser tabs from blocking each other when trying to access indexedDB 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 and grader in docs with gradethis (#269)

  • Removed a warning created by pandoc when evaluating exercises where pandoc was wanting a title or pagetitle. #303