Skip to content

Commit 39df23f

Browse files
committed
fix the vignette
1 parent 22c3fec commit 39df23f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

vignettes/start_checkdown.Rmd

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,18 @@ check_question(answer = 42, title = "Put a number from 1 to 100")
125125

126126
It is possible to put some markdown markup whithin the `title` argument. Since this argument wraps the form contents with \code{fieldset} tags, you can redefine it appearance with CSS.
127127

128+
There is an additional function `insert_score()` that make it possible to add a counter of the correct answers on the page (thanks to [Julieblas](https://github.com/Julieblas) for an idea). It make sense to use this function inline like here:
129+
130+
#### Results: `r insert_score()` out of 13
131+
132+
The previous line was generated with the following code:
133+
134+
```{markdown}
135+
#### Results: `r insert_score()` out of 13
136+
```
137+
138+
This function can be located anywhere on your page (before the questions, after the questions, even in the middle), however right now it doesn't work, if there are multiple instances of this function call per page.
139+
128140
### 1.2 Give some hints with the `check_hint()` function
129141

130142
Sometimes you know in advance what kind of mistakes will your students do. Some students are shy and don't like asking questions, so hints could partially solve this problem. Again all you need is to create a following chunk with the chunck atribute `results='asis'` in your `rmarkdown` document:

0 commit comments

Comments
 (0)