Skip to contents

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.

Usage

log_chunk_time(..., level = INFO, namespace = NA_character_)

Arguments

...

passed to log_level()

level

see log_levels()

namespace

x

Examples

# To be put in the first chunk of a document
log_chunk_time("chunk {options$label}")