Skip to content

Commit 696663d

Browse files
upgrade pre-commit to stable release that does not contain reference to bleeding lintr
1 parent aca7223 commit 696663d

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ default_language_version:
66

77
repos:
88
- repo: https://github.com/lorenzwalthert/precommit
9-
rev: f3498c421d68a1db26de1a1fe3ecc91dd6f03b5e
9+
rev: v0.3.2.9019
1010
hooks:
1111
- id: style-files
1212
args:

R/nest.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ nest_parse_data <- function(pd_flat) {
343343

344344
rhs <- nest_(child, "child", setdiff(names(child), "parent_"))
345345

346-
nested <- left_join(internal, rhs, by = c("id" = "parent_"))
346+
nested <- left_join(internal, rhs, by = c(id = "parent_"))
347347

348348
children <- nested$child
349349
for (i in seq_along(children)) {

R/testing.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ local_test_setup <- function(cache = FALSE,
327327
.local_envir = parent.frame()) {
328328
current_cache <- cache_info(format = "tabular")
329329
withr::local_options(
330-
list("styler.quiet" = TRUE, "R.cache.rootPath" = tempfile()),
330+
list(styler.quiet = TRUE, R.cache.rootPath = tempfile()),
331331
.local_envir = .local_envir
332332
)
333333
if (cache) {

R/ui-caching.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ cache_info <- function(cache_name = NULL, format = "both") {
138138
#' @export
139139
cache_activate <- function(cache_name = NULL,
140140
verbose = !getOption("styler.quiet", FALSE)) {
141-
options("styler.cache_name" = cache_name %||% styler_version)
141+
options(styler.cache_name = cache_name %||% styler_version)
142142
path <- cache_find_path(cache_name)
143143

144144
if (verbose) {
@@ -155,7 +155,7 @@ cache_activate <- function(cache_name = NULL,
155155
#' @rdname cache_activate
156156
#' @export
157157
cache_deactivate <- function(verbose = !getOption("styler.quiet", FALSE)) {
158-
options("styler.cache_name" = NULL)
158+
options(styler.cache_name = NULL)
159159

160160
if (verbose) {
161161
cat("Deactivated cache.\n")

0 commit comments

Comments
 (0)