@@ -8,101 +8,100 @@ bug fixes and the removal of 8 recursive dependencies. We also welcome
8
8
\@ IndrajeetPatil as a new contributor to {styler}, who has contributed
9
9
significantly to this and and previous releases.
10
10
11
-
12
11
** Features**
13
12
14
13
- ` style_dir() ` and ` style_pkg() ` now default to styling all supported file
15
- formats (` .R ` , ` .Rmd ` , ` .Rmarkdown ` , ` .Rnw ` , and ` .qmd ` ) in the (package)
16
- directory (#965 , #931 , #1033 ).
17
- - ` style_pkg() ` now excludes the auto-generated ` R/cpp11.R ` file (#977 ).
18
- - Minimum needed R version is now bumped to ` 3.5 ` (#986 ).
14
+ formats (` .R ` , ` .Rmd ` , ` .Rmarkdown ` , ` .Rnw ` , and ` .qmd ` ) in the (package)
15
+ directory (#965 , #931 , #1033 ).
16
+ - ` style_pkg() ` now excludes the auto-generated ` R/cpp11.R ` file (#977 ).
17
+ - minimum needed R version is now bumped to ` 3.5 ` (#986 ).
19
18
20
19
- alignment is now detected for function declaration in a similar way as for
21
- function calls (#968 ).
20
+ function calls (#968 ).
22
21
- new R option ` styler.ignore_alignment ` controls if alignment should be
23
- detected (and preserved) or not (#932 ).
22
+ detected (and preserved) or not (#932 ).
24
23
25
24
26
25
** Bug Fixes**
27
26
28
27
- alignment is detected in ` tibble::tribble() ` (and similar) calls with more
29
- than 3 columns when left aligned (#945 ).
28
+ than 3 columns when left aligned (#945 ).
30
29
31
- - Fix alignment detection for one column, mixed named/unnamed (#1035 ).
30
+ - fix alignment detection for one column, mixed named/unnamed (#1035 ).
32
31
33
- - If there are only empty lines in a code chunk, they are all removed (#936 ).
32
+ - if there are only empty lines in a code chunk, they are all removed (#936 ).
34
33
35
34
- apply rules for [ to [[ and its closing counterpair (#1030 )
36
35
37
- - There is now at most one line break after ` { ` and before ` # ` (#952 , #1022 ).
36
+ - there is now at most one line break after ` { ` and before ` # ` (#952 , #1022 ).
38
37
39
- - Line breaks may be added to function calls to ensure indention symmetry for
40
- round braces (#975 ).
38
+ - line breaks may be added to function calls to ensure indention symmetry for
39
+ round braces (#975 ).
41
40
42
41
- the cache is also invalidated on changing the stylerignore markers (#932 ).
43
42
44
43
- ` { ` is not put on a new line after ` = ` and in ` function() { ` for some edge
45
44
cases (#939 ).
46
45
47
46
- ` while ({}) ` statements are now handled the same way as function statements
48
- with regards to breaking lines (#967 ).
47
+ with regards to breaking lines (#967 ).
49
48
50
- - Parsing of {roxygen2} example comments now also works for edge cases when
51
- there is no literal code immediately following after the end of the example
52
- section (#940 ).
49
+ - parsing of {roxygen2} example comments now also works for edge cases when
50
+ there is no literal code immediately following after the end of the example
51
+ section (#940 ).
53
52
54
- - Files with no tokens in it are now transformed into zero-byte files (#962 ).
53
+ - files with no tokens in it are now transformed into zero-byte files (#962 ).
55
54
56
55
** Documentation**
57
56
58
- - Old (and outdated) vignettes have been removed (#955 ). To
59
- access them, do ` git checkout v1.0.0 ` .
60
- - Minor improvements to the documentation (#958 ).
61
- - turned off ` styler.print.Vertical ` in vignettes so ANSI output of
57
+ - old (and outdated) vignettes have been removed (#955 ). To access them, do
58
+ ` git checkout v1.0.0 ` .
59
+ - minor improvements to the documentation (#958 ).
60
+ - turned off ` styler.colored_print.vertical ` in vignettes so ANSI output of
62
61
{prettycode} not messing with {pkgdown} (#956 , #957 ).
63
62
64
63
65
64
** Performance and code quality improvements**
66
65
67
- - Use integer literals and avoid coercions where needed (#994 ).
68
- - Don 't preserve names for ` unlist() ` (#998 ).
69
- - Remove unused variables (#999 ).
70
- - Get rid of lints with performance implications (#1000 ).
71
- - Use more efficient match() alternative (#1001 ).
72
- - Don 't use ` nrow ` arg in ` new_tibble() ` calls (#1003 ).
73
- - Performance improvements with ` if() ` + ` else() ` instead of ` ifelse() ` (#1006 ).
74
- - Replace tibbles with data frames to improve performance (#1007 ).
75
- - Simplify ` styler_df() ` signature (#1009 ).
76
- - Minor cleanup (#1016 ).
77
- - Non -exported and unused functions ` odd() ` and ` even() ` were removed
66
+ - use integer literals and avoid coercions where needed (#994 ).
67
+ - don 't preserve names for ` unlist() ` (#998 ).
68
+ - remove unused variables (#999 ).
69
+ - get rid of lints with performance implications (#1000 ).
70
+ - use more efficient match() alternative (#1001 ).
71
+ - don 't use ` nrow ` arg in ` new_tibble() ` calls (#1003 ).
72
+ - performance improvements with ` if() ` + ` else() ` instead of ` ifelse() ` (#1006 ).
73
+ - replace tibbles with data frames to improve performance (#1007 ).
74
+ - simplify ` styler_df() ` signature (#1009 ).
75
+ - minor cleanup (#1016 ).
76
+ - non -exported and unused functions ` odd() ` and ` even() ` were removed
78
77
(#989 ).
79
- - All (R)md files in this project's source code are now formatted with
80
- default pandoc markdown formatter. This conversion is required when using
81
- the visual mode in RStudio (#941 ).
82
- - Improved code quality by fixing {lintr} warnings (#960 , #1028 ).
78
+ - all (R)md files in this project's source code are now formatted with default
79
+ pandoc markdown formatter. This conversion is required when using the visual
80
+ mode in RStudio (#941 ).
81
+ - improved code quality by fixing {lintr} warnings (#960 , #1028 ).
83
82
84
83
85
84
** Dependency related changes**
86
85
87
86
In total, 8 recursive dependencies are removed: {ellipsis}, {pillar},
88
87
{rematch2}, {tibble}, {utf8}, {fansi}, {lifecycle}, {pkgconfig}.
89
88
90
- - Don 't import entire tibble package (#1007 ).
91
- - Drop {rematch2} dependency (#1011 ).
89
+ - don 't import entire tibble package (#1007 ).
90
+ - drop {rematch2} dependency (#1011 ).
92
91
93
92
94
93
** Infrastructure**
95
94
96
- - Upgrade testing infra to testthat 3e (#949 ).
97
- - Run tests in parallel (#978 ).
98
- - Run some tests sequentially (#1031 )
99
- - Better stack tracing for profiling (#979 , #980 ).
100
- - Add flags to skip code coverage for zzz.R (#1005 ).
101
- - Error now on R CMD note (#987 ).
102
- - Test on latest Ubuntu instead of Ubuntu 18.04 (#982 ).
103
- - Use latest GitHub Actions for R (#1034 ).
104
- - Update {pkgdown} action to always build, but only deploy on default branch
105
- (#946 ).
95
+ - upgrade testing infra to testthat 3e (#949 ).
96
+ - run tests in parallel (#978 ).
97
+ - run some tests sequentially (#1031 )
98
+ - better stack tracing for profiling (#979 , #980 ).
99
+ - add flags to skip code coverage for zzz.R (#1005 ).
100
+ - error now on R CMD note (#987 ).
101
+ - test on latest Ubuntu instead of Ubuntu 18.04 (#982 ).
102
+ - use latest GitHub Actions for R (#1034 ).
103
+ - update {pkgdown} action to always build, but only deploy on default branch
104
+ (#946 ).
106
105
- remove pre-commit push hook for news entry (#1023 ).
107
106
108
107
A big hand to everyone who made this release possible:
0 commit comments