Skip to content

Commit

Permalink
pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored and krlmlr committed Aug 21, 2022
1 parent 708563d commit 00d46c2
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 39 deletions.
24 changes: 12 additions & 12 deletions R/testing.R
Original file line number Diff line number Diff line change
Expand Up @@ -164,16 +164,16 @@ NULL
style_empty <- function(text, base_indention = 0) {
transformers <- list(
# transformer functions
initialize = list(
initialize = list(
default_style_guide_attributes = default_style_guide_attributes
),
line_break = NULL,
space = NULL,
token = NULL,
line_break = NULL,
space = NULL,
token = NULL,
# transformer options
use_raw_indention = FALSE,
reindention = specify_reindention(),
indent_character = " ",
reindention = specify_reindention(),
indent_character = " ",
NULL
)
transformed_text <- parse_transform_serialize_r(text,
Expand All @@ -188,18 +188,18 @@ style_empty <- function(text, base_indention = 0) {
style_op <- function(text, base_indention = 0) {
transformers <- list(
# transformer functions
initialize = list(
initialize = list(
default_style_guide_attributes = default_style_guide_attributes
),
line_break = NULL,
space = list(
line_break = NULL,
space = list(
indent_op = partial(indent_op, indent_by = 2)
),
token = NULL,
token = NULL,
# transformer options
use_raw_indention = FALSE,
reindention = specify_reindention(),
indent_character = " ",
reindention = specify_reindention(),
indent_character = " ",
NULL
)

Expand Down
2 changes: 1 addition & 1 deletion R/visit.R
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ make_visit_one <- function(funs) {
body <- rlang::call2("{", !!!all_calls)

env <- rlang::as_environment(funs, rlang::base_env())
rlang::new_function(rlang::pairlist2(pd_flat =), body, env)
rlang::new_function(rlang::pairlist2(pd_flat = ), body, env)
}

#' Propagate context to terminals
Expand Down
4 changes: 1 addition & 3 deletions man/visit.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 0 additions & 23 deletions man/visit_one.Rd

This file was deleted.

0 comments on commit 00d46c2

Please sign in to comment.