View source: R/do.call_timed.R
| do.call_timed | R Documentation |
This function measures the computation time of a call.
do.call_timed(what, args, units = "secs")
what, args |
Passed to |
units |
Passed to |
This function is a wrapper for do.call.
A list of the two elements "result" (the results of the do.call
call) and "time" (the computation time).
Other function helpers:
function_arguments(),
function_body(),
function_defaults(),
quiet(),
timed(),
try_silent(),
variable_name()
## Not run:
what <- function(s) {
Sys.sleep(s)
return(s)
}
args <- list(s = 1)
do.call_timed(what = what, args = args)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.