Skip to content

Commit

Permalink
Remove small snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
schloerke committed Sep 4, 2024
1 parent 44e2105 commit 15c2ba1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
2 changes: 0 additions & 2 deletions pkgdown/assets/snippets/exercisedebounce.md

This file was deleted.

2 changes: 0 additions & 2 deletions pkgdown/assets/snippets/exercisedebounceoff.md

This file was deleted.

10 changes: 6 additions & 4 deletions vignettes/articles/exercises.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,16 @@ insert_snippet("exerciseeval")

It may be necessary to slow down successive exercise submissions, otherwise users may overwhelm your server by running exercise code chunks in fast repetition. You can do so globally by setting the option `tutorial.exercise.debounce` to an amount of time (in seconds) that is waited before the same user's next code execution is performed. This option is set to 1 second by default.

```{r snippet-exercisedebounce, echo = FALSE}
insert_snippet("exercisedebounce")
```{r snippet-exercisedebounce, eval = FALSE}
# Set exercise submission debounce time to 5 seconds
options("tutorial.exercise.debounce" = 5)
```

To disable of this behavior, you can set the option to 0:

```{r snippet-exercisedebounceoff, echo = FALSE}
insert_snippet("exercisedebounceoff")
```{r snippet-exercisedebounceoff, eval = FALSE}
# Disable exercise submission debounce
options("tutorial.exercise.debounce" = 0)
```

## Exercise Setup {#exercise-setup}
Expand Down

0 comments on commit 15c2ba1

Please sign in to comment.