Skip to content

Commit

Permalink
reintroduce removal of protected arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpcouch committed Oct 25, 2024
1 parent dfde035 commit 7c0de55
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/arguments.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ check_eng_args <- function(args, obj, core_args) {
protected_args <- unique(c(obj$protect, core_args))
common_args <- intersect(protected_args, names(args))
if (length(common_args) > 0) {
args <- args[!(names(args) %in% common_args)]
cli::cli_warn(
c(
"The argument{?s} {.arg {common_args}} cannot be manually modified
Expand Down

0 comments on commit 7c0de55

Please sign in to comment.