Skip to content

Commit 1aa87bf

Browse files
authored
Merge pull request #281 from cmu-delphi/check_dots_empty
Check dots empty
2 parents 8d63d49 + da61c6d commit 1aa87bf

5 files changed

+5
-0
lines changed

R/arx_forecaster.R

+1
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ arx_args_list <- function(
222222
nafill_buffer = Inf,
223223
...) {
224224
# error checking if lags is a list
225+
rlang::check_dots_empty()
225226
.lags <- lags
226227
if (is.list(lags)) lags <- unlist(lags)
227228

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)