Debian Codegraph @

man/pillar_options.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/options.R
3 \docType{data}
4 \name{pillar_options}
5 \alias{pillar_options}
6 \title{Package options}
7 \description{
8 Options that affect display of tibble-like output.
9 }
10 \details{
11 These options can be set via \code{\link[=options]{options()}} and queried via \code{\link[=getOption]{getOption()}}.
12 }
13 \section{Options for the pillar package}{
14
15 \itemize{
16 \item \code{width}: The width option controls the output width.
17 Setting \code{options(pillar.width = )} to a larger value
18 will lead to printing in multiple tiers (stacks).
19 \item \code{pillar.print_max}: Maximum number of rows printed, default: \code{20}.
20 Set to \code{Inf} to always print all rows.
21 For compatibility reasons, \code{getOption("tibble.print_max")} and
22 \code{getOption("dplyr.print_max")} are also consulted,
23 this will be soft-deprecated in pillar v2.0.0.
24 \item \code{pillar.print_min}: Number of rows printed if the table has more than
25 \code{print_max} rows, default: \code{10}.
26 For compatibility reasons, \code{getOption("tibble.print_min")} and
27 \code{getOption("dplyr.print_min")} are also consulted,
28 this will be soft-deprecated in pillar v2.0.0.
29 \item \code{pillar.width}: Output width. Default: \code{NULL}
30 (use \code{getOption("width")}).
31 This can be larger than \code{getOption("width")}, in this case the output
32 of the table's body is distributed over multiple tiers for wide tibbles.
33 For compatibility reasons, \code{getOption("tibble.width")} and
34 \code{getOption("dplyr.width")} are also consulted,
35 this will be soft-deprecated in pillar v2.0.0.
36 \item \code{pillar.max_footer_lines}: The maximum number of lines in the footer,
37 default: \code{7}. Set to \code{Inf} to turn off truncation of footer lines.
38 The \code{max_extra_cols} option still limits
39 the number of columns printed.
40 \item \code{pillar.max_extra_cols}: The maximum number of columns printed in the footer,
41 default: \code{100}. Set to \code{Inf} to show all columns.
42 Set the more predictable \code{max_footer_lines} to control the number
43 of footer lines instead.
44 \item \code{pillar.bold}: Use bold font, e.g. for column headers? This currently
45 defaults to \code{FALSE}, because many terminal fonts have poor support for
46 bold fonts.
47 \item \code{pillar.subtle}: Use subtle style, e.g. for row numbers and data types?
48 Default: \code{TRUE}.
49 \item \code{pillar.subtle_num}: Use subtle style for insignificant digits? Default:
50 \code{FALSE}, is also affected by the \code{subtle} option.
51 \item \code{pillar.neg}: Highlight negative numbers? Default: \code{TRUE}.
52 \item \code{pillar.sigfig}: The number of significant digits that will be printed and
53 highlighted, default: \code{3}. Set the \code{subtle} option to \code{FALSE} to
54 turn off highlighting of significant digits.
55 \item \code{pillar.min_title_chars}: The minimum number of characters for the column
56 title, default: \code{20}. Column titles may be truncated up to that width to
57 save horizontal space. Set to \code{Inf} to turn off truncation of column
58 titles.
59 \item \code{pillar.min_chars}: The minimum number of characters wide to
60 display character columns, default: \code{3}. Character columns may be
61 truncated up to that width to save horizontal space. Set to \code{Inf} to
62 turn off truncation of character columns.
63 \item \code{pillar.max_dec_width}: The maximum allowed width for decimal notation,
64 default: \code{13}.
65 \item \code{pillar.bidi}: Set to \code{TRUE} for experimental support for bidirectional scripts.
66 Default: \code{FALSE}. When this option is set, "left right override"
67 and "first strong isolate"
68 \href{https://www.w3.org/International/questions/qa-bidi-unicode-controls}{Unicode controls}
69 are inserted to ensure that text appears in its intended direction
70 and that the column headings correspond to the correct columns.
71 \item \code{pillar.superdigit_sep}: The string inserted between superscript digits
72 and column names in the footnote. Defaults to a \code{"\\u200b"}, a zero-width
73 space, on UTF-8 platforms, and to \code{": "} on non-UTF-8 platforms.
74 \item \code{pillar.advice}: Should advice be displayed in the footer when columns or rows
75 are missing from the output? Defaults to \code{TRUE} for interactive sessions,
76 and to \code{FALSE} otherwise.
77 }
78 }
79
80 \examples{
81 \dontshow{if (rlang::is_installed("tibble")) withAutoprint(\{ # examplesIf}
82 df <- tibble::tibble(x = c(1.234567, NA, 5:10))
83 df
84
85 # Change for the duration of the session:
86 old <- options(
87 pillar.sigfig = 6,
88 pillar.print_max = 5,
89 pillar.print_min = 5,
90 pillar.advice = FALSE
91 )
92 df
93
94 # Change back to the original value:
95 options(old)
96 df
97 \dontshow{\}) # examplesIf}
98 }
99 \keyword{datasets}