tests/testthat/indention_operators/function-multiline-no-braces-strict-out.R

g <- function(k) {
  NULL
}


g <- function(k) {
  h(
    NULL
  )
}


g <- function(k) {
  h( # y
    NULL # x
  )
}

g <- function(k) {
  h( # y
    NULL
  )
}


g <- function(k) {
  h(
    NULL # 3jkö
  )
}

g <- function(k) {
  h(
    if (TRUE) {
      x
    }
  )
}
r-lib/styler documentation built on April 10, 2024, 4 a.m.