🔔 *Subscribe for weekly R videos:* https://www.youtube.com/channel/UCb5aI-GwJm3ZxlwtCsLu78Q?sub_confirmation=1
Here's how to simplify R code in RStudio and automatically clean up messy R code using a keyboard shortcut in RStudio. This video covers how to use RStudio's default method to clean up R code, then look at how to install the "styler" package, set up keyboard shortcuts, and also how to clean up code in both plain R files and in Rmd markdown files.
🎉 *Enjoyed this video?* Leave a comment below to share what you liked the most!
0:00 Intro
0:40 RStudio built-in code reformatting
2:15 Install styler
3:09 Reformat code with styler
3:40 Rebind keyboard shortcut
5:05 Reformat markdown-contained R code