Skip to content

Commit

Permalink
Merge pull request #1183 from r-lib/rc-1.10.3
Browse files Browse the repository at this point in the history
Release {styler} 1.10.3
  • Loading branch information
lorenzwalthert authored Apr 8, 2024
2 parents 208d9c7 + 54df59b commit ff23a18
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 7 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: styler
Title: Non-Invasive Pretty Printing of R Code
Version: 1.10.2.9000
Version: 1.10.3
Authors@R:
c(person(given = "Kirill",
family = "Müller",
Expand Down
32 changes: 32 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,37 @@
<!-- NEWS.md is maintained by https://cynkra.github.io/fledge, do not edit -->

# styler 1.10.3

This release was requested by the CRAN team since parser error messages changed,
which were hard-coded in some unit tests (#1180).

**Minor changes**

- Add a package sticker (#1172, #1173).
- Improve error message for scope (#1176).
- Update lintr config and address newly found lints (#1158).
- Fix new lints about implicit return (#1166).
- Clean new lints (#1149).
- Clean up unnecessary YAML front matter in README (#1165).

**CI**

- Update pre-commit and GitHub Actions (#1177, #1175, #1171, #1171, #1164, #1152, #1148).
- Delete URL check workflow (#1160).

**Testing**

- Suppress warning in io tests (#1169).
- Ensure unit tests check for appropriate error messages in the R parser for
R > 4.3 (#1180).
- Remove outdated test about repeated parsing (#1163).
- Update roxygen test comments (#1162).
- Delete unused snapshot (#1159).

We thank everyone who helped making this release possible.

[&#x0040;AshesITR](https://github.com/AshesITR), [&#x0040;averissimo](https://github.com/averissimo), [&#x0040;IndrajeetPatil](https://github.com/IndrajeetPatil), [&#x0040;lorenzwalthert](https://github.com/lorenzwalthert), [&#x0040;mcanouil](https://github.com/mcanouil), [&#x0040;moodymudskipper](https://github.com/moodymudskipper), [&#x0040;olivroy](https://github.com/olivroy), [&#x0040;sbanville-delfi](https://github.com/sbanville-delfi), [&#x0040;sorhawell](https://github.com/sorhawell), [&#x0040;ssh352](https://github.com/ssh352), [&#x0040;swo](https://github.com/swo), and [&#x0040;vertesy](https://github.com/vertesy).

# styler 1.10.2

This release was requested by the CRAN team to fix CRAN warning on invalid
Expand Down
11 changes: 8 additions & 3 deletions R/zzz.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,14 @@
)
toset <- !(names(op.styler) %in% names(op))
if (any(toset)) options(op.styler[toset])
ask_to_switch_to_non_default_cache_root()
remove_cache_old_versions()
remove_old_cache_files()
rlang::try_fetch(
{
ask_to_switch_to_non_default_cache_root()
remove_cache_old_versions()
remove_old_cache_files()
},
error = function(...) NULL
)
invisible()
}

Expand Down
6 changes: 3 additions & 3 deletions cran-comments.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ editor_options:
wrap: 79
---

This is a release requested by the CRAN team to comply with
`R_CHECK_STOP_ON_INVALID_NUMERIC_VERSION_INPUTS`.
This is a release requested by the CRAN team to comply with new error messages
in the R parser that caused unit tests to fail.


## Test environments
Expand Down Expand Up @@ -36,7 +36,7 @@ compliant with the requirements of CRAN.

## Downstream Dependencies

I also ran R CMD check on all 39 downstream dependencies of styler using the
I also ran R CMD check on all 47 downstream dependencies of styler using the
revdepcheck package.

All of them finished R CMD CHECK with the same number of ERRORS, WARNINGS and
Expand Down

0 comments on commit ff23a18

Please # to comment.