timeMar {qreport} | 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
## Not run:
g <- function(...){} # define a function to run slowly
result <- timeMar(g())
## End(Not run)