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, e.g. 1.0.2
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.
devtools::build(args=c("--compact-vignettes=gs+qpdf"))You need to have run devtools::install() first.
library(testthat)
library(XLConnect)
test_dir("tests/testthat")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()