Skip to content

Commit

Permalink
replace checkthis and grader with gradethis in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
chendaniely committed Aug 1, 2019
1 parent df5a25d commit ec11b4a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ learnr 0.10.0 (unreleased)

* Added a fail-safe to try-catch bad student code that would crash the tutorial. ([@adamblake](https://github.com/adamblake), [#229](https://github.com/rstudio/learnr/issues/229))

* Replace references to `checkthat` and `grader` in docs with [gradethis](https://github.com/rstudio-education/gradethis)

learnr 0.9.2
===========
Expand Down
2 changes: 1 addition & 1 deletion docs/exercises.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ The **learnr** package doesn't directly include features for checking exercise i
<div id="exercisecheck"></div>
<script type="text/javascript">loadSnippet('exercisecheck')</script>

The [grader](https://github.com/rstudio-education/grader) package has utilities for grading exercises; suggestions and contributions are very welcome.
The [gradethis](https://github.com/rstudio-education/gradethis) package has utilities for grading exercises; suggestions and contributions are very welcome.

When you provide a "-check" chunk for an exercise, an additional "Submit Answer" button is added to the exercise editor:

Expand Down
5 changes: 3 additions & 2 deletions docs/snippets/exercisecheck.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
```{r setup, include=FALSE}
library(learnr)
tutorial_options(exercise.checker = checkthat::check_exercise)
knitr::opts_chunk$set(exercise.checker = gradethis::grade_learnr)
```

```{r exercise1-check}
# code to check exercise here
```
```

0 comments on commit ec11b4a

Please sign in to comment.