|
2 | 2 |
|
3 | 3 | ## Alignment detection |
4 | 4 |
|
5 | | -* code with left alignment after `=` in function calls is now recognized as |
| 5 | +* Code with left alignment after `=` in function calls is now recognized as |
6 | 6 | aligned and won't be reformatted (#774, #777). |
7 | 7 | ``` |
8 | 8 | # already detected previously |
|
18 | 18 | ) |
19 | 19 | ``` |
20 | 20 |
|
21 | | -* similarly, left aligned after comma is now detected (#785, #786). |
| 21 | +* Similarly, left aligned after comma is now detected (#785, #786). |
22 | 22 | ``` |
23 | 23 | # previously detected |
24 | 24 | call( |
|
51 | 51 |
|
52 | 52 | * The base R pipe as introduced in R 4.1.0 is now styled the same way the |
53 | 53 | magrittr pipe is (#803). |
| 54 | +* code chunks with explicit `tidy = FALSE` in an Rmd or Rnw code header are not |
| 55 | + styled anymore. This can be handy when the code can't be parsed, e.g. |
| 56 | + within a learnr tutorial (#790). |
| 57 | +* `#>` is recognized as an output marker and no space is added after `#` (#771). |
54 | 58 |
|
55 | 59 | ## Minor changes and fixes |
56 | 60 |
|
57 | 61 | * No curly braces are added to else statements if they are within a pipe, as |
58 | 62 | this can change evaluation logic of code involving the magrittr dot in rare |
59 | 63 | cases (#816). |
60 | | -* line breaks between `}` and `else` are removed (#793). |
61 | | -* in function calls, code after `= #\n` is indented correctly (#814). |
62 | | -* styler won't format code chunks with explicit `tidy = FALSE` in an Rmd or Rnw |
63 | | - code header anymore. This can be handy when the code can't be parsed, e.g. |
64 | | - within a learnr tutorial (#790). |
65 | | -* `#>` is recognized as an output marker and no space is added after `#` (#771). |
66 | | -* multi-expressions containing multiple assignments no longer remove line breaks |
| 64 | +* Line breaks between `}` and `else` are removed (#793). |
| 65 | +* In function calls, code after `= #\n` is indented correctly (#814). |
| 66 | +* Multi-expressions containing multiple assignments no longer remove line breaks |
67 | 67 | if they are not causing blank lines (#809). |
68 | 68 | * `exclude_dirs` in `style_pkg()` is now properly respected if it is a |
69 | 69 | sub-directory of a directory that is scheduled for styling (e.g. |
70 | 70 | `test/testthat/some/dir`) (#811). |
71 | | -* the user is not prompted anymore to confirm the creation of a permanent cache |
| 71 | +* The user is not prompted anymore to confirm the creation of a permanent cache |
72 | 72 | as R.cache >= 0.15.0 uses a standard location in line with CRAN policies |
73 | 73 | (#819). |
74 | 74 | * R code chunks in nested non-R chunks in R markdown don't yield an error |
75 | 75 | anymore when document is styled, chunks are still not styled (#788, #794). |
76 | 76 | * `cache_activate()` and `cache_deactivate()` now respect the R |
77 | 77 | option `styler.quiet` (#797). |
78 | 78 | * `multi_line` attribute in parse table is now integer, not boolean (#782). |
79 | | -* style guide used in Addin is verified when set via R option (#789). |
80 | | -* improve pkgdown author URLs (#775). |
| 79 | +* The style guide used in Addin is verified when set via R option (#789). |
| 80 | +* Improve pkgdown author URLs (#775). |
81 | 81 | * Upgrade touchstone infra (#799, #805). |
82 | 82 | * Don't test on R 3.3 anymore as tidyverse [supports only four previous |
83 | 83 | releases](https://www.tidyverse.org/blog/2019/04/r-version-support/) (#804). |
84 | 84 | * Update Github Actions workflow (#810). |
85 | 85 |
|
86 | 86 | # styler 1.4.1 |
87 | 87 |
|
88 | | -* Fix interaction between cache and `base_indention`. This also fixes |
| 88 | +* fix interaction between cache and `base_indention`. This also fixes |
89 | 89 | the Addin for styling a selection with base indention repeatedly (#764). |
90 | | -* Add more examples to `styler_*` helpfiles (#762). |
91 | | -* Hexadecimal integers now preserve the trailing `L` when styled (#761). |
92 | | -* Add a pre-push hook to make sure news bullets are added to each PR (#765). |
| 90 | +* add more examples to `styler_*` helpfiles (#762). |
| 91 | +* hexadecimal integers now preserve the trailing `L` when styled (#761). |
| 92 | +* add a pre-push hook to make sure news bullets are added to each PR (#765). |
93 | 93 |
|
94 | 94 |
|
95 | 95 | # styler 1.4.0 |
|
0 commit comments