cleanOutlineArg checks values and provides defaults.

cleanOutlineArg(
  pvt,
  outline = NULL,
  defaultCaption = "{value}",
  defaultIsEmpty = TRUE
)

Arguments

pvt

The pivot table.

outline

Either a logical value (TRUE to use the default outline settings) or a list specifying outline settings.

defaultCaption

The default caption of the outline group.

defaultIsEmpty

Specify whether the outline group is empty or contains a value (typically a sub-total)

Value

A listed containing checked/cleaned outline group settings.