hook_numberLines {chunkhooks}R Documentation

Number lines on code blocks

Description

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

Usage

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")


[Package chunkhooks version 0.0.1 Index]