Create pretty tables for 'Microsoft Word', 'Microsoft PowerPoint' and 'HTML' documents. Functions are provided to let users create tables, modify and format their content. It extends package 'officer' that does not contain any feature for customized tabular reporting and can be used with R Markdown documents. It also work within R markdown documents when rendering to HTML and to 'Microsoft Word' documents.
The flextable package provides a framework for easily create tables for reporting. Tables can be embedded within:
An API is available to let R users create tables for reporting and
control their formatting properties and their layout. A
object is a data.frame representation, it can be manipulated with
functions that give control over:
There are articles on the flextable website that will help you get you to start quickly:
The help pages can be read here.
You can get the development version from GitHub:
The help pages are located at https://davidgohel.github.io/flextable/.
This project is developped and maintained on my own time. In order to
help me to maintain the package, do not send me private emails if you
only have questions about how to use the package. Instead, visit
Stackoverflow and use tags
usually read them and answer when possible.
Anyone getting involved in this package agrees to our Code of Conduct.
When you file a bug report, please spend some time making it easy for me to follow and reproduce. The more time you spend on making the bug report coherent, the more time I can dedicate to investigate the bug as opposed to the bug report.
A great way to start is to contribute an example or improve the documentation.
If you want to submit a Pull Request to integrate functions of yours, please provide:
By using rhub (run
rhub::check_for_cran()), you will see if everything
is ok. When submitted, the PR will be evaluated automatically on travis
and appveyor and you will be able to see if something broke.
xtable_to_flextable()that is returning a flextable from an xtable object.
htmltools_value()is exported for shiny applications.
knit_print()to render flextable in rmarkdown.
regulartable, faster and simpler than
ph_with_flextable_atto add a flextable at any position in a slide.
merge_atis providing a general way of merging cells.