From e005c24fbfef8e5097816824c353ef7dcae4331a Mon Sep 17 00:00:00 2001 From: Hadley Wickham Date: Tue, 9 Feb 2021 13:56:09 -0600 Subject: [PATCH] Fix logic bug in dotloop() Ensures that req() works without error --- R/utils.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/utils.R b/R/utils.R index dfffc90c3..ce54e6af3 100644 --- a/R/utils.R +++ b/R/utils.R @@ -1419,7 +1419,7 @@ cancelOutput <- function() { # # Can be used to facilitate short-circuit eval on dots. dotloop <- function(fun_, ...) { - for (i in 1:(nargs()-1)) { + for (i in seq_len(nargs() - 1)) { fun_(eval(as.symbol(paste0("..", i)))) } invisible()