@@ -119,7 +119,7 @@ step_adjust_latency <-
119119 recipe $ steps ,
120120 function (recipe_step ) inherits(recipe_step , rel_step_type )
121121 ))) {
122- cli :: cli_abort(glue :: glue (
122+ cli :: cli_abort(paste (
123123 " There is no `{rel_step_type}` defined before this." ,
124124 " For the method `extend_{shift_name}` of `step_adjust_latency`," ,
125125 " at least one {shift_name} must be previously defined."
@@ -168,13 +168,13 @@ step_adjust_latency_new <-
168168# ' @export
169169prep.step_adjust_latency <- function (x , training , info = NULL , ... ) {
170170 if ((x $ method == " extend_ahead" ) && (! (" outcome" %in% info $ role ))) {
171- cli :: cli_abort(glue :: glue (
172- " If `method` is ` \" extend_ahead\" ` , then a step " ,
171+ cli :: cli_abort(paste (
172+ " If `method` is {.val extend_ahead} , then a step " ,
173173 " must have already added an outcome."
174174 ))
175175 } else if (! (" predictor" %in% info $ role )) {
176- cli :: cli_abort(glue :: glue (
177- " If `method` is ` \" extend_lags\" ` or ` \" locf\" ` , then a step " ,
176+ cli :: cli_abort(paste (
177+ " If `method` is {.val extend_lags} or {.val locf} , then a step " ,
178178 " must have already added a predictor."
179179 ))
180180 }
@@ -210,8 +210,8 @@ prep.step_adjust_latency <- function(x, training, info = NULL, ...) {
210210 ((time_type == " yearquarter" ) && (latency > = 1 )) ||
211211 ((time_type == " year" ) && (latency > = 1 ))
212212 ) {
213- cli :: cli_warn(c (
214- " !" = glue :: glue (
213+ cli :: cli_warn(paste (
214+ " !" = paste (
215215 " The shift has been adjusted by {latency}, " ,
216216 " which is questionable for it's `time_type` of " ,
217217 " {time_type}"
0 commit comments