File tree 3 files changed +4
-35
lines changed 3 files changed +4
-35
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,6 @@ S3method(print,canned_epipred)
55
55
S3method(print,epi_workflow)
56
56
S3method(print,flat_fcast)
57
57
S3method(print,flatline)
58
- S3method(print,frosting)
59
58
S3method(print,layer_add_forecast_date)
60
59
S3method(print,layer_add_target_date)
61
60
S3method(print,layer_naomit)
@@ -145,6 +144,8 @@ export(new_default_epi_recipe_blueprint)
145
144
export(new_epi_recipe_blueprint)
146
145
export(pivot_quantiles)
147
146
export(prep)
147
+ export(print_frosting)
148
+ export(print_preprocessor_recipe)
148
149
export(quantile_reg)
149
150
export(remove_frosting)
150
151
export(slather)
Original file line number Diff line number Diff line change @@ -398,6 +398,8 @@ kill_levels <- function(x, keys) {
398
398
x
399
399
}
400
400
401
+ # ' @export
402
+ # Currently only used in the workflow printing
401
403
print_preprocessor_recipe <- function (x ) {
402
404
403
405
recipe <- workflows :: extract_preprocessor(x )
Original file line number Diff line number Diff line change @@ -302,40 +302,6 @@ print_frosting <- function(x, ...) {
302
302
invisible (x )
303
303
}
304
304
305
- # Currently only used in the workflow printing
306
- print_frosting <- function (x , ... ) {
307
-
308
- layers <- x $ layers
309
- n_layers <- length(layers )
310
- layer <- ifelse(n_layers == 1L , " Layer" , " Layers" )
311
- n_layers_msg <- glue :: glue(" {n_layers} Frosting {layer}" )
312
- cat_line(n_layers_msg )
313
-
314
- if (n_layers == 0L ) return (invisible (x ))
315
-
316
- cat_line(" " )
317
-
318
- layer_names <- map_chr(layers , pull_layer_name )
319
-
320
- if (n_layers < = 10L ) {
321
- cli :: cat_bullet(layer_names )
322
- return (invisible (x ))
323
- }
324
-
325
- extra_layers <- n_layers - 10L
326
- layer_names <- layer_names [1 : 10 ]
327
-
328
- layer <- ifelse(extra_layers == 1L , " layer" , " layers" )
329
-
330
- extra_dots <- " ..."
331
- extra_msg <- glue :: glue(" and {extra_layers} more {layer}." )
332
-
333
- layer_names <- c(layer_names , extra_dots , extra_msg )
334
-
335
- cli :: cat_bullet(layer_names )
336
- invisible (x )
337
- }
338
-
339
305
print_postprocessor <- function (x ) {
340
306
if (! has_postprocessor_frosting(x )) return (invisible (x ))
341
307
You can’t perform that action at this time.
0 commit comments