@@ -13,28 +13,34 @@ clear_ref_caches()
1313
1414
1515benchmark_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" )),
1821 n = 30
1922)
2023
2124clear_ref_caches()
2225benchmark_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" )),
2531 n = 30
2632)
2733
2834clear_ref_caches()
2935benchmark_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+ } ,
3844 n = 30
3945)
4046
0 commit comments