Skip to content

Commit daece85

Browse files
fix touchstone script
1 parent 35fc409 commit daece85

File tree

1 file changed

+18
-12
lines changed

1 file changed

+18
-12
lines changed

touchstone/script.R

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,28 +13,34 @@ clear_ref_caches()
1313

1414

1515
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")),
1821
n = 30
1922
)
2023

2124
clear_ref_caches()
2225
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")),
2531
n = 30
2632
)
2733

2834
clear_ref_caches()
2935
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+
},
3844
n = 30
3945
)
4046

0 commit comments

Comments
 (0)