Skip to content

Commit 4e8a248

Browse files
minor consistency edits
1 parent 3f3ab1c commit 4e8a248

File tree

5 files changed

+11
-10
lines changed

5 files changed

+11
-10
lines changed

NEWS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
style tokens, you had to always also style spaces, indention, line breaks as
2222
well (#705, #707).
2323

24-
- New argument `transformer_drop` in `create_style_guide()` to be populated with
25-
new helper function `specify_transformer_dropping()` for specifying conditions
24+
- New argument `transformers_drop` in `create_style_guide()` to be populated with
25+
new helper function `specify_transformers_drop()` for specifying conditions
2626
under which transformers are not going to be used and can therefore be
2727
omitted without effecting the result of styling (#711).
2828

R/style-guides.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ create_style_guide <- function(initialize = default_style_guide_attributes,
350350
#' to add a rule for when to drop it, it will not be dropped. If we required to
351351
#' specify the complement (which tokens must be present for the transformer to
352352
#' be kept), the transformer would be silently removed, which is less save.
353-
#' @param spaces,indention,line_breaks,tokens Each a list or `NULL` where
353+
#' @param spaces,indention,line_breaks,tokens Each a list (or `NULL`) where
354354
#' the name of each element is the concerning transformer, the value is an
355355
#' unnamed vector with tokens that match the rule. See 'Examples'.
356356
#'

R/testing.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,8 +342,10 @@ cache_more_specs_default <- function() {
342342
cache_more_specs(include_roxygen_examples = TRUE, base_indention = 0)
343343
}
344344

345-
#' Check if the transformers_drop in [create_style_guide()] is consistent
346-
#' with the transformers specified.
345+
#' Test `transformers_drop` for consistency
346+
#'
347+
#' Check if the argument `transformers_drop` in [create_style_guide()] is
348+
#' consistent with the transformers specified in that function.
347349
#' @param transformers The output of [create_style_guide()] we want to test.
348350
#' @keywords internal
349351
test_transformers_drop <- function(transformers) {

man/specify_transformers_drop.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/test_transformers_drop.Rd

Lines changed: 3 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)