Excel Connector for R

Provides comprehensive functionality to read, write and format Excel data.


XLConnect: Excel Connector for R

CRAN_Status_Badge rdocumentation.org CranLogsTotal CranLogsMonthly CranLogsWeekly codecov

XLConnect is a comprehensive and cross-platform R package for manipulating Microsoft Excel files from within R. XLConnect differs from other related R packages in that it is completely cross-platform and as such runs under Windows, Unix/Linux and Mac (32- and 64-bit). Moreover, it does not require any installation of Microsoft Excel or any other special drivers to be able to read & write Excel files. The only requirement is a recent version of a Java Runtime Environment (JRE).

The package can easily be installed from CRAN via install.packages("XLConnect"). In order to get started have a look at the XLConnect and XLConnect for the Impatient package vignettes, the numerous demos available via demo(package = "XLConnect") or browse through the comprehensive reference manual.

Alternatively, you may install XLConnect directly from our github repository using the excellent devtools package:

require(devtools)

# Installs the master branch of XLConnect (= current development version)
install_github("miraisolutions/xlconnect")

# Installs XLConnect with the given version
install_github("miraisolutions/xlconnect", ref = "<version>")

Please log any enhancement requests or bug reports with a simple and self-contained reproducible example as an issue on our github repository. For other questions you may also use Stackoverflow.

Build for release on CRAN

devtools::build(args=c("--compact-vignettes=gs+qpdf"))

Run tests with testthat

You need to have run devtools::install() first.

library(testthat)
library(XLConnect)
test_dir("tests/testthat")

Local Coverage Report

For a local html report, you need to install.packages(c("DT", "htmltools"))

You can create a local coverage report, viewable in a web browser, by running

library(covr)
covr:report()

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("XLConnect")

1.3.0 by Martin Studer, 8 months ago


https://mirai-solutions.ch https://github.com/miraisolutions/xlconnect


Report a bug at https://github.com/miraisolutions/xlconnect/issues


Browse source code at https://github.com/cran/XLConnect


Authors: Mirai Solutions GmbH [aut] , Martin Studer [cre] , The Apache Software Foundation [ctb, cph] (Apache POI) , Graph Builder [ctb, cph] (Curvesapi Java library) , Brett Woolridge [ctb, cph] (SparseBitSet Java library)


Documentation:   PDF Manual  


GPL-3 license


Imports methods, rJava

Suggests lattice, ggplot2, zoo, testthat, withr

System requirements: Java (>= 8)


Suggested by D4TAlink.light, JGR, psyverse.


See at CRAN