Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release {styler} 1.10.3 #1183

Merged
merged 3 commits into from
Apr 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading