Skip to content

Commit c1234f7

Browse files
committed
pass local checks, fix breaking pkgdown
1 parent f6cac4c commit c1234f7

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

R/frosting.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ adjust_frosting.frosting <- function(
187187
} else {
188188
layer_names <- map_chr(x$layers, ~ attr(.x, "class")[1])
189189
starts_with_layer <- substr(which_layer, 1, 6) == "layer_"
190-
if (!starts_with_step) which_layer <- paste0("layer_", which_layer)
190+
if (!starts_with_layer) which_layer <- paste0("layer_", which_layer)
191191

192192
if (!(which_layer %in% layer_names)) {
193193
cli::cli_abort(c(

R/tidy.R

+2-6
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,9 @@ tidy.frosting <- function(x, number = NA, id = NA, ...) {
103103
res
104104
}
105105

106-
#' @rdname tidy.layer
107106
#' @export
108107
tidy.layer <- function(x, ...) {
109-
rlang::abort(
110-
paste0(
111-
"No `tidy` method for a layer with classes: ",
112-
paste0(class(x), collapse = ", ")
113-
)
108+
cli::cli_abort(
109+
"No `tidy()` method exists for a layer with class: {.cls {class(x)}}."
114110
)
115111
}

_pkgdown.yml

+3
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ reference:
4848
- epi_recipe
4949
- epi_workflow
5050
- add_epi_recipe
51+
- adjust_epi_recipe
52+
- add_model
5153
- predict.epi_workflow
5254
- fit.epi_workflow
5355
- augment.epi_workflow
@@ -62,6 +64,7 @@ reference:
6264
- frosting
6365
- ends_with("_frosting")
6466
- get_test_data
67+
- tidy.frosting
6568
- title: Frosting layers
6669
contents:
6770
- contains("layer")

add_model.Rd

Whitespace-only changes.

0 commit comments

Comments
 (0)