flextable 0.9.11
new features
- new function
wrap_flextable()enables integration with ‘patchwork’ layouts. Flextable objects can be combined with ‘ggplot2’ plots using+,|, and/operators. Table headers and footers are aligned with plot panel areas. Thepanelargument controls alignment ("body","full","rows","cols") and thespaceargument controls sizing ("free","fixed","free_x","free_y").flex_bodystretches body rows to match a neighbouring plot’s panel height;flex_colsstretches data columns to match the panel width.justcontrols horizontal alignment ("left","right","center") when the table is narrower than the panel. S3 methodsggplot_add.flextableandas_patch.flextableare registered so thatplot + flextableworks transparently. - new function
theme_borderless()applies a minimal theme with no borders, bold header, and standard column alignment. - support strikethrough formatting with
fp_text_default(). - new function
as_strike()to apply strikethrough formatting to text chunks. - new function
compact_summary()to create a compact summary of a data.frame that can be transformed as a flextable withas_flextable(). -
summarizor(): when usingoverall_labelwith multiplebycolumns, an overall level is now added for each grouping column (not only the last one). This produces margins at every nesting level, including a grand total. -
footnote()gains asymbol_separgument to insert a separator between multiple footnote symbols in the same cell (#699). - new function
as_qmd()to embed Quarto markdown (cross-references, bold/italic, links, math, inline code) inside flextable cells. Works with HTML, PDF and Word outputs. New functionuse_flextable_qmd()installs the companionflextable-qmdLua filter extension in the Quarto project.
Known limitations
- PDF/LaTeX: a table row whose content is taller than a page cannot be split across pages (#548). This is a fundamental constraint of LaTeX’s
longtableenvironment, which only supports page breaks between rows, not within a single row. HTML and Word outputs are not affected.
Internals
- Strings metrics are now computed with
gdtools::strings_sizes()instead ofm_str_extents()andstr_metrics(), goal is to let ‘gdtools’ use only ‘systemfonts’ and be simplified.
Issues
- line breaks (
\n) in captions now render correctly in PDF/LaTeX output (#663). - images in google docs should now be sized as expected
- specifying a
word_stylefor a paragraph style works now. Theword_stylevalues will be ignored if flextable is process by ‘rmarkdown’ or ‘quarto’. -
as_flextable.tabulator(): the N= counts in column headers are now displayed when there are multiple grouping columns (previously limited to a single grouping column). -
footnote()no longer errors when the row selectorimatches zero rows (#712). - footnote symbols no longer clash with rotated cells in HTML output (#713).
- PDF/Quarto: the
fontspecLaTeX package is no longer included when the PDF engine ispdflatex, fixing compilation errors in Quarto documents usingpdf-engine: pdflatex(#701, #707). Engine detection now also readsQUARTO_EXECUTE_INFO(Quarto >= 1.8) and nested YAML (format > pdf > pdf-engine). - inner borders of vertically merged cells no longer show in PDF output when background color is set (#673).
- PDF/Quarto: footer repetition and longtable part ordering now work correctly with the default container (
none) in Quarto output. -
merge_v(): vertically merged cell labels now appear at the top of the merged range in PDF/LaTeX output instead of the bottom (#654). - vertical alignment (
valign) in merged cells now works correctly in PDF/LaTeX output when rows have different heights (#639). Content is placed in the first (top), middle (center), or last (bottom) row of the merged range;\multirowis no longer used as it miscalculates offsets with unequal row heights. - using
byofsummarizor()referring to two columns, one of which has only one unique value no longer causes and error when passed on toas_flextable().
flextable 0.9.10
CRAN release: 2025-08-24
flextable 0.9.9
CRAN release: 2025-05-31
new features
-
proc_freqgains new argumentcount_format_funto let control the function that format the count values.
Issues
- fix compatibility issue with rmarkdown::word_document and quarto introduced with version
0.9.8.
Changes
- Defunct previously deprecated functions
as_raster(),lollipop()andset_formatter_type(). - Definitively forbid usage of empty symbol
''with footnotes. Users should useadd_footer_lines()instead.
flextable 0.9.8
CRAN release: 2025-05-21
Issues
-
tab_settings()is now using j argument as expected (#635) - doc inconsistency for
set_table_properties()with layout that defaults to “fixed”. - add_header_row produced an error after using
delete_column()(#676) -
fmt_signif_after_zeros()fixed issue with 0 rounding -
proc_freqsupports now non syntactically names
flextable 0.9.7
CRAN release: 2024-10-27
Changes
- The
fix_border_issuesfunction is now useless for users, as it is now called automatically before printing.
Issues
- fix caption issue that came with no version of bookdown (issue #645), ‘bookdown’ management of caption has been simplified.
- fix vertical overlapping lines with grid output (issue #644)
- fix broken internal links in PDF file, probably due to a change in knitr or rmarkdown (issue #632)
- fix right outer border issue in grid format (issue #650)
- fix
flextable_to_rmd()issue with images in pdf (issue #651) - fix
flextable_to_rmd()issue with local chunkevaloption (issue #631) -
proc_freqcan now display only the table percentages without the count usinginclude.table_count = FALSE. - bring back support for ‘pagedown’ with
pagedown >= 0.20.2 - flextable now applies defined text-format to empty cells for Word and Powerpoint outputs.
flextable 0.9.6
CRAN release: 2024-05-05
Changes
-
headers_flextable_at_bkm()andfooters_flextable_at_bkm()are defunct. -
flextable_to_rmd()is now usingknit_child()for safer usage fromforloops orifstatements. - Add explanation about caption limitations in the manual of functions
save_as_image()andph_with.flextable(). - Deprecate
as_raster()sincegen_grob()is easier to use and render nicer. - BREAKING CHANGE: in
align(), the default argument value foralignis now"left", rather thanc("left", "center", "right", "justify"). This returns the default value to how it was in older versions of {flextable}.- in
align(), use of the old defaultalignargument could cause an error if the number of columns being adjusted was not a multiple of 4. - The documentation specified that
alignhad to be a single value, when it could actually accept multiple values. This is why a default value ofc("left", "center", "right", "justify"), was problematic. This documentation has now been updated and new examples included in the documentation. - The default
alignargument will now apply left alignment to all columns in the body. - If the user specifies an alignment that is invalid, a error will be displayed.
- The
pathargument now has a signature ofpart = c("body", "header", "footer", "all"), but because only a single value can be selected, it will pick"body"by default, as before.
- in
- Deprecate
lollipop()since it produces (ugly) results that can be replaced by nice results withgg_chunk()orgrid_chunk().
Issues
- fix issue with
as_image()when the table contains no text. - fix font instruction issue with PDF and quarto
- fix issue with Quarto detection and R > 4.4
- fix
align()issue with recycling and update documentation that was wrong about argumentalignthat is vectorized over columns.
flextable 0.9.5
CRAN release: 2024-03-06
new features
- new functions
tab_settings()to set tabulation marks configuration for Word and RTF. It works withofficer::fp_tabs(). - new function
fmt_signif_after_zero()to round significant figures after zeros.
Issues
-
summarizor()don’t stop anymore if table only contain discrete columns. -
as_flextable.data.frame()supports ‘data.table’ -
footnote()handle undefinedref_symbolsargument -
delete_rows()does not delete rows if the row selection is empty - improve
gen_grob()alignments when wrapping text - fix horizontal border issue with
gen_grob()when cells are vertically merged - Word captions set with
set_caption()can have no bookmark and have autonumber used together.
Changes
- default
tabcolsepis now set to 2. - Deprecate
set_formatter_type(). - renovate
fmt_2stats()so that it uses global flextable settings, i.e. digits, etc. - refactoring of data structure for content
- footer along pages in PDF are now deactivated by default. It can be activated with command
set_table_properties(opts_pdf = list(footer_repeat = TRUE)). - more argument checkings in
as_chunk()
flextable 0.9.4
CRAN release: 2023-10-22
Issues
-
ph_with.flextable()formats widths and heights correctly. - move image shown in add_footer to footnote where it should be.
- update the documentation and automatically change alignment ‘justify’ to ‘left’ for latex output.
- borders’width for grid output are fixed
new features
- new functions
delete_columns()anddelete_rows()to let users delete rows or columns. -
save_as_image()now supports svg export with ‘svglite’.
flextable 0.9.3
CRAN release: 2023-09-07
new features
- The
summarizor()function has been enhanced to offer three new options:- an empty
byargument meaning ‘no grouping,’ - the ability for users to select numeric statistics to display (“mean_sd,” “median_iqr,” “range”),
- and the option to specify whether or not to show all NA counts.
- an empty
Changes
-
as_flextable.data.frame()always shows the number of rows even if less than 10 (because I need it!).
Issues
- Make sure ‘gfm’ format is rendered as an image.
- As adviced by Ben Bolker, functions
as_flextable.lm(),as_flextable.gam(),as_flextable.glm(),as_flextable.merMod()andas_flextable.htest()now respect the global value ofgetOption("show.signif.stars"). - new argument
add.randominas_flextable.merMod()to let add or not random effects in the final table. - drop superfluous semicolons when include.row_percent = FALSE
- Super and subscripts are now correctly rendered in PDF (thanks to Philippe Grosjean).
- argument
max_iterof functionfit_to_widthis not ignored anymore.
flextable 0.9.2
CRAN release: 2023-06-18
Issues
- rmarkdown expect list of dependencies to be unnamed. This property is used in HTML or LaTeX deps resolution to know when to be recursive
-
dim_pretty()returns correct numbers when not ‘inches’ -
as_flextable.table()now propagates...as expected - pdf: when table was on two pages, there were duplicated caption entries, this is fixed thanks to Christophe Dervieux and Nick Bart. Repeating the caption along pages can be desactivated with command
set_table_properties(opts_pdf = list(caption_repeat = FALSE)). -
as_flextable()now works on tabular objects andR < 4.1. -
to_html(type = "img")now use the correct width and height
Changes
- bookdown has now bookmarks associated with captions and flextable benefits from this feature.
- In ‘Quarto’ captions are ignored, which make Quarto captions valid with HTML and PDF outputs; the responsibility for managing captions lies with the Quarto framework itself. It does not work with Quarto for Word and should be possible with Quarto
1.4. -
as_flextable.tabular()now generate tabulated content only if the sub group contains more than a single row. When possible, row titles are tabulated.
Deprecated functions
- The functions
footers_flextable_at_bkmandheaders_flextable_at_bkmare deprecated. Instead, we recommend using theprop_section()andblock_list()functions from theofficerpackage as alternative solutions. These functions provide more reliable and flexible options for managing footers and headers.
flextable 0.9.1
CRAN release: 2023-04-02
breaking change
- parameter
keepnextandft.keepnextare defunct, they are replaced by functionpaginate()that enable nice pagination of tables across pages orkeep_with_next()to get total control over rows pagination.
new features
- add RTF support for captions.
-
set_flextable_defaults()gains parameterpct_digits(number of digits for percentages) that will be used in relevant functions (onlyproc_freq()for now). - new method
as_flextable.table(). - new functions
fmt_dbl(),fmt_int()andfmt_pct(). - Support for Word and RTF pagination with function
paginate()
issues
- colname
typeis now possible when usingtabulator(). - value for html dependancies parameter is a list of html-dep as expected. This solves issue for blogdown and pkgdown introduced in the previous version.
- fix
save_as_html()ugly default title. - fix alignment issues when rows are horizontally merged in PDF
flextable 0.9.0
CRAN release: 2023-03-13
new features
- add RTF support for captions.
- enable new labels with
set_header_labels()from a simple un-named vector. - function
set_formatter()now accepts single function to be applied to all columns. - HTML output now can capture google fonts if installed with
gdtools::register_gfont(). - refactor
save_as_html(): use rmarkdown and add google fonts if possible (Seegdtools::register_gfont()).
flextable 0.8.6
CRAN release: 2023-02-23
In short:
- RTF support,
- revealjs support,
- preserve all aspects within Quarto html format
- use grid graphics for saving as png (no need for “webshot” or “webshot2” packages)
- support for
tables::tabular(): “Computes a table of summary statistics, cross-classified by various variables”
new features
- add RTF support with
officer::rtf_add(). - new convert
tables::tabular()to flextable with new functionas_flextable.tabular(). - add
to_html.flextable()to make easy embedding of flextable results in HTML (with ‘ggiraph’ for example). - add global setting
border.width(see?set_flextable_defaults()) and set its default value to .75, this setting is used in theme functions. The old default value was hard coded to 1 and can be defined during the whole R session withset_flextable_defaults(border.width = 1).
internals
- drop ‘base64enc’ dependency and use ‘officer’ functions as replacement.
- Use
officer_url_encode()to encode URL in office files. - refactor
knit_print.flextable()and related functions. - drop webshot dependency to produce images, now using package ‘ragg’.
- refactor captions: knitr context now updates the caption instead of managing caption value and defined knitr options.
- use shadow in all HTML output generated via knitr (i.e. ‘Quarto’ and ‘R Markdown’).
issues
- support revealjs (and probably all RMD formats that generate HTML)
- fix cell’s vertical alignments in latex
- fix detection of non transparent background table in latex so that the correct lines instructions (hhlines or clines) are being used.
- fix
headers_flextable_at_bkm()andfooters_flextable_at_bkm()
flextable 0.8.5
CRAN release: 2023-01-29
changes
- use pkgdown features instead of images shots in the manual examples. The website now shows flextable results.
issues
- fix issue with flextable_to_rmd and pdf introduced in
0.8.4. - fix caption issue with Word and
body_add_flextable().
flextable 0.8.4
CRAN release: 2023-01-21
new features
- new argument
expand_singleinas_flextable.tabulator(). IfFALSE, groups with only one row will not be expanded with a title row. - argument
labelsoflabelizor()now support functions in addition to named vectors. -
as.character()now returns the HTML string of the table - new method
as_flextablefor data.frame usingdf_printer()function implementation.
flextable 0.8.3
CRAN release: 2022-11-06
new features
- new argument
expand_singleinas_grouped_data(). If FALSE, groups with only one row will not be expanded with a title row. - new functions
fmt_avg_dev(),fmt_header_n(),fmt_n_percent()and renaming offmt_2stats()tofmt_summarizor()to help working withtabulator().tabulator()has also new internal values that allow N=xxx notes and automatic labels. - function
set_table_properties()is now the recommanded way to set arguments related to format options and alignment in a document. It is supposed to replace “knitr” chunk optionsft.align,ft.split,ft.keepnext,ft.tabcolsep,ft.arraystretch,ft.latex.float,ft.shadow,fonts_ignorealthough they are all still supported. This allows less interaction with the ‘R Markdown’ or ‘Quarto’ eco-system and let to define it globally withset_flextable_defaults(). - HTML scrolling can be activated by calling
set_table_properties()and providing a scroll value for argumentopts_html:opts_html = list(scroll = list(height = "500px",freeze_first_column = TRUE)). - new function
grid_chunk()to let users add grid graphics - functions
add_header_row(),add_footer_row(),add_body_row(),add_header_lines()andadd_footer_lines()now supports formatted paragraph made withas_paragraph(). - captions: support for simple text in addition to
as_paragraph() -
summarizor()can now be transformed directly as a flextable with methodas_flextable().
Issues
- fix issue with keepnext and
body_add_flextable() - fix issue of misordered chunks with
prepend_chunks() - argument ‘unit’ is dropped in
line_spacing()as it is expected to be a ratio
Changes
-
ft.keepnextnow default to FALSE as lot of users had issues with this option. - function
xtable_to_flextable()is removed (useas_flextable())
flextable 0.8.1
CRAN release: 2022-09-19
Issues
- fix warning with subscript and superscript #456
- prevent usage of gregexec if R < 4.1
- fix for rdocx captions
flextable 0.8.0
CRAN release: 2022-09-11
new features
- flextable now supports “Grid graphics” output format. See
gen_grob(). -
labelizor()is a new function to help change text by labels. - add support for paragraph settings (made with
fp_par()) in captions withset_caption(). - captions are now made with
as_paragraph() - caption alignments and keep_with_next is now computed instead of being provided by user
- alternative text for Word tables with word_title and word_description by calling
set_table_properties()or setting values to knitr chunk optionstab.alt.titleandtab.alt.description. - Word and HTML captions paragraphs settings can be defined by using
set_caption(). The alignment of the paragraph can be different from the alignment of the table with the argumentalign_with_table=FALSE. - new theme ‘APA’,
theme_apa(@rempsyc #426) - method
as_flextable.tabulator()gains an argumentspread_first_colto enable spreading of the first column of the table as a line separator. - fix doc links to functions from other packages for future releases
Issues
- fix caption issue resulting from a clash with variable name ‘n’ (#443)
- Quarto support
- fix as_grouped_data() with date columns (#438)
- fix footnotes spread over separate lines when ‘inline’ (#442)
- fix missing caption with rmarkdown pdf output
- fix first horizontal borders repeated issue with Word output
- add empty paragraphs between tables in
save_as_docx()to avoid Word confusion - fix
fortify_width()calculation
flextable 0.7.3
CRAN release: 2022-08-09
new features
- function
as_flextable.tabulator()gained an argumentlabel_rowsused for labels to display in the first column names, i.e. the row column names. - new function
shift_table()to produce Shift Tables used used in clinical trial analysis ready to be used bytabulator(). -
as_image()don’t need anymore parameterswidthandheightif package ‘magick’ is available.
Changes
-
plot.flextablenow default to grid Graphics. It produce a plot object that can be used with packages ‘ggplot2’, ‘patchwork’ and ‘cowplot’. The raster version made with ‘webshot’ and ‘magick’ pachages is still available, useplot(..., method = "webshot").
Issues
- fix top borders correction (for docx and pptx)
- check that used colors do not contain NA
- fix HTML scrolling that is always visible to Windows users
- fix “cs.family”, “hansi.family” and “eastasia.family” for Word
- fix anti-selectors for bg/color/highlight, a regression from version 0.7.2
- when HTML and layout “autofit”, output width is not set when width has been defined to 0 to avoid unnecessary word breaks (#429).
Changes
- pptx output is constructed with top and bottom margins whose value is top and bottom padding of the paragraph and there is no more borders copies while rendering.
- add visual tests with doconv
- footnote can not be used with “” symbols, use
add_footer_lines()instead.
flextable 0.7.1
CRAN release: 2022-06-01
new features
- function
as_flextable()has now methods for lm, glm, models from package ‘lme’ and ‘lme4’, htest (t.test, chisq.test, …), gam, kmeans and pam. - new function
use_model_printer()to set model automatic printing as a flextable in an R Markdown document. - new function
add_body_row()to add a row in the body part with eventually merged/spanned columns. - new function
tabulator_colnames()to get column names of atabulatorobject. - new function
prepend_chunks()to prepend chunks of content in flextable cells as withas_paragraph()but without replacing the whole content. - addition of chunk function
as_word_field()to let add ‘Word’ computed values into a flextable, asas_word_field(x = "Page")for a page number. - new function
separate_header()to Separate collapsed colnames into multiple rows. - Functions
autofit()anddim_pretty()now support newlines. -
autofit()anddim_pretty()now have an argumenthspansto help specify how horizontally spanned cells should affect the results. - PDF output now supports various floating placement options with knitr option
ft.latex.float, supported values are ‘none’ (the default value), ‘float’, ‘wrap-r’, ‘wrap-l’, ‘wrap-i’ and ‘wrap-o’. - HTML output have now a scrool bar if width does not fit in the container. This can be switch off by using the knitr option
ft.htmlscroll = FALSE. -
tabulator()can display any columns before and after the columns of displayed aggregations.
Issues
- fix append_chunks usage by adding
i,jandpartat the end of the function arguments, after the.... - add forgotten
supp_datain the result table oftabulator() - merged horizontal borders are now visible in PowerPoint (#378)
- PowerPoint ‘soft returns’ are now real ‘soft returns’. (#379)
- mapping between argument
jandsourcewhen color is a function (inbg(),highlight()andcolor()) is now based on colnames to avoid mistake while mapping. #395 - Fix issue with footnotes forcing rectangular extent for selection; thanks to Sean Browning
- fix horizontal and vertical alignements when rotating paragraphs for pptx, docx and html outputs
- links in pptx and docx are not transformed anymore.
- fix handling of special characters in latex
- vertically merged cells now wrap text into the paragraph
flextable 0.7.0
CRAN release: 2022-03-06
new features
- new function
append_chunks()to append chunks of content in flextable cells as withas_paragraph()but without replacing the whole content. - new function
tabulator()and its methodas_flextable.tabulator()that help the creation of tables used in life science industry. It also comes with functionsummarizor()and sugar functionfmt_2stats(). -
empty_blanks()gained argumentswidthso that users can also set blank columns’ width. - pass
...toformat()function when usingcolformat_num(). It makes possible to use arguments forformat(), for examplecolformat_num(drop0trailing = TRUE). - add knitr chunk option
ft.keepnextand parameterkeepnextto functionbody_add_flextable()that enable the Word option ‘keep rows together’, so that page break within a table is avoided when possible. - new function
add_latex_dep()to manually add flextable latex dependencies to the knitr session.
Issues
- fix Rd files which when converted to HTML had
<img>entries with invalid width attributes e.g.width=40\%.
Changes
- In a bookdown context and without package officedown, it is not possible to keep the cross-references as they are provided by bookdown and to provide a real Word cross-reference on table captions (the reference number only is displayed). That’s why when using bookdown without package officedown : 1. Word auto-numbering is desactivated and 2. caption prefix formatting feature.
flextable 0.6.10
CRAN release: 2021-11-15
new features
- add function
df_printerthat can be used via thedf_printoption of R Markdown documents or by callinguse_df_printer(). - add support to knitr table options
tab.cap.fp_textto let format caption prefix in functionopts_current_table(). - Applies existing formatting properties to new header/footer lines
Issues
- fix convertion when unit = “mm”
- fix regression with captions when bookdown generate a ‘Word’ document #354
- fix highlight for PowerPoint
flextable 0.6.9
CRAN release: 2021-10-07
new features
- add “nan” option in formatting functions
colformat_*andset_flextable_defaults. - new function
surround()to ease the highlighting of specific cells with borders. - add “pdf” option for previewing a flextable in PDF with
print(x, preview ="pdf").
flextable 0.6.8
CRAN release: 2021-09-06
Issues
- fix issue with border spaces and widths in HTML output. #343
- fix tests obfuscations with “pandoc-citeproc” that was not necessary.
flextable 0.6.7
CRAN release: 2021-07-22
new features
- tab.lp is now a knitr supported chunk option and can be use to change the label prefix for the table sequence id when a caption is used. See https://github.com/davidgohel/officedown/issues/71.
- support for
tab.topcaptionthat let modify the table caption position from “top” (TRUE) to “bottom” (FALSE). - add helper function
before()to ease addition ofhline()before some values to match with.
Issues
- fix issue with white spaces instead of empty borders in HTML output
- fix issue with missing top or right border in LaTeX output (thanks to huaixv for the fix)
- Table cells containing square braces were causing errors (thanks to Nick Bart for the fix)
- fix proc_freq error when include.row_percent, include.table_percent and include.column_percent are all set to FALSE.
flextable 0.6.6
CRAN release: 2021-05-17
flextable 0.6.4
CRAN release: 2021-03-10
new features
- export of
chunk_dataframefor those who want to create functions that work withas_paragraph. - in R Markdown for Word, bookmarks are now added to captions when output format is from bookdown
- shadow hosts HTML elements get the class
flextable-shadow-host. -
set_flextable_defaultsnow accept argumentpaddingthat set values for padding top, bottom, left and right. - new functions
colorize,as_highlight - functions
nrow_partandncol_keysare now exported
flextable 0.6.3
CRAN release: 2021-02-01
new features
-
composehas a new argumentuse_dotto let use.and loop over columns - new function
init_flextable_defaults() - inst/mediasrc/man-figures.R can also be used for visual testing with
git diff
Issues
- fix line spacing with pdf output
- Now
colformat_numcalls theformatfunction on the numeric values (integer and float) which are therefore displayed as in console R. This function is used during the creation of a flextable so that by default the content of the cells is the same as that displayed in console R.
flextable 0.6.2
CRAN release: 2021-01-25
changes
- new documentation! See at https://ardata-fr.github.io/flextable-book/
new features
-
merge_vhas a new argumentcombineto let use j columns be used as a single value (all values are pasted). - new function
add_bodyfor adding rows into a flextable body - new function
colformat_imagefor images in flextable - new method
as_flextableforgammodels - function
set_flextable_defaultsgained 4 new argumentspost_process_pdf,post_process_html,post_process_docxandpost_process_pptxto enable flextable post-treatments conditionned by the output format. - new helper functions
fp_text_defaultandfp_border_default.
Issues
- fix encoding issue with Windows platforms
- bring back caption into the table
- fix overlapping issue with hline_top #244
- fix
\nand\tusage for pdf
flextable 0.6.1
CRAN release: 2020-12-08
new features
- HTML flextable are now isolated from the document CSS (except caption which is copied before).
flextable 0.6.0
CRAN release: 2020-12-01
new features
- flextable now supports PDF/latex output format.
- new function
highlight()for text highlighting color - new function
set_flextable_defaults()to set some default formatting properties, i.e. default border color, font color, padding, decimal.mark … -
save_as_docxgained a new argumentpr_sectionto define page layout with section properties,save_as_htmlcan now output more than a single table. -
colformat_functions now use default values and filter columns that are irrelevant (i.e. if colformat_num, only numeric values are formatted). Also, newcolformat_functions have been implemented (colformat_date,colformat_datetimeandcolformat_double). - new functions
plot_chunkandgg_chunkto add miniplots or ggplots into a flextable
changes
- defunct of
ph_with_flextable() - use pandoc’s raw attribute when possible within “R Markdown” documents.
Issues
- fix bug in HTML output with invalid css when locale makes decimal separator not
. -
fix_border_issuesis the last instruction of all theme functions so that borders are corrected if some cells have been merged. - caption was always printed in bookdown and now it’s conditionned by testing if
tab_props$caphas a value. - fix missing tfoot tag in HTML output
flextable 0.5.11
CRAN release: 2020-09-09
new features
- save_as_html now accepts argument
encoding - line spacing (for Word and PowerPoint) or line height (for HTML) can now be defined with function
line_spacing()(or with functionstyle()).
flextable 0.5.10
CRAN release: 2020-05-15
new features
- flextable captions in Word can be auto-numbered and bookmarked
- function
footnoteis now able to add inline footnotes - support for bookdown references
- new as_flextable methods for lm and glm objects and xtable (replacing
xtable_to_flextable()) - new sugar function
continuous_summary(): summarize continuous columns in a flextable - function
autofitcan now use only some parts of the tables. This allows for example to no longer have gigantic columns by not taking into account the “footer” part that is often composed of long texts. - bookdown and xaringan HTML outputs should now be rendered as expected - table css has been overwritten.
- new function
set_table_propertieslets adapt flextable size as “100%”, “50%” of the available width for Word and HTML.
Changes
- manual pages have been improved and illustrations are added
-
bg()andcolor()now accept functions (i.e.scales::col_numeric())
flextable 0.5.8
CRAN release: 2020-02-17
Changes
- deprecation of
display(). - defunct of
ph_with_flextable_at() - function
knit_to_wml()has new argumentsalign,splitandtab.cap.style - function
htmltools_value()has a new argumentft.align
new features
- new function
flextable_html_dependencyto get flextable htmltools::htmlDependancy. This is necessary to output flextables in html R Markdown documents from loop or other nested operations.
Issues
- fix issue #188, add_rows error that came with version 0.5.7
flextable 0.5.7
CRAN release: 2020-02-03
new features
- new suger functions
save_as_docx,save_as_pptxthat lets users export flextable objects to PowerPoint or Word documents.
Changes
- merge_v can use hidden columns.
- new function
hruleto control how row heights should be understood (at least, auto, exact) - Allow unused values in set_header_labels - PR #172 from DanChaltiel
- deprecation of ph_with_flextable_at, ph_with_flextable will be deprected in the next release
flextable 0.5.6
CRAN release: 2019-11-12
new features
- new function
lollipopthat lets users add mini lollipop chart to flextable (kindly provided by github.com/pteridin) - function
proc_freqgot a new argumentweightto enable weighting of results. - function
as_flextable.grouped_data()has now an argumenthide_grouplabelto let not print the group names.
Issues
- let footnotes symbols be affected by style functions (related to #137)
- enable usage of ‘webshot2’ instead of ‘webshot’. It enable better screenshots. It can be specified with argument
webshotin functionsave_as_imageor with chunk optionwebshot="webshot2".
flextable 0.5.5
CRAN release: 2019-06-25
new features
- new function
knit_to_wmlto let display flextables from non top level calls inside R Markdown document. - ph_with method for flextable object. This enable
ph_location*usage and make placement into slides easier. - new function
fit_to_widthto fit a flextable to a maximum width -
set_captioncan now be used with R Markdown for Word document and caption style can be defined with chunk optiontab.cap.style.
flextable 0.5.2
CRAN release: 2019-04-02
flextable 0.5.1
CRAN release: 2019-02-07
new features
- new themes functions
theme_alafoli()andtheme_vader() - new functions
align_text_col()andalign_nottext_col()to align columns by data type - new functions
merge_h_range()to merge a set of columns row by row - new functions
fix_border_issues()fix issues with borders when cells are merged - new functions
add_header_row(),add_footer_row(),add_header_lines()andadd_footer_lines()to add easily data in header or footer. - new generic function
as_flextable()to let develop new flextable functions - new function
as_grouped_data()and its methodas_flextable()to create row titles to separate data in a flextable.
flextable 0.5.0
CRAN release: 2019-01-31
flextable 0.4.6
CRAN release: 2018-10-31
new features
- a new helper function
body_replace_flextable_at_bkmto replace a bookmarked paragraph by a flextable. - new functions
colformat_*to make content formatting easier. It also deals with NA.
Improvement
- Documentation
format.flextablemethod so that users can create their components. - new knitr chunk options
ft.alignto align tables inrmarkdown::word_documentandft.splitto activate Word option ‘Allow row to break across pages’.
Issues
- fix issue (unordered and duplicated chunk of text) in function
display()
flextable 0.4.5
CRAN release: 2018-08-27
Issues
- fix border rendering with
vline() - empty data.frame are no more generating an error
flextable 0.4.4
CRAN release: 2018-04-19
new features
- Soft return
\nis now supported. Functionautofitanddim_prettydo not support soft returns and may return wrong results (will be considered as ““). - format function for flextable objects.
Issues
- fix border rendering with
border_outer()
flextable 0.4.3
CRAN release: 2018-03-14
new features
- new functions:
hyperlink_text()to be used withdisplay,font() - new functions
hline*()andvline*()and many new helper functions to be used instead of borders.
flextable 0.4.2
CRAN release: 2018-01-10
new features
- new function
xtable_to_flextable()that is returning a flextable from an xtable object. - function
htmltools_value()is exported for shiny applications.
flextable 0.2
new features
- new function
ph_with_flextable_atto add a flextable at any position in a slide. - new function
merge_atis providing a general way of merging cells. - new theme function:
theme_box()
