Syntax rewrite for R-commands

Rewrote the syntax documentation for all commands starting with the
letter R.