@@ -13,28 +13,34 @@ clear_ref_caches()
13
13
14
14
15
15
benchmark_run_ref(
16
- expr_before_benchmark = c(" library(styler)" , " cache_deactivate()" ),
17
- without_cache = ' style_pkg("touchstone/sources/here", filetype = c("R", "rmd"))' ,
16
+ expr_before_benchmark = {
17
+ library(styler )
18
+ cache_deactivate()
19
+ },
20
+ without_cache = style_pkg(" touchstone/sources/here" , filetype = c(" R" , " rmd" )),
18
21
n = 30
19
22
)
20
23
21
24
clear_ref_caches()
22
25
benchmark_run_ref(
23
- expr_before_benchmark = c(" library(styler)" , " cache_activate(gert::git_branch())" ),
24
- cache_applying = ' style_pkg("touchstone/sources/here", filetype = c("R", "rmd"))' ,
26
+ expr_before_benchmark = {
27
+ library(styler )
28
+ cache_activate(gert :: git_branch())
29
+ },
30
+ cache_applying = style_pkg(" touchstone/sources/here" , filetype = c(" R" , " rmd" )),
25
31
n = 30
26
32
)
27
33
28
34
clear_ref_caches()
29
35
benchmark_run_ref(
30
- expr_before_benchmark = c(
31
- " library(styler)" ,
32
- " cache_activate(gert::git_branch())"
33
- ) ,
34
- cache_recording = c(
35
- " gert::git_reset_hard(repo = ' touchstone/sources/here') " ,
36
- ' style_pkg("touchstone/sources/here", filetype = c("R", "rmd"))'
37
- ) ,
36
+ expr_before_benchmark = {
37
+ library(styler )
38
+ cache_activate(gert :: git_branch())
39
+ } ,
40
+ cache_recording = {
41
+ gert :: git_reset_hard(repo = " touchstone/sources/here" )
42
+ style_pkg(" touchstone/sources/here" , filetype = c(" R" , " rmd" ))
43
+ } ,
38
44
n = 30
39
45
)
40
46
0 commit comments