@@ -139,13 +139,13 @@ tidyverse_style <- function(scope = "tokens",
139
139
140
140
indention_modifier <-
141
141
lst(
142
- update_indention_ref_fun_dec =
142
+ update_indention_ref_fun_dec =
143
143
if (scope > = " indention" ) update_indention_ref_fun_dec
144
144
)
145
145
146
146
create_style_guide(
147
147
# transformer functions
148
- initialize = lst( default_style_guide_attributes ) ,
148
+ initialize = default_style_guide_attributes ,
149
149
line_break = line_break_manipulators ,
150
150
space = space_manipulators ,
151
151
token = token_manipulators ,
@@ -163,7 +163,7 @@ tidyverse_style <- function(scope = "tokens",
163
163
# ' transformer function corresponds to one styling rule. The output of this
164
164
# ' function can be used as an argument for \code{style} in top level functions
165
165
# ' like [style_text()] and friends.
166
- # ' @param initialize A list of functions that initializes various
166
+ # ' @param initialize The bare name of a function that initializes various
167
167
# ' variables on each level of nesting.
168
168
# ' @param line_break A list of transformer functions that manipulate line_break
169
169
# ' information.
@@ -187,7 +187,7 @@ tidyverse_style <- function(scope = "tokens",
187
187
# ' style_text("a <- function(x) { x }", style = set_line_break_before_curly_opening_style)
188
188
# ' @importFrom purrr compact
189
189
# ' @export
190
- create_style_guide <- function (initialize = lst( default_style_guide_attributes ) ,
190
+ create_style_guide <- function (initialize = default_style_guide_attributes ,
191
191
line_break = NULL ,
192
192
space = NULL ,
193
193
token = NULL ,
@@ -196,7 +196,7 @@ create_style_guide <- function(initialize = lst(default_style_guide_attributes),
196
196
reindention = tidyverse_reindention()) {
197
197
lst(
198
198
# transformer functions
199
- initialize ,
199
+ initialize = lst( initialize ) ,
200
200
line_break ,
201
201
space ,
202
202
token ,
0 commit comments