Skip to contents

These functions back the RStudio addins registered by the package. They must be called from an active RStudio source editor. External formatters are configured through the active document's Panache configuration. R code defaults to the arity R package when no R formatter is configured.

Usage

format_document_addin(
  config = getOption("panache.config", NULL),
  isolated = FALSE,
  ...
)

format_selection_addin(
  config = getOption("panache.config", NULL),
  isolated = FALSE,
  ...
)

Arguments

config

A TOML path or NULL for discovery, as in format_text(). Defaults to the panache.config R option, allowing a configuration path to be set from .Rprofile.

isolated

Whether to ignore configuration files.

...

Named formatting overrides passed to format_text().

Value

NULL, invisibly.