Tidy code with correct indents and limit the code to the specific width
tidy_all_code(x, width = 80, indent = 4, outfile, incl_library = TRUE)
formatted code, optionally written to `outfile`
character string or file name of the file containing messy code
the width of a line
how many spaces for one indent
the file name of the file containing formatted code
logical, if true, the output code will contain library name
Tom Elliott, Lushi Cai