Export graphical tables (gt) generated by functions within the Virusparies package.
This feature is in an experimental phase and may not currently function as expected.
The exportVirusGt function utilizes the gt package for table manipulation and formatting.
For HTML output file names with .html or .htm extensions, an HTML document is generated using the gt package.
Pass TRUE or FALSE to inline_css to include or exclude CSS styles inline (default is FALSE).
Additional options can be passed through .... For RTF output file names with .rtf extension,
an RTF file is created. Use the page_numbering option to control page numbering (default is none).
For image files, use .png for PNG and .pdf for PDF. The gt package relies on Google Chrome installation
for PNG and PDF images. Pass options to webshot2::webshot() through .... Useful PNG options include zoom
(default: 2) and expand (default: 5).
For LaTeX output file names with .tex, .ltx, or .rnw extensions, and .rtf for RTF, the corresponding
documents are generated. No additional options available.
For .docx output, requires rmarkdown package.
When create.dir is set to TRUE, it generates a directory at the specified 'path' argument if the path doesn't already exist.
The optional export_gt_obj argument enables the user to export the data frame as a .rds file alongside the graphical table.