Skip to content

Commit 437efd2

Browse files
Merge pull request #556 from lorenzwalthert/r-1.2.0
-release v1.2.0
2 parents 6d9e330 + 66748e5 commit 437efd2

10 files changed

+22
-19
lines changed

DESCRIPTION

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

NEWS.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# styler 1.1.1.9000
1+
# styler 1.2.0
22

33
## Breaking changes
44

@@ -7,18 +7,18 @@
77
This is also reflected in the invisible return value of the function (#522).
88

99
* `style_file()` and friends do not write content back to a file when styling
10-
does not cause any changes in the file. This means the modification date of
11-
files styled is only changed when the content is changed (#532).
10+
does not cause any changes in the file. This means the modification date of
11+
styled files is only changed when the content is changed (#532).
1212

1313
## New features
1414

1515
* Aligned function calls are detected and kept as is if they match the styler
1616
[definition for aligned function calls](https://styler.r-lib.org/articles/detect-alignment.html)
1717
(#537).
1818

19-
* curly-curly (`{{`) syntactic sugar introduced with rlang 0.4.0 is now
20-
explicitly handled, as opposed previously where it was just treated as two
21-
consecutive curly braces (#528).
19+
* curly-curly (`{{`) syntactic sugar introduced with rlang 0.4.0 is now
20+
explicitly handled, where previously it was just treated as two consecutive
21+
curly braces (#528).
2222

2323
* `style_pkg()`, `style_dir()` and the Addins can now style `.Rprofile`, and
2424
hidden files are now also styled (#530).
@@ -33,7 +33,7 @@
3333

3434
* Escape characters in roxygen code examples are now correctly escaped (#512).
3535

36-
* Special characters such as `\n` in strings are now preseved in text and not
36+
* Special characters such as `\n` in strings are now preserved in text and not
3737
turned into literal values like a line break (#554).
3838

3939
* Style selection Addin now preserves line break when the last line selected is
@@ -51,6 +51,10 @@
5151
* styler is now available through the pre-commit hook `style-files` in
5252
https://github.com/lorenzwalthert/pre-commit-hooks.
5353

54+
Thanks to all contributors involved, in particular
55+
56+
[@Banana1530](https://github.com/Banana1530), [@batpigandme](https://github.com/batpigandme), [@cpsievert](https://github.com/cpsievert), [@ellessenne](https://github.com/ellessenne), [@Emiller88](https://github.com/Emiller88), [@hadley](https://github.com/hadley), [@IndrajeetPatil](https://github.com/IndrajeetPatil), [@krlmlr](https://github.com/krlmlr), [@lorenzwalthert](https://github.com/lorenzwalthert), [@lwjohnst86](https://github.com/lwjohnst86), [@michaelquinn32](https://github.com/michaelquinn32), [@mine-cetinkaya-rundel](https://github.com/mine-cetinkaya-rundel), [@Moohan](https://github.com/Moohan), [@nxskok](https://github.com/nxskok), [@oliverbeagley](https://github.com/oliverbeagley), [@pat-s](https://github.com/pat-s), [@reddy-ia](https://github.com/reddy-ia), and [@russHyde](https://github.com/russHyde)
57+
5458
# styler 1.1.1
5559

5660
This is primarily a maintenance release upon the request of the CRAN team

R/detect-alignment-utils.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ alignment_serialize <- function(pd_sub) {
140140
}
141141
}
142142

143-
#' Check if spacing around comma is correcr
143+
#' Check if spacing around comma is correct
144144
#'
145145
#' At least one space after comma, none before, for all but the last comma on
146146
#' the line

R/rules-spacing.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#' Set spaces around operators
22
#'
3-
#' Alignement is kept, if detected.
3+
#' Alignment is kept, if detected.
44
#' @include token-define.R
55
#' @keywords internal
66
#' @include token-define.R

R/testing.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ testthat_file <- function(...) {
196196
file.path(rprojroot::find_testthat_root_file(), ...)
197197
}
198198

199-
#' Convert a serialized R object to a certaion verion.
199+
#' Convert a serialized R object to a certaion version.
200200
#'
201201
#' Needed to make [testthat::expect_known_value()] work on R < 3.6.
202202
#' @param path A path to an rds file.

cran-comments.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Test environments
22

3-
* local OS X install (10.14.3): R 3.6
3+
* local OS X install (10.14.6): R 3.6.0
44
* ubuntu 14.04 (on travis-ci): R devel, R 3.6, R 3.5, R 3.4, R 3.2
55
* r-hub: R devel (Windows and Linux) and R 3.6 (Windows and Linux).
66
* win-builder: R devel, R 3.6
@@ -13,9 +13,8 @@
1313

1414
I also ran R CMD check on all downstream dependencies of styler using the
1515
revdepcheck package. The
16-
downstream dependencies are: exampletestr, languageserver, autothresholdr,
17-
crunch, detrendr, drake, knitr, nandb, reprex, shinydashboardPlus,
18-
tradestatistics, usethis.
16+
downstream dependencies are: exampletestr, languageserver, crunch,
17+
drake, knitr, nph, reprex, shinydashboardPlus, tradestatistics, usethis.
1918

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

man/alignment_has_correct_spacing_around_comma.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/rds_to_version.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/set_space_around_op.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/testthat/test-start_line.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
context("start token")
22

3-
test_that("leading spaces are preseved at start of text", {
3+
test_that("leading spaces are preserved at start of text", {
44
expect_warning(test_collection("start_line",
55
transformer = style_empty, write_back = TRUE), NA)
66
})

0 commit comments

Comments
 (0)