Skip to content

Commit ce6817f

Browse files
fix failing macOS test with microbenhmark dependency by a rewrite
1 parent 37fedfe commit ce6817f

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

vignettes/performance_improvements.Rmd

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,9 @@ vignette: >
1111
---
1212

1313
We want to make styler faster.
14-
```{r, echo = FALSE}
15-
knitr::opts_chunk$set(eval = FALSE)
16-
```
1714

1815

19-
```{r}
16+
```
2017
library(styler)
2118
microbenchmark::microbenchmark(
2219
base = style_file("tests/testthat/indention_multiple/overall-in.R"),
@@ -28,7 +25,9 @@ microbenchmark::microbenchmark(
2825
```
2926

3027
Replacing mutate statements.
31-
```{r}
28+
29+
```
30+
3231
microbenchmark::microbenchmark(
3332
base = style_file("tests/testthat/indention_multiple/overall-in.R"),
3433
times = 2
@@ -39,7 +38,8 @@ microbenchmark::microbenchmark(
3938
```
4039

4140
Move `opening` argument out of needs indention.
42-
```{r}
41+
42+
```
4343
microbenchmark::microbenchmark(
4444
base = style_file("tests/testthat/indention_multiple/overall-in.R"),
4545
times = 5
@@ -51,7 +51,8 @@ microbenchmark::microbenchmark(
5151
```
5252

5353
Dropping unnecessary select statements and arrange stuff.
54-
```{r}
54+
55+
```
5556
microbenchmark::microbenchmark(
5657
base = style_file("tests/testthat/indention_multiple/overall-in.R"),
5758
times = 5
@@ -63,7 +64,8 @@ microbenchmark::microbenchmark(
6364

6465

6566
Some more stuff (early return, purr)
66-
```{r}
67+
68+
```
6769
microbenchmark::microbenchmark(
6870
base = style_file("tests/testthat/indention_multiple/overall-in.R"),
6971
times = 5
@@ -74,7 +76,8 @@ microbenchmark::microbenchmark(
7476
```
7577

7678
Various changes (positive and negative in terms of speed)
77-
```{r}
79+
80+
```
7881
microbenchmark::microbenchmark(
7982
base = style_file("tests/testthat/indention_multiple/overall-in.R"),
8083
times = 10
@@ -87,7 +90,8 @@ microbenchmark::microbenchmark(
8790

8891

8992
Removed tibble bottlenecks (tibble 1.4.2, https://github.com/tidyverse/tibble/pull/348)
90-
```{r}
93+
94+
```
9195
microbenchmark::microbenchmark(
9296
base = style_file("tests/testthat/indention_multiple/overall-in.R"),
9397
times = 10

0 commit comments

Comments
 (0)