@@ -64,7 +64,7 @@ make_progression_handler <- function(name, reporter = list(), handler = NULL, en
6464 stop_if_not(is.numeric(enable_after ), length(enable_after ),
6565 ! is.na(enable_after ), enable_after > = 0 )
6666 times <- as.numeric(times )
67- stop_if_not(length(times ) == 1L , is.numeric(times ), ! is.na(name ),
67+ stop_if_not(length(times ) == 1L , is.numeric(times ), ! is.na(times ),
6868 times > = 0 )
6969 interval <- as.numeric(interval )
7070 stop_if_not(length(interval ) == 1L , is.numeric(interval ),
@@ -79,8 +79,8 @@ make_progression_handler <- function(name, reporter = list(), handler = NULL, en
7979 }
8080
8181 # # Reporter
82- for (name in setdiff(c(" reset" , " initiate" , " update" , " finish" , " hide" , " unhide" ), names(reporter ))) {
83- reporter [[name ]] <- structure(function (... ) NULL , class = " null_function" )
82+ for (key in setdiff(c(" reset" , " initiate" , " update" , " finish" , " hide" , " unhide" ), names(reporter ))) {
83+ reporter [[key ]] <- structure(function (... ) NULL , class = " null_function" )
8484 }
8585
8686 # # Progress state
0 commit comments