The file rfmt.py
and its associated package, rfmt
comprise a
stand-alone code formatter for the R programming
language, in the same mold as gofmt tool
for Go, and clang-format for
C/C++.
To use the formatter, you'll need Python 2.7 or later, and you'll need to
ensure that David Beazley's ply
package is
accessible to Python
(for your convenience, a copy of the ply
package is enclosed).
Help for command line usage is available by running python rfmt.py --help
, or
the equivalent.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.