- install R and add
Rscript.exe
to the environment path. - install R package
formatR
.
- select the code and press
ctrl+alt+f
- set the format style in
SublimeFormatR.sublime-settings
file.
- deal with
tidy_source()
's error massege and show it in the dialog.