Site icon R-bloggers

styler 1.1.0

[This article was first published on Lorenz Walthert, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

styler 1.1.0 is now available on CRAN. This release introduces new features and is fully backward-compatible. It also adapts to changes in the R parser committed into R devel (#419). Major changes are:

styler::style_pkg(include_roxygen_examples = FALSE)
styler::style_dir(filetype = c("r", "Rmd", ".rnw"))
styler::style_text(c(
  "add <- function(...) {", 
  "purrr::reduce(list(...), `+`)", 
  "}"
))

There were also quite a few minor changes, the most visible ones to the user were a complete re-design of the README and the fact that the cursor position is now remembered for styling via Addin. For details, you can have a look at the release notes or check the full commit history.

Thanks to all contributors for patches, issues and the like: @jonmcalder, @krlmlr, @IndrajeetPatil, @kalibera, @Hasnep, @kiranmaiganji, @dirkschumacher, @ClaytonJY, @wlandau, @maurolepore.

Although not directly related to this release, we would like to highlight that the functionality of styler is also available in other packages:

For a complete walk-through we recommend to have a look at the initial blog post that introduces styler.

To leave a comment for the author, please follow the link and comment on their blog: Lorenz Walthert.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.