Skip to content

Commit ab3bf1a

Browse files
committed
Comment to clarify when to use warn_dots_*() functions
1 parent 6de07af commit ab3bf1a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

R/utilities.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -838,6 +838,8 @@ fallback_palette <- function(scale) {
838838
)
839839
}
840840

841+
# For when you want to ensure all forwarded arguments are consumed by downstream
842+
# functions.
841843
warn_dots_used <- function(env = caller_env(), call = caller_env()) {
842844
check_dots_used(
843845
env = env, call = call,
@@ -850,6 +852,7 @@ warn_dots_used <- function(env = caller_env(), call = caller_env()) {
850852
)
851853
}
852854

855+
# For when you do not want `...` to be used; it should be empty.
853856
warn_dots_empty <- function(env = caller_env(), call = caller_env()) {
854857
check_dots_empty(
855858
env = env, call = call,

0 commit comments

Comments
 (0)