How to align braces RStudio

Please familiarize yourself with our cross-posting policy. It is not considered OK to just drop a link to a SO question.