I kept on receiving the error message when trying to export the flextable to word document.
Example:
doc <- read_docx() Error in utils::unzip(file, exdir = tmp) : argument "file" is missing, with no default doc <- body_add_flextable(doc,value=t13,align = "center",split = TRUE) Error in inherits(x, "rdocx") : object 'doc' not found print(doc,target = "Table13.docx") Error in print(doc, target = "Table13.docx") : object 'doc' not found
Among all the errors returned, it seems read_docx() function is not applied correctly. I have no idea how to fix it. Anyone has any ideas? Thanks!