Timing can be enabled via the chunk option time = TRUE
(e.g., set
reactor(time = TRUE)
in the first code chunk). After it is
enabled, the execution time for code chunks and text blocks will be recorded.
This function can be called to retrieve the timing data later in the document
(e.g., in the last code chunk).
timing_data(threshold = 0, sort = TRUE, total = TRUE)
A data frame containing input file paths, line numbers, chunk labels,
and time. If no timing data is available, NULL
is returned.
A number (time in seconds) to subset data with. Only rows with time above this threshold are returned.
Whether to sort the data by time in the decreasing order.
Whether to append the total time to the data.