Skip to content

Commit e02bc05

Browse files
committed
More Jenny feedback
1 parent 7b3f603 commit e02bc05

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

vignettes/test-fixtures.Rmd

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ library(testthat)
4545

4646
## `local_` helpers
4747

48-
We'll begin by giving you the bare minimum knowledge to change global state *just* within your test. The withr package provides a number of functions that temporarily change the state of the world, carefully undoing the changes when the current function finishes:
48+
We'll begin by giving you the bare minimum knowledge to change global state *just* within your test. The withr package provides a number of functions that temporarily change the state of the world, carefully undoing the changes when the current function or test finishes:
4949

5050
| Do / undo this | withr function |
5151
|-----------------------------|-------------------|
@@ -82,8 +82,6 @@ local_digits <- function(sig_digits, env = parent.frame()) {
8282
}
8383
```
8484

85-
This is particularly useful when you need to chain together multiple `local_` functions to achieve the desired state.
86-
8785
## Foundations
8886

8987
Before we go further, let's lay some foundations to help you understand how `local_` functions work. We'll motivate the discussion with a `sloppy()` function that prints a number with a specific number of significant digits by adjusting an R option:

0 commit comments

Comments
 (0)