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
}
r-lib/styler documentation built on April 30, 2024, 9 p.m.