@@ -70,6 +70,7 @@ test_with_dir("warn about <- and -> in drake_plan()", {
70
70
71
71
test_with_dir(" File functions handle input" , {
72
72
skip_on_cran() # CRAN gets essential tests only (check time limits).
73
+ skip_if_not_installed(" styler" )
73
74
expect_equal(
74
75
file_in(1 , " x" , " y" ), c(" 1" , " x" , " y" )
75
76
)
@@ -470,6 +471,7 @@ test_with_dir("plan_to_code()", {
470
471
471
472
test_with_dir(" plan_to_notebook()" , {
472
473
skip_on_cran()
474
+ skip_if_not_installed(" styler" )
473
475
skip_if_not_installed(" knitr" )
474
476
skip_if_not_installed(" tibble" )
475
477
expect_false(file.exists(" report.md" ))
@@ -556,6 +558,7 @@ test_with_dir("drake_plan does tidy eval", {
556
558
# From Alex Axthelm: https://github.com/ropensci/drake/issues/200
557
559
test_with_dir(" drake_plan tidy eval can be customized and disabled" , {
558
560
skip_on_cran() # CRAN gets essential tests only (check time limits).
561
+ skip_if_not_installed(" styler" )
559
562
my_variable <- 5
560
563
plan1 <- drake_plan(
561
564
a = !! my_variable ,
@@ -608,6 +611,7 @@ test_with_dir("stringsAsFactors can be TRUE", {
608
611
609
612
test_with_dir(" case sensitivity" , {
610
613
skip_on_cran()
614
+ skip_if_not_installed(" styler" )
611
615
plan <- drake_plan(
612
616
a = 1 ,
613
617
b = 2 ,
@@ -635,6 +639,7 @@ test_with_dir("Strings stay strings, not symbols", {
635
639
})
636
640
637
641
test_with_dir(" missing symbols get replaced (#1299)" , {
642
+ skip_if_not_installed(" styler" )
638
643
plan <- drake_plan(x = NULL )
639
644
expect_silent(make(plan , verbose = 0L , session_info = FALSE ))
640
645
})
0 commit comments