Skip to content

CHANGES IN formatR VERSION 1.4

Compare
Choose a tag to compare
@yihui yihui released this 09 May 17:52
· 144 commits to master since this release

NEW FEATURES

  • tidy_source() can preserve line breaks in character strings in source code

MAJOR CHANGES

  • the deprecated functions tidy.source(), tidy.dir(), and tidy.eval() have been removed; use tidy_source(), tidy_dir() and tidy_eval() instead
  • comments that begin with #+ or #- are no longer wrapped; such comments are treated as knitr chunk options in knitr::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 with else back to the previous lines (thanks, @Auburngrads, #51)