Skip to content

Commit 897cafd

Browse files
Merge pull request #924 from r-lib/pre-commit-autoupdate
Fix pre-commit
2 parents 60d3866 + 6f27fac commit 897cafd

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ default_stages: [commit]
44

55
repos:
66
- repo: https://github.com/lorenzwalthert/precommit
7-
rev: v0.2.2.9009
7+
rev: b2a735b
88
hooks:
99
- id: style-files
10-
args: [--style_pkg=styler, --style_fun=tidyverse_style]
10+
args: ['--ignore-start="^# styler: on$"', '--ignore-stop="^# styler: off$"']
1111
exclude: >
1212
(?x)^(
1313
tests/testthat/.*/.*\.R(md|nw)?|

R/nest.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ add_terminal_token_before <- function(pd_flat) {
273273
left_join(pd_flat, ., by = "id")
274274
}
275275

276+
276277
#' Initialise variables related to caching
277278
#'
278279
#' Note that this does function must be called in [compute_parse_data_nested()]

R/utils.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ option_read <- function(x, default = NULL, error_if_not_found = TRUE) {
100100
if (x %in% names(options()) | !error_if_not_found) {
101101
getOption(x, default)
102102
} else {
103-
rlang::abort(paste("R option", x, "most be set."))
103+
rlang::abort(paste("R option", x, "must be set."))
104104
}
105105
}
106106

0 commit comments

Comments
 (0)