prettifyCLANG {prettifyAddins} | R Documentation |
Prettify C, C++, Java
Description
Prettify some C, C++ or Java code.
Usage
prettifyCLANG(contents = NA, language = NA, tabSize = NULL)
Arguments
contents |
the code to be prettified; there are three possibilities for
this argument:
|
language |
the language of the code; when the contents is read from a file, this option is ignored, because the language is obtained from the extension of the file |
tabSize |
number of spaces of the indentation (usually |
Value
The pretty code in a character string.
Note
This function requires the command line utility clang-format
.
[Package prettifyAddins version 2.6.1 Index]