pillar_options {pillar}R Documentation

Package options

Description

Options that affect display of tibble-like output.

Usage

pillar_options

Details

These options can be set via options() and queried via getOption(). For this, add a pillar. prefix (the package name and a dot) to the option name. Example: for an option foo, use options(pillar.foo = value) to set it and getOption("pillar.foo") to retrieve the current value. An option value of NULL means that the default is used.

Options for the pillar package

Examples

Run examples

# Default setting:
getOption("pillar.sigfig")
pillar(1.234567)

# Change for the duration of the session:
old <- options(pillar.sigfig = 6)
pillar(1.234567)

# Change back to the original value:
options(old)
pillar(1.234567)

# Local scope:
local({
  rlang::local_options(pillar.sigfig = 6)
  pillar(1.234567)
})
pillar(1.234567)

[Package pillar version 1.7.0 Index]