Skip to content

Commit

Permalink
Remove ellipsis for rlang (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
olivroy committed Sep 17, 2024
1 parent 68d5783 commit bc41ef1
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ Imports:
R6,
generics,
purrr,
ellipsis,
fs,
prettyunits,
cli
Expand Down
2 changes: 1 addition & 1 deletion R/callbacks-mixup.R
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
luz_callback_mixup <- luz_callback(
"mixup_callback",
initialize = function(alpha = 0.4, ..., run_valid = FALSE, auto_loss = FALSE) {
ellipsis::check_dots_empty()
rlang::check_dots_empty()
self$alpha <- alpha
self$run_valid <- run_valid
self$auto_loss <- auto_loss
Expand Down
2 changes: 1 addition & 1 deletion R/callbacks-resume.R
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ luz_callback_resume_from_checkpoint <- luz_callback(
restore_optimizer_state = FALSE,
restore_callbacks_state = FALSE) {

ellipsis::check_dots_empty()
rlang::check_dots_empty()

# if path is a directory, grab the last file returned by dir_ls
if (fs::is_dir(path)) {
Expand Down
2 changes: 1 addition & 1 deletion R/module.R
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ fit.luz_module_generator <- function(

enable_mps_fallback()
module <- object
ellipsis::check_dots_empty()
rlang::check_dots_empty()

# Initialize context:
ctx <- fit_context$new(
Expand Down
2 changes: 1 addition & 1 deletion R/serialization.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#' @family luz_save
#' @export
luz_save <- function(obj, path, ...) {
ellipsis::check_dots_empty()
rlang::check_dots_empty()
# dangling environments might be in the `obj` search path causing problems
# during saving. `gc()` is a good practice to make sure they are cleaned up
# before saving.
Expand Down

0 comments on commit bc41ef1

Please sign in to comment.