{"id":14068501,"url":"https://github.com/colearendt/xlsx","last_synced_at":"2025-04-06T13:11:01.880Z","repository":{"id":41243401,"uuid":"39347430","full_name":"colearendt/xlsx","owner":"colearendt","description":"An R package to interact with Excel files using the Apache POI java library","archived":false,"fork":false,"pushed_at":"2022-06-29T18:42:06.000Z","size":1361,"stargazers_count":85,"open_issues_count":72,"forks_count":32,"subscribers_count":11,"default_branch":"main","last_synced_at":"2024-10-11T18:23:16.747Z","etag":null,"topics":["cran","excel","java","r","r-package","rjava","xlsx"],"latest_commit_sha":null,"homepage":"https://colearendt.github.io/xlsx/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/colearendt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-19T20:13:53.000Z","updated_at":"2024-02-12T21:34:38.000Z","dependencies_parsed_at":"2022-07-12T18:18:04.124Z","dependency_job_id":null,"html_url":"https://github.com/colearendt/xlsx","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colearendt%2Fxlsx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colearendt%2Fxlsx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colearendt%2Fxlsx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colearendt%2Fxlsx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/colearendt","download_url":"https://codeload.github.com/colearendt/xlsx/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247485287,"owners_count":20946398,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cran","excel","java","r","r-package","rjava","xlsx"],"created_at":"2024-08-13T07:06:13.416Z","updated_at":"2025-04-06T13:11:01.860Z","avatar_url":"https://github.com/colearendt.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"  \u003c!-- badges: start --\u003e\n  [![CRAN Version](https://www.r-pkg.org/badges/version-last-release/xlsx)](https://CRAN.R-project.org/package=xlsx)\n  [![Codecov test coverage](https://codecov.io/gh/colearendt/xlsx/branch/main/graph/badge.svg)](https://codecov.io/gh/colearendt/xlsx?branch=main)\n  [![R-CMD-check](https://github.com/colearendt/xlsx/workflows/R-CMD-check/badge.svg)](https://github.com/colearendt/xlsx/actions)\n  [![CRAN Activity](https://cranlogs.r-pkg.org/badges/xlsx)](https://CRAN.R-project.org/package=xlsx)\n  [![CRAN History](https://cranlogs.r-pkg.org/badges/grand-total/xlsx)](https://CRAN.R-project.org/package=xlsx)\n  \u003c!-- badges: end --\u003e\n\nxlsx\n========\n\n**An R package to read, write, format Excel 2007 and Excel 97/2000/XP/2003 files**\n\nThe package provides R functions to read, write, and format Excel files.  It depends \non Java, but this makes it available on most operating systems. \n\n## Install\n\nStable version from CRAN\n\n```r\ninstall.packages('xlsx')\n```\n\nOr development version from GitHub\n\n```r\ndevtools::install_github('colearendt/xlsx')\n```\n\n## Common Problems\n\nThis package depends on Java and the [`rJava`](https://www.rforge.net/rJava/) package to make the connection between R and Java seamless.  In order to use the `xlsx` package, you will need to:\n\n- Ensure you have a `jdk` (Java Development Kit, version \u003e= 1.5) installed for your Operating System.  More information can be found on [Oracle's website](https://www.oracle.com/java/technologies/javase-downloads.html)\n\n- Ensure that the system environment variable `JAVA_HOME` is configured appropriately and points to your `jdk` of choice.  Typically, this will be included in your `PATH` environment variable as well.  Options and system environmental variables that are available from `R` can be seen with `Sys.getenv()`\n\n- Particularly on UNIX systems, if you continue experiencing issues, you may need to reconfigure `R`'s support for Java on your system.  From a terminal, use the command `R CMD javareconf`.  You may need to run this as root or prepended with `sudo` to ensure it has appropriate permission.\n\nMore detail can be found in the [`rJava` docs](https://www.rforge.net/rJava/).\n\n## Quick start\n\nTo read the first sheet from spreadsheet into a data.frame \n\n```r\nread.xlsx2('file.xlsx', 1)\n```\nTo write a data.frame to a spreadsheet \n```r\nwrite.xlsx2(iris, file='iris.xlsx')\n```\n\nThe package has many functions that make it easy to style and\nformalize output into Excel, as well.\n\n```r\nwb \u003c- createWorkbook()\ns \u003c- createSheet(wb,'test')\n\ncs \u003c- CellStyle(wb) + \n  Font(wb,heightInPoints = 16, isBold = TRUE) +\n  Alignment(horizontal='ALIGN_CENTER')\n  \n\nr \u003c- createRow(s,1)\ncell \u003c- createCell(r,1:ncol(iris))\n\nsetCellValue(cell[[1]],'Title for Iris')\nfor (i in cell) {\n  setCellStyle(i,cs)\n}\n\naddMergedRegion(s, 1,1, 1,ncol(iris))\n\naddDataFrame(iris, s, row.names=FALSE, startRow=3)\n\nsaveWorkbook(wb,'iris_pretty.xlsx')\n```\n\n## Issues/Mailing list\n\nTo report a bug, use the Issues page at: https://github.com/colearendt/xlsx/issues\n\nIf you are wrestling with the Java dependency, there are some very good\nalternatives that do not require Java. Your choice will vary depending on what\nyou are trying to accomplish.\n\n- [openxlsx](https://github.com/awalker89/openxlsx)\n- [readxl](https://readxl.tidyverse.org/)\n- [writexl](https://docs.ropensci.org/writexl/)\n\n## Acknowledgements\n\nThe package is made possible thanks to the excellent\nwork on [Apache POI](https://poi.apache.org/components/spreadsheet/index.html).\n \n## Code of Conduct\n\nPlease note that the xlsx project is released with a [Contributor Code of Conduct](https://contributor-covenant.org/version/2/0/CODE_OF_CONDUCT.html). By contributing to this project, you agree to abide by its terms.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcolearendt%2Fxlsx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcolearendt%2Fxlsx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcolearendt%2Fxlsx/lists"}