Vignettes of package formatR
formatR.pdf
:
formatR: Format R Code Automatically