Line Number plugin
Value
A list (named) with the name of the plugin, the class passed to the render function and the line number in which the line numbers will start from (optional).
Examples
if (interactive()) {
highlighter::highlighter(
"print('Hello, world!')\ncat <- \"Aristofanes\"\nstr(some_variable)",
language = "r",
plugins = list(
line_number(
use_line_number = TRUE,
start_from = 2
)
)
)
}