tests/testthat/unindention/mixed-double-out.R

# classical

function(x,
         y) {
  1
}


function(x,
         y,
         k) {
  1
}


function(x,
         y) {
  1
}

function(x,
         y) {
  1
}


function(x, y) {
  1
}

function(x,
         #
         y) {
  1
}


# double
function(
    x,
    y) {
  1
}


function(
    x,
    y,
    k) {
  1
}


function(
    x,
    y) {
  1
}


function(
    x, y) {
  1
}

function(x,
         #
         y) {
  1
}


# last brace
function(
    x, y) {
  NULL
}

function(
    x, y) {
  NULL
}

function(
    x,
    y) {
  NULL
}

function(
    x,
    y) {
  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.