insert_break: Insert a code break of arbitrary level

View source: R/insert_breaks.R

insert_breakR Documentation

Insert a code break of arbitrary level

Description

A helper function to insert a code break for a given level

Usage

insert_break(level, insert_with_shiny = options()$strcode$insert_with_shiny)

Arguments

level

The level, a numeric value bounded between 1 and 3

insert_with_shiny

A boolean value indicating whether to use a shiny gadget to add separator and possibly title. If set to FALSE, simply a separator will be inserted and the user has to set the title himself. To permanently set this argument, you can alter the global option strcode$insert_with_shiny, which is the location where insert_break looks up the value when used as an RStudio Add-in.


lorenzwalthert/strcode documentation built on May 11, 2023, 12:10 a.m.