Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

openxlsx

xlsx reading, writing and editing.


Description

openxlsx simplifies the the process of writing and styling Excel xlsx files from R and removes the dependency on Java.

Details

The openxlsx package uses global options to simplify formatting:

  • options("openxlsx.borderColour" = "black")

  • options("openxlsx.borderStyle" = "thin")

  • options("openxlsx.dateFormat" = "mm/dd/yyyy")

  • options("openxlsx.datetimeFormat" = "yyyy-mm-dd hh:mm:ss")

  • options("openxlsx.numFmt" = NULL)

  • options("openxlsx.paperSize" = 9) ## A4

  • 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".

See Also

for examples


openxlsx

Read, Write and Edit xlsx Files

v4.2.3
MIT + file LICENSE
Authors
Philipp Schauberger [aut, cre], Alexander Walker [aut], Luca Braglia [ctb], Joshua Sturm [ctb]
Initial release
2020-10-26

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.