options( "ReporteRs-fontsize" = 11 )
ft_obj <- vanilla.table(mtcars)
# docx example -----
doc = docx( )
doc = addFlexTable( doc, flextable = ft_obj )
writeDoc( doc, file = "add_ft_ex.docx" )
# bsdoc example -----
doc = bsdoc( )
doc = addFlexTable( doc, flextable = ft_obj )
writeDoc( doc, file = "add_ft_ex/index.html" )
# bsdoc example -----
doc = pptx( )
doc = addSlide( doc, slide.layout = "Title and Content" )
doc = addFlexTable( doc, flextable = ft_obj )
writeDoc( doc, file = "add_ft_ex.pptx" )
Run the code above in your browser using DataLab