Define df_printer() as data.frame print method in an R Markdown document.

In a setup run chunk:

flextable::use_df_printer()

use_df_printer()