Description Usage Arguments Value Note
This function allows the rfmt R source code formatting tool to be
invoked from R. It applies rfmt to an R source file, the contents
of the system clipboard, or to a character string.
1 |
source.file |
a character string giving the location of a file
containing R source code. Not supplied if parameter |
text |
a character string containing R source code. Not supplied
if |
opts |
options to |
... |
options to |
If formatting a file, nothing (invisible(NULL)). If formatting
a string, a character vector comprising the formatted code. If
formatting the contents of the clipboard, a similar character vector,
but rendered invisible; the formatted code is also output to the terminal
(using cat).
Input is taken from the clipboard if neither source.file nor
text is supplied.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.