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
}

Try the styler package in your browser

Any scripts or data that you put into this service are public.

styler documentation built on Aug. 29, 2023, 5:10 p.m.