-
Notifications
You must be signed in to change notification settings - Fork 58
Description
I just uploaded a major update to the LeverageData Fork.
The direct effects of the changes can be seen here: https://leveragedata.shinyapps.io/QuizExamples/
In particular I made the following improvements:
- It is now possible to have a shiny problem set without programming chunks (both locally and on shinyapps)
- Exercises do no longer throw an error when ending with a chunk.
- Several improvements regarding quizzes:
- It is now possible to use a colon (":") in quizzes (question, success/failure message, choices, commentary [see below]) without destroying the yaml structure or having to use any escape characters.
- Quizzes now support RMD formatting, including MathJax. Beside other things this allows it to bold and italize text as well as the use of Math formulas in all quiz-related texts. Note: An exception has been made with numbered lists. Here I use regular expressions to suppress RMDs urge to fix mislabeled data. This way one can start a quiz with "2." without it being corrected to "1.". This is especially useful in the context of multi-part quizzes.
- Quizzes also support direct HTML code. This way one can for example change the color of (parts of) the text and use smilies or other fancy characters. In particular it is now possible to have images as choices (!).
- It is now possible to provide arbitrary commentary to the answers of single choice and multiple choice quizzes depending on all possible user input-combinations. One is therefore not limited to simply tell the user that the input of a mc quiz has been wrong but can also give helpful pointers which particular answers have been wrong or are missing.
All changes are as backwards compatible as possible. All current problem sets should compile as previously and all additional options are stricly optional. The following caveats apply however:
- Should someone by accident written a quiz where part of the text can be interpreted as either HTML or RMD, than these changes apply. This might for example be if someone has written something like 4*4=2*8 which now becomes 44=28. I nevertheless opted for the RMD behavior of quizzes as the default, as it now behaves as the rest of RTutor which is what one would assume as a new user.
- In the case of someone having used the string COLON than this gets changed to a ":".
Additionally I changed the commentary in deployapps so that the dataset should be in ./app instead of ./app/work. I am quite confused about this one. ./app./work worked fine until it didn't anymore for newly uploaded problem sets. I am not sure whether this was a change made by myself or by shinyapps. You might want to consider whats happening here seperately from the other changes.