formatR
formatR copied to clipboard
Format R Code Automatically
> R version 4.1.2 (2021-11-01) Platform: x86_64-apple-darwin17.0 (64-bit) Running under: macOS Big Sur 10.16 Locale: en_GB.UTF-8 / en_GB.UTF-8 / en_GB.UTF-8 / C / en_GB.UTF-8 / en_GB.UTF-8 Package version: formatR_1.11.1 ##...
Hi Yihui, I have code snippet as this: ```r cc
After using "format code" in the latest RStudio, the parameters of functions are split into different lines and kept aligned. But I am unable to find the corresponding settings in...
Hi, probably more a feature request than an issue. formatR does current not work out-of-the-box with a complete markdown file using "tidy_file", does it? Sub-question: Is there a way in...
Any way to automatically add braces for single line code inside `if` or something like that? For the source code like this: ``` r if (TRUE) a = 1 b...
This looks very helpful it does not indent the lines that it does in the same way that Rstudio or emacs ESS does by default. For example, this line: ```...
Hi, Is it possible to split a long ggplot pipeline into newlines whenever there is a + sign. Many thanks!
It would be great to have `formatR` available as a pre-commit hook to keep R projects formatted consistently. Since version 2.11.0, [pre-commit supports `R`](https://pre-commit.com/#r). I would be glad to help...
Implements #97 Saw that there was an open issue so I implemented it myself. There's a section in the README for the options that can be given to the hook,...
If I save the following code under the given filename, and run it, I get ``` Error in base::parse(text = code, keep.source = keep.source) : :17:1: unexpected symbol 16: invisible(".BeGiN_TiDy_IdEnTiFiEr_HaHaHa#quiet...