Skip to content

Commit c6f8f02

Browse files
committed
... says not used
1 parent d5455d4 commit c6f8f02

File tree

5 files changed

+7
-0
lines changed

5 files changed

+7
-0
lines changed

R/epi_recipe.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ epi_recipe.default <- function(x, ...) {
5757
#' r
5858
epi_recipe.epi_df <-
5959
function(x, formula = NULL, ..., vars = NULL, roles = NULL) {
60+
rlang::check_dots_empty()
6061
if (!is.null(formula)) {
6162
if (!is.null(vars)) {
6263
rlang::abort(
@@ -288,6 +289,7 @@ is_epi_recipe <- function(x) {
288289
#'
289290
add_epi_recipe <- function(
290291
x, recipe, ..., blueprint = default_epi_recipe_blueprint()) {
292+
rlang::check_dots_empty()
291293
workflows::add_recipe(x, recipe, ..., blueprint = blueprint)
292294
}
293295

R/epi_workflow.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ is_epi_workflow <- function(x) {
113113
#' wf
114114
#' @export
115115
add_model <- function(x, spec, ..., formula = NULL) {
116+
rlang::check_dots_empty()
116117
UseMethod("add_model")
117118
}
118119

@@ -125,6 +126,7 @@ remove_model <- function(x) {
125126
#' @rdname add_model
126127
#' @export
127128
update_model <- function(x, spec, ..., formula = NULL) {
129+
rlang::check_dots_empty()
128130
UseMethod("update_model")
129131
}
130132

R/extract.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#'
1919
#' extract_argument(f, "layer_residual_quantiles", "symmetrize")
2020
extract_argument <- function(x, name, arg, ...) {
21+
rlang::check_dots_empty()
2122
UseMethod("extract_argument")
2223
}
2324

R/frosting.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,7 @@ frosting <- function(layers = NULL, requirements = NULL) {
303303
#' @return a `frosting` object
304304
#' @export
305305
extract_frosting <- function(x, ...) {
306+
rlang::check_dots_empty()
306307
UseMethod("extract_frosting")
307308
}
308309

R/tidy.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ tidy.frosting <- function(x, number = NA, id = NA, ...) {
4949
# add id = NA as default. If both ID & number are non-NA, error.
5050
# If number is NA and ID is not, select the layer with the corresponding
5151
# ID. Only a single ID is allowed, as this follows the convention for number
52+
rlang::check_dots_empty()
5253
num_oper <- length(x$layers)
5354
pattern <- "^layer_"
5455

0 commit comments

Comments
 (0)