https://github.com/ycphs/openxlsx
openxlsx - a fast way to read and write complex xslx files
https://github.com/ycphs/openxlsx
cran r xlsx
Last synced: 3 months ago
JSON representation
openxlsx - a fast way to read and write complex xslx files
- Host: GitHub
- URL: https://github.com/ycphs/openxlsx
- Owner: ycphs
- License: other
- Created: 2019-10-04T09:23:12.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-11-26T17:58:49.000Z (11 months ago)
- Last Synced: 2024-11-26T18:38:13.469Z (11 months ago)
- Topics: cran, r, xlsx
- Language: R
- Homepage: https://ycphs.github.io/openxlsx/
- Size: 11.7 MB
- Stars: 226
- Watchers: 9
- Forks: 76
- Open Issues: 26
-
Metadata Files:
- Readme: README.md
- Changelog: NEWS.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Support: .github/SUPPORT.md
Awesome Lists containing this project
- jimsghstars - ycphs/openxlsx - openxlsx - a fast way to read and write complex xslx files (R)
README
[openxlsx](https://ycphs.github.io/openxlsx/)
![]()
========[](https://app.codecov.io/gh/ycphs/openxlsx)
[](https://cran.r-project.org/package=openxlsx)
[](https://cran.r-project.org/package=openxlsx)
[](https://github.com/ycphs/openxlsx/actions/workflows/R-CMD-check.yaml)This [R](https://www.R-project.org/) package simplifies the creation of `.xlsx`
files by providing a high level interface to writing, styling and editing
worksheets. Through the use of [`Rcpp`](https://CRAN.R-project.org/package=Rcpp),
read/write times are comparable to the [`xlsx`](https://CRAN.R-project.org/package=xlsx)
and [`XLConnect`](https://CRAN.R-project.org/package=XLConnect) packages with
the added benefit of removing the dependency on Java.**Note:** `openxlsx` is no longer under active development. The package is
maintained, and CRAN warnings will be fixed, but non-critical issues will not be
addressed unless accompanied by a pull request. Packages that depend on
`openxlsx` do not need to take any action, but for new developments, users are
encouraged to use alternatives like `readxl`, `writexl`, or `openxlsx2`. The
first two packages provide support for reading and writing `.xlsx` files. The
latter package is a modern reinterpretation of `openxlsx` and provides similar
functions to modify worksheets. However, it is not a drop-in replacement, so you
may want to consult resources like the
[update vignette](https://janmarvin.github.io/openxlsx2/articles/Update-from-openxlsx.html).## Installation
### Stable version
Current stable version is available on [CRAN](https://CRAN.R-project.org/) via
```R
install.packages("openxlsx", dependencies = TRUE)
```### Development version
```R
install.packages(c("Rcpp", "remotes"), dependencies = TRUE)
remotes::install_github("ycphs/openxlsx")
```## Example
Explore the package with a simple example:
```R
library(openxlsx)# Create a new workbook and add a sheet
wb <- createWorkbook()
addWorksheet(wb, "Sheet 1")# Write data to the sheet
writeData(wb, "Sheet 1", mtcars)# Save the workbook
saveWorkbook(wb, "my_mtcars.xlsx", overwrite = TRUE)
```## Bug/feature request
Please let us know which version of `openxlsx` you are using when posting bug reports.
```R
packageVersion("openxlsx")
```## News
You can find the NEWS file [here](https://raw.githubusercontent.com/ycphs/openxlsx/master/NEWS.md).