log_chunk_time | R Documentation |
Calling this function in the first chunk of a document will instruct knitr
to automatically log the execution time of each chunk. If using
formatter_glue()
or formatter_cli()
then the options
variable will be
available, providing the chunk options such as chunk label etc.
log_chunk_time(..., level = INFO, namespace = NA_character_)
... |
passed to |
level |
see |
namespace |
x |
# To be put in the first chunk of a document
log_chunk_time("chunk {options$label}")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.