use_df_printer function

Set data.frame automatic printing as a flextable