Comments (7)
Yes, we will definitely do this. @hadley Asked for this right away as well, it may actually end up being a more popular way to provide hints than code.
from learnr.
I've added the ability to compose hints in markdown, documentation is here: https://rstudio.github.io/tutor/45796A4F836C4B5B/exercises.html#hints_and_solutions
from learnr.
from learnr.
I think we can either have the hints show up in the same frame as code or we can add some automatic highlighting of hint divs. I was thinking that by inserting the markdown hint into the area below the code it could be somewhat more expansive. I also thought that the framing that we use for code hints might be kind of a distraction / too busy for markdown hints.
So we could definitely add some framing for hints displayed below to make them more obvious. The question I'm interested in is which is more desirable -- markdown hints above in the same frame as code or markdown hints below.
@hadley had some thoughts about this (I believe he favored below but I don't recall exactly) so he might want to weigh in also.
from learnr.
I'm neutral about above or below, just so long as there is a clear indication to the reader that a hint has appeared.
Regarding the
from learnr.
Okay, I just added a panel border treatment around the hint HTML. Let me know if that seems like enough (I'm wary of making it too busy as there are already quite a few boxes/headers within tutorials).
In terms of using regular code chunks for hints, I don't like this because you are now forcing the author to write markdown in an R code editor (thus giving up all of our markdown editing tools) as well as making it impossible to embed other R code chunks in the hint (since you can't next code chunks).
from learnr.
from learnr.
Related Issues (20)
- webR support? HOT 1
- Release learnr 0.11.3 HOT 5
- Add a function to update code box dynamically from server
- Port to Quarto environment? HOT 2
- `?` shows `_` between each letter in the title of the documentation HOT 1
- Error if `-solution` chunk has an unneeded `exercise.setup` option HOT 1
- Make learnr tests less brittle wrt error classes
- Improved `try_again` checkbox question message does not apply when question is created by `question()`
- Option to precompile/render html HOT 2
- The 'message' field of feedback must be a character vector or an htmltools tag or tagList HOT 4
- Release learnr 0.11.4
- verbatim environment does not work in learnr R markdown files HOT 2
- Can't access data in data folder tutorial directory HOT 1
- Hashpipe-style chunk options cause learnr to crash HOT 1
- Progressive Reveal for Topics at Level 2 Header ##
- Example tutorials that require gradethis should error if not installed
- Fix CRAN issues in Debian r-devel
- Release learnr 0.11.5
- YAML options to customize included directories
- `Rcpp` is not working in `learnr`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from learnr.