Skip to contents

Takes a flextable object (ft) and a filepath (path + filename + extension, e.g., "results/table1.docx") And saves it. Primarily a utility function used by others in the package. Gives the option not to overwrite a file by utilizing serialNext see ?datscience::serialNext for more deatils

Usage

save_flextable(ft, filepath, overwrite = FALSE)

Arguments

ft

A flextable object, to be formatted in accordance with APA. Required!

filepath

Path and filename were the flextable object should be saved, options include the common filetypes .docx (Word), .pptx (Powerpoint), .html (Webpage)

overwrite

(Optional) Boolean, default is FALSE. When overwrite is FALSE and the files already exists, a serialized version of the filename will be created (i.e., appending _001, or _002). Utilizes serialNext

See also

Author

Bjoern Buedenbender