# NOT RUN {
ht <- hux(a = 1:3, b = 1:3)
ft <- as_flextable(ht)
# }
# NOT RUN {
my_doc <- officer::read_docx()
my_doc <- flextable::body_add_flextable(
my_doc, ft)
print(my_doc, target =
"path/to/my_doc.docx")
# }
Run the code above in your browser using DataCamp Workspace