Skip to content

Commit 138ff0f

Browse files
Merge pull request #820 from lorenzwalthert/rc-v1.5.0
- Release styler 1.5.0 (#820)
2 parents c7c978e + 9abed49 commit 138ff0f

File tree

7 files changed

+17
-14
lines changed

7 files changed

+17
-14
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.4.1.9003
4+
Version: 1.5.1
55
Authors@R:
66
c(person(given = "Kirill",
77
family = "Müller",

NEWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# styler 1.4.1.9000 (Development version)
1+
# styler 1.5.1
22

33
## Alignment detection
44

R/set-assert-args.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ set_arg_write_tree <- function(write_tree) {
2121
#' @inheritParams make_transformer
2222
#' @keywords internal
2323
assert_transformers <- function(transformers) {
24-
version_cutoff <- 1.5
24+
version_cutoff <- 2.0
2525
no_name <- is.null(transformers$style_guide_name)
2626
no_version <- is.null(transformers$style_guide_version)
2727
if (no_name || no_version) {

R/transform-code.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ identify_raw_chunks <- function(lines, filetype, engine_pattern = get_engine_pat
9090
starts <- grep("^[\t >]*```+\\s*\\{([Rr]( *[ ,].*)?)\\}\\s*$", lines, perl = TRUE)
9191
ends <- grep("^[\t >]*```+\\s*$", lines, perl = TRUE)
9292
ends <- purrr::imap_int(starts, ~ ends[which(ends > .x)[1]]) %>%
93-
na.omit()
93+
stats::na.omit()
9494
if (length(starts) != length(ends) || anyDuplicated(ends) != 0) {
9595
abort("Malformed file!")
9696
}

cran-comments.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
This is a follow-up release to version 1.4.0 (2021-03-22) because a major bug
2-
(https://github.com/r-lib/styler/issues/763) had to be resolved. The last
3-
update of styler was more than a year ago.
41

52
## Test environments
63

74
* local OS X install (10.15.7): R 4.0.3
8-
* ubuntu 16.04 (on GitHub Actions): R devel, R 4.0.3, R 3.6, R 3.5, R 3.4, R 3.3
5+
* ubuntu 18.04 (on GitHub Actions): R devel, R 4.0.3, R 3.6, R 3.5, R 3.4, R 3.3
96
* Windows Server 10 (on GitHub Actions): R 3.6, R 4.0.3
107
* win-builder: R devel
118

@@ -35,11 +32,14 @@ I also ran R CMD check on all downstream dependencies of styler using the
3532
revdepcheck package. The
3633
downstream dependencies are:
3734

38-
* Reverse imports: biocthis, exampletestr, languageserver, questionr,
39-
shinyobjects, ShinyQuickStarter, systemPipeShiny.
40-
* Reverse suggests: autothresholdr, crunch, datastructures, drake, epigraphdb,
41-
knitr, netReg, nph, precommit, reprex, shinydashboardPlus, shinyMonacoEditor,
42-
usethis
35+
* Reverse imports: biocthis, exampletestr, iNZightTools, languageserver,
36+
questionr, shinymeta, shinyobjects, ShinyQuickStarter, systemPipeShiny,
37+
tidypaleo.
38+
39+
* Reverse suggests: autothresholdr, crunch, datastructures, drake, epigraphdb,
40+
knitr, multiverse, nph, precommit, reprex, shinydashboardPlus,
41+
shinyMonacoEditor, usethis.
42+
4343

4444
All of them finished R CMD CHECK with the same number of ERRORS, WARNINGS and
4545
NOTES as with the current CRAN version of styler, which means the new

inst/WORDLIST

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ innode
8686
integrations
8787
interaces
8888
invasiveness
89+
iNZightTools
8990
io
9091
ixmypi
9192
ized
@@ -193,6 +194,7 @@ setCacheRootPath
193194
setdiff
194195
setenv
195196
shinydashboardPlus
197+
shinymeta
196198
shinyMonacoEditor
197199
shinyobjects
198200
ShinyQuickStarter
@@ -217,6 +219,7 @@ testthat
217219
tibble
218220
tibbles
219221
tidyeval
222+
tidypaleo
220223
tidyr
221224
tidyverse
222225
Tidyverse

tests/testthat/test-exception_handling.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ test_that("style_file with no tokens returns empty string and warning", {
2525

2626
test_that("warning is given when transformers does not contain a version", {
2727
sg <- create_style_guide(style_guide_version = NULL)
28-
if (packageVersion("styler") < "1.5") {
28+
if (packageVersion("styler") < "2.0") {
2929
expect_fun <- expect_warning
3030
} else {
3131
expect_fun <- expect_error

0 commit comments

Comments
 (0)