Skip to content

Releases: yihui/formatR

CHANGES IN formatR VERSION 1.4

09 May 17:52
Compare
Choose a tag to compare

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)

CHANGES IN formatR VERSION 1.3

05 Mar 21:02
Compare
Choose a tag to compare

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

05 Mar 21:03
Compare
Choose a tag to compare
  • the minimal required R version is 3.0.2 now

CHANGES IN formatR VERSION 1.1

05 Mar 21:04
Compare
Choose a tag to compare

NEW FEATURES

  • added a new argument output to usage()

BUG FIXES

  • fixed yihui/knitr#918: when code is NULL, parse() will hang (with a question mark waiting for input)