If you ever find yourself trying to align assignment operators for a chunk of code in RStudio, then you are in luck: Align Assign makes this as easy as a mouse-click or a keyboard-shortcut.
Align Assign is an RStudio addin which does a straight, no-frills alignment of every first-occurring assignment operator within a highlighted region.
Align Assign is available in a package all its own on GitHub, and can be installed using
devtools::install_github("seasmith/AlignAssign"). Once installed, I recommend mapping the addin to a keyboard shortcut such as “Ctrl + Shift + Z” for convenient use.