RStudio Server: Align closing brace/paren with opening line

My employer's R convention/styleguide specifies that closing parentheses and braces should align with the opening line:

function_1 <- function(...) {
  list(...)
}

RStudio Server indents by default:

function_1 <- function(...) {
  list(...)
  }

Is there any way to change this?

Unfortunately, there is not -- RStudio does not yet provide any granularity around how certain lines may be indented within an R script. You might consider filing this as a feature request, at https://github.com/rstudio/rstudio/issues.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.