| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/tbl-format-setup.R |
| 3 |
\name{new_tbl_format_setup} |
| 4 |
\alias{new_tbl_format_setup} |
| 5 |
\title{Construct a setup object for formatting} |
| 6 |
\usage{ |
| 7 |
new_tbl_format_setup( |
| 8 |
width, |
| 9 |
tbl_sum, |
| 10 |
x = NULL, |
| 11 |
df = NULL, |
| 12 |
body = NULL, |
| 13 |
rows_missing = NULL, |
| 14 |
rows_total = NULL, |
| 15 |
extra_cols = NULL, |
| 16 |
extra_cols_total = NULL, |
| 17 |
max_footer_lines = NULL, |
| 18 |
abbrev_cols = NULL |
| 19 |
) |
| 20 |
} |
| 21 |
\arguments{ |
| 22 |
\item{width}{The \code{width} argument unchanged.} |
| 23 |
|
| 24 |
\item{tbl_sum}{A named character vector, as returned from \code{\link[=tbl_sum]{tbl_sum()}}.} |
| 25 |
|
| 26 |
\item{x}{The input object unchanged.} |
| 27 |
|
| 28 |
\item{df}{A data frame representation of the intended output, |
| 29 |
trimmed to the desired number of rows.} |
| 30 |
|
| 31 |
\item{body}{A character vector with the formatted body, |
| 32 |
one element per line,} |
| 33 |
|
| 34 |
\item{rows_missing}{The number of rows not shown from the body, |
| 35 |
\code{NA} if unknown.} |
| 36 |
|
| 37 |
\item{rows_total}{The total number of rows in the data, |
| 38 |
\code{NA} if unknown.} |
| 39 |
|
| 40 |
\item{extra_cols}{Columns that did not fit into the body, |
| 41 |
as a character vector of formatted column names and types.} |
| 42 |
|
| 43 |
\item{extra_cols_total}{The total number of columns, may be larger than |
| 44 |
\code{length(extra_cols)}.} |
| 45 |
|
| 46 |
\item{max_footer_lines}{The maximum number of lines in the footer.} |
| 47 |
|
| 48 |
\item{abbrev_cols}{Formatted names of the columns that are shown abbreviated |
| 49 |
in the body.} |
| 50 |
} |
| 51 |
\description{ |
| 52 |
The object returned from the default method of \code{\link[=tbl_format_setup]{tbl_format_setup()}} |
| 53 |
is an object with a \code{"class"} attribute and the elements described in the |
| 54 |
"Parameters" section. |
| 55 |
|
| 56 |
Named elements can be added to such objects without affecting the behavior. |
| 57 |
Do not modify existing elements. |
| 58 |
} |
| 59 |
\keyword{internal} |