Number lines on code blocks created by chunks, i.e. source, output, message, warning, and/or error.

hook_numberLines(targets = "source", .set = TRUE)

Arguments

targets

A character vector specifying what kind of code blocks automatically number lines (default: "source"). Choices are "source", "output", "message", "warning", and/or "error".NULL` disables the automation.

.set

TRUE or FALSE to set the hook.

Value

invisible hook function

Examples

hook_numberLines("source")