Prettify LaTeX code, including Sweave code, sty files,
cls files, and bib files.
prettifyLaTeX(contents = NA, tabSize = NULL, log = FALSE)The pretty code in a character string.
the code to be prettified; there are three possibilities for
this argument:
NA (default), to use the file currently opened in RStudio;
the path to a file;
or the code given as a character vector
number of spaces of the indentation (usually 2 or
4);
if NULL (the default), there are two possibilities:
if the contents is read from the current file in RStudio, then the
number of spaces will be the one you use in RStudio;
otherwise it is set to 2
logical, whether to generate a log file (it will be named
indent.log)