local_timer | R Documentation |
Called for the side effect of providing a message of the time required to execute the rest of the function.
local_timer(..., title = "", srcref = TRUE, .local_envir = rlang::caller_env())
... |
These dots are for future extensions and must be empty. |
title |
A string of the title. |
srcref |
A flag specifying whether to print the source reference. |
.local_envir |
The environment to use for scoping. |
with_timer()
fun <- function() {
local_timer()
Sys.sleep(0.1)
10
}
fun()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.