Learn R Programming

⚠️There's a newer version (1.2.0) of this package.Take me there.

XLConnect: Excel Connector for R

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 send any enhancement requests or bug reports with a simple and self-contained reproducible example to xlconnect@mirai-solutions.com or log a corresponding 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"))

Copy Link

Version

Install

install.packages('XLConnect')

Monthly Downloads

6,760

Version

1.0.3

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Martin Studer

Last Published

April 11th, 2021

Functions in XLConnect (1.0.3)

XLConnectSettings

Performing general settings for XLConnect
XLConnect-deprecated

Deprecated functions in package XLConnect
aref

Constructing Excel area references
XLConnect-package

Excel Connector for R
aref2idx

Converting Excel cell references to row and column based cell references
addImage-methods

Adding images to a worksheet
XLC

XLConnect Constants
appendNamedRegion-methods

Appending data to a named region
cellstyle-class

Class "cellstyle"
createName-methods

Creating names in a workbook
clearRangeFromReference-methods

Clearing cell ranges in a workbook
appendWorksheet-methods

Appending data to worksheets
existsCellStyle-methods

Retrieving named cell styles
extractSheetName

Extracting the sheet name from a formula
$-methods

Executing workbook methods in object$method(...) form
createFreezePane-methods

Creating a freeze pane on a worksheet
clearSheet-methods

Clearing worksheets in a workbook
existsName-methods

Checking existence of names in a workbook
createSplitPane-methods

Creating a split pane on a worksheet
createCellStyle-methods

Creating custom named and anonymous cell styles
createSheet-methods

Creating worksheets in a workbook
extraction-methods

Workbook data extraction & replacement operators
existsSheet-methods

Checking for existence of worksheets in a workbook
idx2cref

Converting indices to Excel cell references
getCellStyle-methods

Retrieving named cell styles
getCellStyleForType-methods

Querying the cell style per data type for the DATATYPE style action
col2idx

Converting Excel column names to indices
idx2col

Converting column indices to Excel column names
clearNamedRegion-methods

Clearing named regions in a workbook
onErrorCell-methods

Behavior when error cells are detected
getLastColumn-methods

Querying the last (non-empty) column on a worksheet
cloneSheet-methods

Cloning/copying worksheets
mirai

Mirai Solutions GmbH
cref2idx

Converting Excel cell references to indices
normalizeDataframe

Data frame Normalization for Unit Tests
getOrCreateCellStyle-methods

Retrieving or creating named cell styles
clearRange-methods

Clearing cell ranges in a workbook
print-methods

Print a workbook's filename
getLastRow-methods

Querying the last (non-empty) row on a worksheet
getSheets-methods

Querying available worksheets in a workbook
loadWorkbook

Loading Microsoft Excel workbooks
getActiveSheetIndex-methods

Querying the active worksheet index
getTables-methods

Querying available Excel tables in a workbook
getActiveSheetName-methods

Querying the active worksheet name
saveWorkbook-methods

Saving Microsoft Excel workbooks
getReferenceCoordinates-methods

Querying the coordinates of the range reference by an Excel name
getReferenceFormula-methods

Querying reference formulas of Excel names
renameSheet-methods

Renaming worksheets from workbooks
setAutoFilter-methods

Setting auto-filters on worksheets
mergeCells-methods

Merging cells
setActiveSheet-methods

Setting the active worksheet in a workbook
readNamedRegionFromFile

Reading named regions from an Excel file (wrapper function)
readTable

Reading Excel tables from a workbook
getDefinedNames-methods

Retrieving defined names in a workbook
getForceFormulaRecalculation-methods

Querying the coordinates of the range reference by an Excel name
getBoundingBox-methods

Querying the coordinates of a worksheet bounding box
setFillBackgroundColor-methods

Specifying the fill background color for cell styles
setDataFormatForType-methods

Setting the data format for the DATA_FORMAT_ONLY style action
readNamedRegion

Reading named regions from a workbook
isSheetHidden-methods

Checking if worksheets are hidden in a workbook
getSheetPos-methods

Querying worksheet position
getReferenceCoordinatesForName-methods

Querying the coordinates of the range reference by an Excel name
readWorksheetFromFile

Reading data from worksheets in an Excel file (wrapper function)
getCellFormula-methods

Retrieving formula definitions from cells
getReferenceCoordinatesForTable-methods

Querying the coordinates of the range of an Excel table
readWorksheet-methods

Reading data from worksheets
setMissingValue-methods

Setting missing value identifiers
swissfranc

Historical Exchange Rates: CHF vs EUR, USD and GBP
summary-methods

Summarizing workbook objects
setCellStyleForType-methods

Setting the cell style per data type for the DATATYPE style action
removePane-methods

Removing panes from worksheet
setCellStyle-methods

Setting cell styles
removeSheet-methods

Removing worksheets from workbooks
isSheetVeryHidden-methods

Checking if worksheets are very hidden in a workbook
writeNamedRegionToFile

Writing named regions to an Excel file (wrapper function)
wrapList

Wrapping of arguments in a list
setRowHeight-methods

Setting the height of a row in a worksheet
hideSheet-methods

Hiding worksheets in a workbook
writeWorksheet-methods

Writing data to worksheets
setSheetColor-methods

Setting colors on worksheet tabs
setSheetPos-methods

Setting worksheet position
writeNamedRegion-methods

Writing named regions to a workbook
removeName-methods

Removing names from workbooks
unhideSheet-methods

Unhiding worksheets in a workbook
workbook-class

Class "workbook"
setForceFormulaRecalculation-methods

Forcing Excel to recalculate formula values when opening a workbook
setHyperlink-methods

Setting hyperlinks
with.workbook

Evaluate an R expression in a workbook environment
idx2aref

Converting row and column based area references to Excel area references
setStyleNamePrefix-methods

Setting the style name prefix for the "name prefix" style action
setColumnWidth-methods

Setting the width of a column in a worksheet
setStyleAction-methods

Controlling application of cell styles when writing data to Excel
setDataFormat-methods

Specifying custom data formats for cell styles
xlcFreeMemory

Freeing Java Virtual Machine memory
isSheetVisible-methods

Checking if worksheets are visible in a workbook
unmergeCells-methods

Unmerging cells
xlcRestore

Restoring objects from Excel files
writeWorksheetToFile

Writing data to worksheets in an Excel file (wrapper function)
xlcCall

Automatic argument vectorization, default Java exception and warnings handling for XLConnect
xlcDump

Dumping data sets to Excel files
setBorder-methods

Specifying borders for cell styles
setFillForegroundColor-methods

Specifying the fill foreground color for cell styles
xlcEdit

Editing data sets in an Excel file editor
xlcMemoryReport

Reporting free Java Virtual Machine memory
jTryCatch

Standard Java exception handling for XLConnect
setFillPattern-methods

Specifying the fill pattern for cell styles
setCellFormula-methods

Setting cell formulas
setWrapText-methods

Specifying text wrapping behaviour
show-methods

Display a workbook object