the _context functions define lists of parameters for text formatting. The specific contexts return hard-coded values appropriate to the context they describe, while custom_context allows definition of new contexts for custom formatting.
clipboard_context()rstudio_context()
console_context()
markdown_context()
custom_context(
output_mode = "console",
nspc = 2,
indent_context = 0,
indent_head = TRUE
)
A named output mode, controls the target of the _paste functions options are "rstudioapi" or "console"
The number of spaces for each indent level in the output context
The number of spaces applied initially to all lines in the output context
Logical. Apply the indent_context to the to the header row? Use FALSE if targeting cursor location.
an output context. An input to _paste, _format, _construct functions used to format whitespace.