Skip to content

Commit 02bf622

Browse files
style NEWS, add missing parts
1 parent 6fbf794 commit 02bf622

File tree

1 file changed

+28
-27
lines changed

1 file changed

+28
-27
lines changed

NEWS.md

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,48 @@
1-
2-
# styler 1.2.0.9000
1+
# styler 1.2.9001
32

43
## Breaking changes
54

6-
* `style_pkg()` and `style_dir()` gain a new argument `exclude_dirs` to exclude
7-
directories from styling, by default `renv` and `packrat`. Note that the
8-
defaults won't change the behavior of `style_pkg()` because it does anyways
5+
* `style_pkg()` and `style_dir()` gain a new argument `exclude_dirs` to exclude
6+
directories from styling, by default `renv` and `packrat`. Note that the
7+
defaults won't change the behavior of `style_pkg()` because it does anyways
98
does not style these directories and they were set for consistency.
10-
11-
* `style_file()` and friends now strip `./` in file paths returned invisibly,
9+
10+
* `style_file()` and friends now strip `./` in file paths returned invisibly,
1211
i.e. `./script.R` becomes `script.R` (#568).
1312

1413
## New features
1514

16-
* ignore certain lines using `# styler: off` and `#styler: on` or custom
17-
markers, see `help("stylerignore")` (#560).
15+
* ignore certain lines using `# styler: off` and `#styler: on` or custom
16+
markers, see `?stylerignore` (#560).
1817

1918
* styler caches results of styling, so applying styler to code it has styled
2019
before will be instantaneous. This brings large speed boosts in many
2120
situations, e.g. when `style_pkg()` is run but only a few files have changed
2221
since the last styling or when using the [styler pre-commit
23-
hook](https://github.com/lorenzwalthert/precommit). Because styler caches
24-
by expression, you will also get speed boosts in large files with many
25-
expressions when you only change a few o them. See `help("caching")` for
26-
details (#538, #578).
27-
28-
* `create_style_guide()` gains two arguments `style_guide_name` and
29-
`style_guide_version` that are carried as meta data, in particular to version
30-
third-party style guides and ensure the proper functioning of caching. This
22+
hook](https://github.com/lorenzwalthert/precommit). Because styler caches by
23+
expression, you will also get speed boosts in large files with many
24+
expressions when you only change a few of them. See `?caching` for details
25+
(#538, #578).
26+
27+
* `create_style_guide()` gains two arguments `style_guide_name` and
28+
`style_guide_version` that are carried as meta data, in particular to version
29+
third-party style guides and ensure the proper functioning of caching. This
3130
change is completely invisible to users who don't create and distribute their
3231
own style guide like `tidyverse_style()` (#572).
3332

34-
3533
## Minor changes and fixes
3634

3735
* lines are now broken after `+` in `ggplot2` calls for `strict = TRUE` (#569).
3836

3937
* function documentation now contains many more line breaks due to roxygen2
4038
update to version 7.0.1 (#566).
41-
39+
4240
* spaces next to the braces in subsetting expressions `[` and `[[` are now
4341
removed (#580).
4442

43+
* Adapt to changes in the R parser to make styler pass R CMD check again.
44+
(#583).
45+
4546
# styler 1.2.0
4647

4748
## Breaking changes
@@ -51,33 +52,33 @@
5152
This is also reflected in the invisible return value of the function (#522).
5253

5354
* `style_file()` and friends do not write content back to a file when styling
54-
does not cause any changes in the file. This means the modification date of
55+
does not cause any changes in the file. This means the modification date of
5556
styled files is only changed when the content is changed (#532).
5657

5758
## New features
5859

59-
* Aligned function calls are detected and remain unchanged if they match the styler
60-
[definition for aligned function
60+
* Aligned function calls are detected and remain unchanged if they match the
61+
styler [definition for aligned function
6162
calls](https://styler.r-lib.org/articles/detect-alignment.html) (#537).
6263

63-
* curly-curly (`{{`) syntactic sugar introduced with rlang 0.4.0 is now
64-
explicitly handled, where previously it was just treated as two consecutive
64+
* curly-curly (`{{`) syntactic sugar introduced with rlang 0.4.0 is now
65+
explicitly handled, where previously it was just treated as two consecutive
6566
curly braces (#528).
6667

6768
* `style_pkg()`, `style_dir()` and the Addins can now style `.Rprofile`, and
6869
hidden files are now also styled (#530).
6970

7071
## Minor improvements and fixes
7172

72-
* Brace expressions in function calls are formatted in a less compact way to
73+
* Brace expressions in function calls are formatted in a less compact way to
7374
improve readability. Typical use case: `tryCatch()` (#543).
7475

75-
* Arguments in function declarations in a context which is indented multiple
76+
* Arguments in function declarations in a context which is indented multiple
7677
times should now be correct. This typically affects `R6::R6Class()` (#546).
7778

7879
* Escape characters in roxygen code examples are now correctly escaped (#512).
7980

80-
* Special characters such as `\n` in strings are now preserved in text and not
81+
* Special characters such as `\n` in strings are now preserved in text and not
8182
turned into literal values like a line break (#554).
8283

8384
* Style selection Addin now preserves line break when the last line selected is

0 commit comments

Comments
 (0)