-
Notifications
You must be signed in to change notification settings - Fork 92
Expand file tree
/
Copy path_pkgdown.yml
More file actions
308 lines (277 loc) · 7.8 KB
/
_pkgdown.yml
File metadata and controls
308 lines (277 loc) · 7.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
url: https://davidgohel.github.io/flextable/
title: flextable
development:
mode: auto
template:
bootstrap: 5
theme: breeze-light
bootswatch: simplex
bslib:
pkgdown-nav-height: 100px
base_font:
google: "Open Sans"
home:
links:
- text: 'Visit <a href="https://www.ardata.fr"><img alt="ardata" src="https://www.ardata.fr/img/ardata-logo.svg" width="70"></a> website'
href: https://www.ardata.fr
reference:
- title: Create a flextable
desc: >
Functions to create flextable objects from data frames or other R objects.
Start here - flextable() is the main constructor, qflextable() is a quick
shortcut, and as_flextable() converts other objects.
contents:
- flextable
- qflextable
- as_flextable
- flextable-package
- title: Convert objects to flextable
desc: >
Transform statistical models, cross-tabulations, and summary tables into
flextables. Use tabulator() for pivot-style tables, summarizor() for
descriptive statistics, and specific as_flextable methods for models.
contents:
- tabulator
- tabulator_colnames
- summarizor
- starts_with("as_flextable")
- continuous_summary
- compact_summary
- as_grouped_data
- proc_freq
- shift_table
- title: Headers, footers and structural changes
desc: >
Add or modify header rows, footer rows, or body rows. Set column labels.
Remove rows, columns, or entire parts (header, body, footer) from the table.
contents:
- add_header_row
- add_header_lines
- add_header
- add_footer_row
- add_footer_lines
- add_footer
- add_body
- add_body_row
- separate_header
- set_header_labels
- set_header_df
- set_footer_df
- delete_part
- delete_rows
- delete_columns
- title: Merge cells
desc: >
Combine adjacent cells horizontally or vertically to create spanning cells.
Useful for grouped headers or repeated values.
contents:
- starts_with("merge_")
- title: Format cell values
desc: >
Control how values are displayed: number of decimals, date formats,
thousand separators, currency symbols. Use colformat_* functions for
column-wide formatting.
contents:
- starts_with("colformat_")
- starts_with("set_formatter")
- labelizor
- title: Compose rich content
desc: >
Create cells with mixed content: combine text, images, plots, and
formatted chunks in a single cell. Use compose() with as_paragraph().
contents:
- compose
- as_paragraph
- append_chunks
- prepend_chunks
- footnote
- title: Content chunks
desc: >
Building blocks for rich cell content. Use inside as_paragraph() or
compose(): text formatting (as_b, as_i), images (as_image, gg_chunk),
links (hyperlink_text), equations (as_equation).
contents:
- as_chunk
- as_b
- as_i
- as_strike
- as_sub
- as_sup
- as_highlight
- colorize
- as_qmd
- as_bracket
- hyperlink_text
- as_equation
- as_word_field
- as_image
- gg_chunk
- plot_chunk
- grid_chunk
- minibar
- linerange
- title: Apply themes
desc: >
Apply predefined visual themes to quickly style the entire table.
Themes set fonts, colors, borders, and padding in one call.
contents:
- starts_with("theme_")
- title: Style text and cells
desc: >
Control typography and cell appearance: font family, size, color,
bold, italic, background color, text highlighting.
contents:
- style
- font
- fontsize
- bold
- italic
- color
- highlight
- bg
- fp_text_default
- title: Alignment and spacing
desc: >
Control text alignment (left, center, right), vertical alignment,
cell padding, line spacing, and text rotation.
contents:
- align
- valign
- padding
- line_spacing
- rotate
- tab_settings
- empty_blanks
- title: Borders
desc: >
Add, remove, or customize cell borders. Use hline/vline for single lines,
border_inner/border_outer for bulk operations, surround for highlighting.
contents:
- fp_border_default
- starts_with("hline")
- starts_with("vline")
- border_inner
- border_inner_h
- border_inner_v
- border_outer
- border_remove
- surround
- title: Table and column dimensions
desc: >
Control table width, column widths, and automatic sizing. Use autofit()
for automatic adjustment, width() for manual control.
contents:
- width
- autofit
- fit_to_width
- fit_columns
- set_table_properties
- title: Row height and pagination
desc: >
Control row heights and how tables break across pages. Use paginate()
to split long tables, keep_with_next to prevent orphan rows.
contents:
- starts_with("height")
- hrule
- paginate
- split_to_pages
- split_rows
- split_columns
- keep_with_next
- title: Get dimensions
desc: >
Query table dimensions: number of rows, columns, pixel sizes.
Useful for dynamic layouts and conditional formatting.
contents:
- dim.flextable
- dim_pretty
- flextable_dim
- nrow_part
- ncol_keys
- title: Caption and labels
desc: >
Add table captions for cross-referencing in documents. Captions appear
above or below the table and can be numbered automatically.
contents:
- set_caption
- title: Save to files
desc: >
Export flextables to standalone files: Word (.docx), PowerPoint (.pptx),
HTML, RTF, or images (PNG, PDF, SVG).
contents:
- save_as_docx
- save_as_pptx
- save_as_html
- save_as_rtf
- save_as_image
- title: Integrate with R Markdown and Quarto
desc: >
Functions for rendering flextables in R Markdown, Quarto, and knitr
documents. Automatic rendering is usually handled by knit_print.
contents:
- use_flextable_qmd
- knit_print.flextable
- flextable_to_rmd
- df_printer
- use_df_printer
- use_model_printer
- title: Integrate with officer (Word/PowerPoint)
desc: >
Add flextables to Word and PowerPoint documents created with the officer
package. Use body_add_flextable for Word, ph_with for PowerPoint.
contents:
- body_add_flextable
- body_replace_flextable_at_bkm
- ph_with.flextable
- rtf_add.flextable
- title: Other output formats
desc: >
Convert flextables to HTML strings, plots, grobs, or interactive widgets.
contents:
- print.flextable
- to_html.flextable
- htmltools_value
- wrap_flextable
- plot.flextable
- gen_grob
- plot.flextableGrob
- dim.flextableGrob
- title: Global defaults
desc: >
Set default formatting options that apply to all new flextables:
fonts, colors, borders, padding. Reduces repetitive code.
contents:
- set_flextable_defaults
- get_flextable_defaults
- init_flextable_defaults
- title: Value formatters
desc: >
Format numeric values as text strings for display in cells:
integers, decimals, percentages, mean±sd. Use inside as_paragraph()
or as the formatter argument of as_chunk().
contents:
- starts_with("fmt_")
- title: Utilities
desc: >
Helper functions
contents:
- before
- void
navbar:
title: flextable
type: default
left:
- text: Function reference
href: reference/index.html
- text: User Documentation
href: https://ardata-fr.github.io/flextable-book/
footer:
structure:
left: legal
components:
legal: proudly brought to you by <a href="https://www.ardata.fr"><img alt="ardata" src="https://www.ardata.fr/img/ardata-logo.svg" width="70"></a>
authors:
David Gohel:
href: https://www.ardata.fr
Rémi Thériault:
href: https://remi-theriault.com