Examples for 'pillar::pillar_options'


Package options

Aliases: pillar_options

Keywords: datasets

### ** Examples

# Default setting:
getOption("pillar.sigfig")
NULL
pillar(1.234567)
<pillar>
<dbl>
 1.23
# Change for the duration of the session:
old <- options(pillar.sigfig = 6)
pillar(1.234567)
<pillar>
  <dbl>
1.23457
# Change back to the original value:
options(old)
pillar(1.234567)
<pillar>
<dbl>
 1.23
# Local scope:
local({
  rlang::local_options(pillar.sigfig = 6)
  pillar(1.234567)
})
<pillar>
  <dbl>
1.23457
pillar(1.234567)
<pillar>
<dbl>
 1.23

[Package pillar version 1.7.0 Index]