Releases: yihui/formatR
Releases · yihui/formatR
CHANGES IN formatR VERSION 1.4
NEW FEATURES
tidy_source()
can preserve line breaks in character strings in source code
MAJOR CHANGES
- the deprecated functions
tidy.source()
,tidy.dir()
, andtidy.eval()
have been removed; usetidy_source()
,tidy_dir()
andtidy_eval()
instead - comments that begin with
#+
or#-
are no longer wrapped; such comments are treated as knitr chunk options inknitr::spin()
(#52)
BUG FIXES
tidy_source()
should not write an extra space to the last line of code (thanks, @mr-karan, #49)- long strings (> 1000 characters) in source code can be preserved now (thanks, @jholtman, #50)
tidy_source()
might move any lines of code starting withelse
back to the previous lines (thanks, @Auburngrads, #51)
CHANGES IN formatR VERSION 1.3
NEW FEATURES
tidy_source()
can deal with multibyte characters that cannot represented in the system native encoding now (on Windows)usage()
works for functions obtained from::
or:::
now, e.g.usage(formatR::tidy_source)
CHANGES IN formatR VERSION 1.2
- the minimal required R version is 3.0.2 now
CHANGES IN formatR VERSION 1.1
NEW FEATURES
- added a new argument
output
tousage()
BUG FIXES
- fixed yihui/knitr#918: when code is NULL,
parse()
will hang (with a question mark waiting for input)