Skip to content

Commit ff62586

Browse files
authored
Document how to temporarily suppress parallel testing (#2171)
Fixes #2035
1 parent 387a9fc commit ff62586

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

vignettes/parallel.Rmd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ Then add the following line to the `DESCRIPTION`:
2626
Config/testthat/parallel: true
2727
```
2828

29+
If needed (for example, for debugging) you can temporarily suppress parallel testing with `Sys.setenv(TESTTHAT_PARALLEL = "false")`.
30+
2931
By default, testthat will use `getOption("Ncpus", 2)` cores.
3032
To increase that value for your development machine we recommend setting `TESTTHAT_CPUS` in your `.Renviron`.
3133
The easiest way to do that is call `usethis::edit_r_environ()` and then add something like the following:

0 commit comments

Comments
 (0)