Skip to content

Commit 2fc151e

Browse files
Merge pull request #1036 from r-lib/rc-1.8.0
Release package version 1.8.0
2 parents 990a031 + f832104 commit 2fc151e

File tree

4 files changed

+92
-86
lines changed

4 files changed

+92
-86
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Type: Package
22
Package: styler
33
Title: Non-Invasive Pretty Printing of R Code
4-
Version: 1.7.0.9003
4+
Version: 1.8.0
55
Authors@R:
66
c(person(given = "Kirill",
77
family = "Müller",

NEWS.md

Lines changed: 83 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,101 +1,116 @@
11
<!-- NEWS.md is maintained by https://cynkra.github.io/fledge, do not edit -->
22

3-
# styler 1.7.0.9003
43

5-
**Performance and code quality improvements**
4+
# styler 1.8.0
65

7-
- Use integer literals and avoid coercions where needed (\@IndrajeetPatil, #994).
8-
- Don't preserve names for `unlist()` (\@IndrajeetPatil, #998).
9-
- Remove unused variables (\@IndrajeetPatil, #999).
10-
- Get rid of lints with performance implications (\@IndrajeetPatil, #1000).
11-
- Use more efficient match() alternative (\@IndrajeetPatil, #1001).
12-
- Don't use `nrow` arg in `new_tibble()` calls (\@IndrajeetPatil, #1003).
13-
- Performance improvements with `if()` + `else()` instead of `ifelse()` (\@IndrajeetPatil, #1006).
14-
- Replace tibbles with data frames to improve performance (\@IndrajeetPatil, #1007).
15-
- Simplify `styler_df()` signature (\@IndrajeetPatil, #1009).
16-
- Minor cleanup (\@IndrajeetPatil, #1016).
6+
{styler} 1.8.0 comes with a host of new features, around 40% speed improvement,
7+
bug fixes and the removal of 8 recursive dependencies. We also welcome
8+
\@IndrajeetPatil as a new contributor to {styler}, who has contributed
9+
significantly to this and and previous releases.
1710

11+
**Features**
1812

19-
**Dependency related changes**
13+
- `style_dir()` and `style_pkg()` now default to styling all supported file
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).
2018

21-
- Don't import entire tibble package (\@IndrajeetPatil, #1007).
22-
- Drop {rematch2} dependency (\@IndrajeetPatil, #1011).
19+
- alignment is now detected for function declaration in a similar way as for
20+
function calls (#968).
21+
- new R option `styler.ignore_alignment` controls if alignment should be
22+
detected (and preserved) or not (#932).
2323

24-
**Other changes**
2524

26-
- Add flags to skip code coverage for zzz.R (\@IndrajeetPatil, #1005).
25+
**Bug Fixes**
2726

27+
- alignment is detected in `tibble::tribble()` (and similar) calls with more
28+
than 3 columns when left aligned (#945).
2829

29-
# styler 1.7.0.9002 (Development version)
30+
- fix alignment detection for one column, mixed named/unnamed (#1035).
3031

31-
- Same as previous version.
32+
- if there are only empty lines in a code chunk, they are all removed (#936).
3233

34+
- apply rules for [ to [[ and its closing counterpair (#1030)
3335

34-
# styler 1.7.0.9000
36+
- there is now at most one line break after `{` and before `#` (#952, #1022).
3537

36-
**User-facing changes**
38+
- line breaks may be added to function calls to ensure indention symmetry for
39+
round braces (#975).
3740

38-
- `style_dir()` and `style_pkg()` now default to styling all supported file
39-
formats (`.R`, `.Rmd`, `.Rmarkdown`, `.Rnw`, and `.qmd`) in the (package)
40-
directory (\@IndrajeetPatil, #965, #931).
41-
- `style_pkg()` now excludes the auto-generated `R/cpp11.R` file (#977).
42-
- Minimum needed R version is now bumped to `3.5` (\@IndrajeetPatil, #986).
41+
- the cache is also invalidated on changing the stylerignore markers (#932).
4342

44-
**Features**
43+
- `{` is not put on a new line after `=` and in `function() {` for some edge
44+
cases (#939).
4545

46-
- alignment is now detected for function declaration in a similar way as for
47-
function calls (#968).
48-
- new R option `styler.ignore_alignment` controls if alignment should be
49-
detected (and preserved) or not (#932).
46+
- `while ({})` statements are now handled the same way as function statements
47+
with regards to breaking lines (#967).
5048

51-
**Bug Fixes**
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).
5252

53-
- alignment is detected in `tibble::tribble()` (and similar) calls with more
54-
than 3 columns when left aligned (#945).
53+
- files with no tokens in it are now transformed into zero-byte files (#962).
54+
55+
**Documentation**
56+
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
61+
{prettycode} not messing with {pkgdown} (#956, #957).
5562

56-
- If there are only empty lines in a code chunk, they are all removed (#936).
5763

58-
- There is now always one line break after `{` and before `#` (#952).
64+
**Performance and code quality improvements**
5965

60-
- Line breaks may be added to function calls to ensure indention symmetry for
61-
round braces (#975).
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
77+
(#989).
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).
6282

63-
- the cache is also invalidated on changing the stylerignore markers (#932).
6483

65-
- `{` is not put on a new line after `=` and in `function() {` for some edge
66-
cases (#939).
84+
**Dependency related changes**
6785

68-
- `while ({})` statements are now handled the same way as function statements
69-
with regards to breaking lines (#967).
86+
In total, 8 recursive dependencies are removed: {ellipsis}, {pillar},
87+
{rematch2}, {tibble}, {utf8}, {fansi}, {lifecycle}, {pkgconfig}.
7088

71-
- Parsing of {roxygen2} example comments now also works for edge cases when
72-
there is no literal code immediately following after the end of the example
73-
section (#940).
89+
- don't import entire tibble package (#1007).
90+
- drop {rematch2} dependency (#1011).
7491

75-
- Files with no tokens in it are now transformed into zero-byte files (#962).
7692

77-
**Other**
93+
**Infrastructure**
7894

79-
- \@IndrajeetPatil is now a contributor to {styler}. Welcome and thanks for
80-
everything you did so far! (#988).
81-
- Old (and outdated) vignettes have been removed (\@IndrajeetPatil, #955). To
82-
access them, do `git checkout v1.0.0`.
83-
- Minor improvements to the documentation (\@IndrajeetPatil, #958).
84-
- turned off `styler.print.Vertical` in vignettes so ANSI output of
85-
{prettycode} not messing with {pkgdown} (\@IndrajeetPatil, #956, #957).
86-
- Non-exported and unused functions `odd()` and `even()` were removed
87-
(\@IndrajeetPatil, #989).
88-
- Upgrade testing infra to testthat 3e (\@IndrajeetPatil, #949).
89-
- All (R)md files in this project's source code are now formatted with
90-
default pandoc markdown formatter. This conversion is required when using
91-
the visual mode in RStudio (#941).
92-
- Update {pkgdown} action to always build, but only deploy on default branch
93-
(#946).
94-
- Better stack tracing for profiling (#979, #980).
95-
- Improved code quality by fixing {lintr} warnings (#960).
96-
- Error now on R CMD note (\@IndrajeetPatil, #987).
97-
- Test on latest Ubuntu instead of Ubuntu 18.04 (#982).
98-
- Run tests in parallel (#978, \@krlmlr).
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).
105+
- remove pre-commit push hook for news entry (#1023).
106+
107+
A big hand to everyone who made this release possible:
108+
109+
[&#x0040;behrman](https://github.com/behrman),
110+
[&#x0040;EngineerDanny](https://github.com/EngineerDanny), [&#x0040;gavinsimpson](https://github.com/gavinsimpson), [&#x0040;IndrajeetPatil](https://github.com/IndrajeetPatil), [&#x0040;jabenninghoff](https://github.com/jabenninghoff),
111+
[&#x0040;krlmlr](https://github.com/krlmlr),
112+
[&#x0040;lorenzwalthert](https://github.com/lorenzwalthert), [&#x0040;MichaelChirico](https://github.com/MichaelChirico), [&#x0040;moodymudskipper](https://github.com/moodymudskipper), [&#x0040;RaymondBalise](https://github.com/RaymondBalise), [&#x0040;Robinlovelace](https://github.com/Robinlovelace), [&#x0040;sebffischer](https://github.com/sebffischer),
113+
[&#x0040;sgorm123](https://github.com/sgorm123), [&#x0040;stefanoborini](https://github.com/stefanoborini), and [&#x0040;wdkrnls](https://github.com/wdkrnls).
99114

100115
# styler 1.7.0
101116

cran-comments.md

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,11 @@ editor_options:
44
wrap: 79
55
---
66

7-
This release does not check for a specific error message from `parse()` anymore
8-
when the input involves unparsable use of `_`. The release was requested by
9-
Luke Tierney.
10-
117
## Test environments
128

13-
- ubuntu 20.04 (on GitHub Actions): R devel, R 4.1.2, R 4.0.5, R 3.6, R 3.5,
14-
R 3.4
15-
- Windows Server 10 (on GitHub Actions): R 3.6, R 4.0.5
9+
- ubuntu 20.04 (on GitHub Actions): R devel, R 4.2.1, 4.1.2, R 4.0.5, R 3.6,
10+
R 3.5.
11+
- Windows Server 10 (on GitHub Actions): R devel, R 4.2.1, R 4.1.2, R 3.6.
1612
- win-builder: R devel
1713

1814
## R CMD check results
@@ -35,15 +31,7 @@ compliant with the requirements of CRAN.
3531

3632
## Downstream Dependencies
3733

38-
I also ran R CMD check on all downstream dependencies of styler using the
39-
revdepcheck package. The downstream dependencies are:
40-
41-
- Reverse imports: biocthis, boomer, exampletestr, flow, iNZightTools,
42-
languageserver, questionr, shinymeta, shinyobjects, ShinyQuickStarter,
43-
systemPipeShiny, tidypaleo.
44-
45-
- Reverse suggests: admiral, autothresholdr, crunch, datastructures, drake,
46-
epigraphdb, ghclass, knitr, multiverse, nph, precommit, reprex,
47-
shiny.react, shinydashboardPlus, shinyMonacoEditor, upsetjs, usethis.
34+
I also ran R CMD check on all 39 downstream dependencies of styler using the
35+
revdepcheck package.
4836

4937
All of them finished R CMD CHECK with zero (0) ERRORS, WARNINGS and NOTES.

inst/WORDLIST

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ coercions
2727
compat
2828
config
2929
CONST
30+
counterpair
3031
coventions
3132
covr
3233
cpp
@@ -63,6 +64,7 @@ examplesIf
6364
exampletestr
6465
expr
6566
expr EQ
67+
fansi
6668
fileext
6769
filetype
6870
forcond
@@ -150,6 +152,7 @@ patilindrajeet
150152
patilindrajeets
151153
pgkdown
152154
pkgapi
155+
pkgconfig
153156
pkgdown
154157
pkgs
155158
pos

0 commit comments

Comments
 (0)