Extensions for 'Flextable'

Build display tables easily by extending the functionality of the 'flextable' package. Features include spanning header, grouping rows, parsing markdown and so on.


ftExtra

R-CMD-check CRANstatus Downloads Monthly downloads

The ftExtra package provides helper functions for the flextable package:

  • colformat_md parses markdown texts in columns
  • span_header makes multi-level headers
  • and more!

Installation

from CRAN

install.packages("ftExtra")

from GitHub

options(repos = c(atusy = 'https://atusy.r-universe.dev', getOption("repos")))
install.packages("ftExtra")

Example

library(ftExtra)

Parse markdown texts

data.frame(
  x = c("**bold**", "*italic*"),
  y = c("^superscript^", "~subscript~"),
  z = c("***~ft~^Extra^** is*", "*Cool*"),
  stringsAsFactors = FALSE
) %>%
  flextable() %>%
  colformat_md()

Span headers

iris %>%
  head %>%
  flextable() %>%
  span_header()

Group rows

library(dplyr, warn.conflicts = FALSE)
iris %>%
  group_by(Species) %>%
  slice(1:2) %>%
  flextable()

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("ftExtra")

0.6.5 by Atsushi Yasumoto, a month ago


https://ftextra.atusy.net, https://github.com/atusy/ftExtra


Report a bug at https://github.com/atusy/ftExtra/issues


Browse source code at https://github.com/cran/ftExtra


Authors: Atsushi Yasumoto [aut, cph, cre] (ORCID: , David Gohel [ctb] , Romain François [ctb] , Tatsuya Shima [ctb]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports dplyr, jsonlite, flextable, tidyr, purrr, magrittr, rmarkdown, rlang, stringr, tibble, tidyselect, xfun, yaml, vctrs

Suggests magick, testthat, knitr, qpdf, withr

System requirements: pandoc (>= 2.0.6) - http://pandoc.org


Imported by apa7.

Suggested by GLMMcosinor, huxtable, mitey, performance.


See at CRAN