Skip to content

Commit 136d652

Browse files
committed
... in slather that seems unused
1 parent c6f8f02 commit 136d652

4 files changed

+4
-0
lines changed

R/layer_add_target_date.R

+1
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ layer_add_target_date_new <- function(id = id, target_date = target_date) {
8080

8181
#' @export
8282
slather.layer_add_target_date <- function(object, components, workflow, new_data, ...) {
83+
rlang::check_dots_empty()
8384
the_recipe <- workflows::extract_recipe(workflow)
8485
the_frosting <- extract_frosting(workflow)
8586

R/layer_cdc_flatline_quantiles.R

+1
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ layer_cdc_flatline_quantiles_new <- function(
160160
#' @export
161161
slather.layer_cdc_flatline_quantiles <-
162162
function(object, components, workflow, new_data, ...) {
163+
rlang::check_dots_empty()
163164
if (is.null(object$quantile_levels)) {
164165
return(components)
165166
}

R/layer_point_from_distn.R

+1
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ layer_point_from_distn_new <- function(type, name, id) {
7878
#' @export
7979
slather.layer_point_from_distn <-
8080
function(object, components, workflow, new_data, ...) {
81+
rlang::check_dots_empty()
8182
dstn <- components$predictions$.pred
8283
if (!inherits(dstn, "distribution")) {
8384
rlang::warn(

R/layer_population_scaling.R

+1
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ layer_population_scaling_new <-
138138
#' @export
139139
slather.layer_population_scaling <-
140140
function(object, components, workflow, new_data, ...) {
141+
rlang::check_dots_empty()
141142
stopifnot(
142143
"Only one population column allowed for scaling" =
143144
length(object$df_pop_col) == 1

0 commit comments

Comments
 (0)