tests/testthat/insertion_comment_interaction/if_else_strict-out.R

if (TRUE) NULL else NULL

if (TRUE) NULL else NULL # comment


if (TRUE) {
  NULL
} else { # comment
  NULL
}

# if(TRUE)NULL # comment
#  else NULL

if (TRUE) { # comment
  NULL
} else {
  NULL
}

if (TRUE # comment
) {
  NULL
} else {
  NULL
}

if ( # comment
  TRUE) {
  NULL
} else {
  NULL
}

if # comment
(TRUE) {
  NULL
} else {
  NULL
}
krlmlr/styler documentation built on Sept. 16, 2024, 11:35 p.m.