hook_numberLines: Number lines on code blocks

Description Usage Arguments Value Examples

View source: R/hook_number_lines.R

Description

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

Usage

1
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

1
hook_numberLines("source")

atusy/chunkhooks documentation built on Nov. 30, 2021, 10:32 a.m.