-
Notifications
You must be signed in to change notification settings - Fork 239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Should it possible to get a solution and a hint for the same code chunk? #90
Comments
In case it matters, the hint was done with |
One or the other :'(
https://rstudio.github.io/learnr/exercises.html#hints_and_solutions Though, it would be very nice if this was added... |
Is it the intention that hint-1 might be the hint and hint-2 a solution? From a student standpoint it might be helpful to just indicate that there are no more hints (and the solution is being provided). |
That's correct, hint 2 is the solution. We try to communicate that there
are no more hints by disabling the "next hint" button.
…On Wed, Jun 14, 2017 at 7:35 PM, Nicholas Horton ***@***.***> wrote:
Is it the intention that hint-1 might be the hint and hint-2 a solution?
From a student standpoint it might be helpful to just indicate that there
are no more hints (and the solution is being provided).
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#90 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAGXx9F8E-E0abSGJpucls9jBHsNstAuks5sEG4xgaJpZM4N6cDS>
.
|
Though would it be possible to scroll between hints? I want to split the solution in three hints and give the option of progressive show-ups (e.g., a student may want to see the previous hint) |
Hello, I would like to push this issue up. Would it be possible to make both Hint and Solution buttons appear? Thank you! |
Separate buttons for hints and solutions would be great! |
Agree! I am also okay with the final hint being the solution (e.g. hint-1 is hint, hint-2 is solution). However, in learnr tutorials I am writing, I find that for exercises with both div hints (any number) and a solution, you can click through all of the hints but the solution will never appear. For exercises with code hints and a solution, the solution does show up as the final hint per above. However, it would be nice to get similar behavior with div hints somehow! |
Many of these issues were addressed in a new package, learnrLara, developed by The Concord Consortium. It's based (of course) on learnr. Among other things, you can add multiple hints (and scroll between them), a separate solution, and hide the left navigation bar if you want. You can get it by loading (or installing+loading) devtools and then installing with install_github: |
Just as a side note, I am having some issues with the package under my Linux machine since I upgraded RStudio from 1.2.1335 to 1.4.1717 (Ubuntu 18.04 and then Ubuntu 20.04). The output comes out empty, no error message to give me a hint (no pun intended). |
@keniatw the issue you are experiencing is likely the result of recent changes in rmarkdown. I suspect you could downgrade rmarkdown to find a version where learnrLara works as expected. |
This seems to not work at the moment. I only see the hint if there is a hint and a solution.
The text was updated successfully, but these errors were encountered: