Skip to content

Commit

Permalink
pass to call arg in new_cluster_spec()
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilHvitfeldt committed Jan 27, 2025
1 parent 0c6d247 commit 94971a7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion R/cluster_spec.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@
#' @export
#' @keywords internal
new_cluster_spec <- function(cls, args, eng_args, mode, method, engine) {
modelenv::check_spec_mode_engine_val(model = cls, mode = mode, eng = engine)
modelenv::check_spec_mode_engine_val(
model = cls,
mode = mode,
eng = engine,
call = rlang::caller_env()
)

out <- list(
args = args, eng_args = eng_args,
Expand Down

0 comments on commit 94971a7

Please sign in to comment.