Skip to content

Commit 6d33469

Browse files
authored
Don't evaluate deferred_run() example (#1920)
1 parent fe50a22 commit 6d33469

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vignettes/test-fixtures.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ neat <- function(x, sig_digits) {
133133

134134
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()`.
135135

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

0 commit comments

Comments
 (0)