Skip to content

Commit

Permalink
Don't evaluate deferred_run() example (#1920)
Browse files Browse the repository at this point in the history
  • Loading branch information
lionel- authored Feb 13, 2024
1 parent fe50a22 commit 6d33469
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vignettes/test-fixtures.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ neat <- function(x, sig_digits) {

Second, it works when called in the global environment. Since the global environment isn't perishable, like a test environment is, you have to call `deferred_run()` explicitly to execute the deferred events. You can also clear them, without running, with `deferred_clear()`.

```{r}
```{r, eval = FALSE}
withr::defer(print("hi"))
#> Setting deferred event(s) on global environment.
#> * Execute (and clear) with `deferred_run()`.
Expand Down

0 comments on commit 6d33469

Please sign in to comment.