timeMar | R Documentation |
Time an Expression and Report in Quarto Margin
timeMar(x)
x |
an expression to execute |
Function to time an expression, printing the result of base::system.time()
in the right margin, and storing the result of system.time in .systime.
in the global environment so tha the user can refer to it.
invisibly, the result of the expression
Frank Harrell
hooktime()
## Not run:
g <- function(...){} # define a function to run slowly
result <- timeMar(g())
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.