@@ -11,12 +11,9 @@ vignette: >
11
11
---
12
12
13
13
We want to make styler faster.
14
- ``` {r, echo = FALSE}
15
- knitr::opts_chunk$set(eval = FALSE)
16
- ```
17
14
18
15
19
- ``` {r}
16
+ ```
20
17
library(styler)
21
18
microbenchmark::microbenchmark(
22
19
base = style_file("tests/testthat/indention_multiple/overall-in.R"),
@@ -28,7 +25,9 @@ microbenchmark::microbenchmark(
28
25
```
29
26
30
27
Replacing mutate statements.
31
- ``` {r}
28
+
29
+ ```
30
+
32
31
microbenchmark::microbenchmark(
33
32
base = style_file("tests/testthat/indention_multiple/overall-in.R"),
34
33
times = 2
@@ -39,7 +38,8 @@ microbenchmark::microbenchmark(
39
38
```
40
39
41
40
Move ` opening ` argument out of needs indention.
42
- ``` {r}
41
+
42
+ ```
43
43
microbenchmark::microbenchmark(
44
44
base = style_file("tests/testthat/indention_multiple/overall-in.R"),
45
45
times = 5
@@ -51,7 +51,8 @@ microbenchmark::microbenchmark(
51
51
```
52
52
53
53
Dropping unnecessary select statements and arrange stuff.
54
- ``` {r}
54
+
55
+ ```
55
56
microbenchmark::microbenchmark(
56
57
base = style_file("tests/testthat/indention_multiple/overall-in.R"),
57
58
times = 5
@@ -63,7 +64,8 @@ microbenchmark::microbenchmark(
63
64
64
65
65
66
Some more stuff (early return, purr)
66
- ``` {r}
67
+
68
+ ```
67
69
microbenchmark::microbenchmark(
68
70
base = style_file("tests/testthat/indention_multiple/overall-in.R"),
69
71
times = 5
@@ -74,7 +76,8 @@ microbenchmark::microbenchmark(
74
76
```
75
77
76
78
Various changes (positive and negative in terms of speed)
77
- ``` {r}
79
+
80
+ ```
78
81
microbenchmark::microbenchmark(
79
82
base = style_file("tests/testthat/indention_multiple/overall-in.R"),
80
83
times = 10
@@ -87,7 +90,8 @@ microbenchmark::microbenchmark(
87
90
88
91
89
92
Removed tibble bottlenecks (tibble 1.4.2, https://github.com/tidyverse/tibble/pull/348 )
90
- ``` {r}
93
+
94
+ ```
91
95
microbenchmark::microbenchmark(
92
96
base = style_file("tests/testthat/indention_multiple/overall-in.R"),
93
97
times = 10
0 commit comments