openxlsx simplifies the the process of writing and styling Excel xlsx files from R and removes the dependency on Java.
The openxlsx package uses global options to simplify formatting:
options("openxlsx.orientation" = "portrait")
## page orientation
See the Formatting vignette for examples.
Additional options
options("openxlsx.compressionLevel" = "9")
## set zip compression level, default is "1".
vignette("formatting", package = "openxlsx")
for examples