R/handler_ascii_alert.R
handler_ascii_alert.Rd
A progression handler based on cat("\a", file=stderr())
.
(character string) The character symbol to be outputted,
which by default is the ASCII BEL character ('\a'
= '\007'
) character.
(connection) A base::connection to where output should be sent.
(numeric) A non-negative scalar on how intrusive (disruptive) the reporter to the user.
(character vector) Specifies where progression updates are rendered.
Additional arguments passed to make_progression_handler()
.
handlers("ascii_alert")
with_progress({ y <- slow_sum(1:10) })
#> M: Added value 1
#> M: Added value 2
#> M: Added value 3
#> M: Added value 4
#> M: Added value 5
#> M: Added value 6
#> M: Added value 7
#> M: Added value 8
#> M: Added value 9
#> M: Added value 10
print(y)
#> [1] 55