Things under legendu
**
Things under legendu
You can use the function
tidy_soucein the R packageformatRto format R code.
tidy_source('unformatted.r', file = 'formatted.r')However,
there is a bug in the package formatR.
For example,
the formatR fails to work with the following code.
if { # this is comment
...
}Avoid changing the type of object.