Read Untidy Excel Files

Imports non-tabular from Excel files into R. Exposes cell content, position and formatting in a tidy structure for further manipulation. Tokenizes Excel formulas. Supports '.xlsx' and '.xlsm' via the embedded 'RapidXML' C++ library <>. Does not support '.xlsb' or '.xls'.

Travis-CI BuildStatus AppVeyor BuildStatus CranStatus CranDownloads codecov

tidyxl imports non-tabular data from Excel files into R. It exposes cell content, position, formatting and comments in a tidy structure for further manipulation, especially by the unpivotr package. It supports the xml-based file formats ‘.xlsx’ and ‘.xlsm’ via the embedded RapidXML C++ library. It does not support the binary file formats ‘.xlsb’ or ‘.xls’.

It also provides a function xlex() for tokenizing formulas. See the [vignette](file:///home/nacnudus/R/tidyxl/docs/articles/smells.html) for details. It is useful for detecting ‘spreadsheet smells’ (poor practice such as embedding constants in formulas, or using deep levels of nesting), and for understanding the dependency structures within spreadsheets.




The package includes a spreadsheet, ‘titanic.xlsx’, which contains the following pivot table:

ftable(Titanic, row.vars = 1:2)
#>              Age      Child     Adult    
#>              Survived    No Yes    No Yes
#> Class Sex                                
#> 1st   Male                0   5   118  57
#>       Female              0   1     4 140
#> 2nd   Male                0  11   154  14
#>       Female              0  13    13  80
#> 3rd   Male               35  13   387  75
#>       Female             17  14    89  76
#> Crew  Male                0   0   670 192
#>       Female              0   0     3  20

The multi-row column headers make this difficult to import. A popular package for importing spreadsheets coerces the pivot table into a dataframe. It treats the second header row as though it were observations.

titanic <- system.file("extdata/titanic.xlsx", package = "tidyxl")
#> # A tibble: 10 x 7
#>    X__1  X__2   Age      Child X__3  Adult X__4 
#>    <chr> <chr>  <chr>    <chr> <chr> <chr> <chr>
#>  1 <NA>  <NA>   Survived No    Yes   No    Yes  
#>  2 Class Sex    <NA>     <NA>  <NA>  <NA>  <NA> 
#>  3 1st   Male   <NA>     0     5     118   57   
#>  4 <NA>  Female <NA>     0     1     4     140  
#>  5 2nd   Male   <NA>     0     11    154   14   
#>  6 <NA>  Female <NA>     0     13    13    80   
#>  7 3rd   Male   <NA>     35    13    387   75   
#>  8 <NA>  Female <NA>     17    14    89    76   
#>  9 Crew  Male   <NA>     0     0     670   192  
#> 10 <NA>  Female <NA>     0     0     3     20

tidyxl doesn’t coerce the pivot table into a data frame. Instead, it represents each cell in its own row, where it describes the cell’s address, value and other properties.

x <- xlsx_cells(titanic)
#> Observations: 60
#> Variables: 21
#> $ sheet               <chr> "Sheet1", "Sheet1", "Sheet1", "Sheet1", "S...
#> $ address             <chr> "C1", "D1", "E1", "F1", "G1", "C2", "D2", ...
#> $ row                 <int> 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 4, 4, ...
#> $ col                 <int> 3, 4, 5, 6, 7, 3, 4, 5, 6, 7, 1, 2, 1, 2, ...
#> $ is_blank            <lgl> FALSE, FALSE, TRUE, FALSE, TRUE, FALSE, FA...
#> $ data_type           <chr> "character", "character", "blank", "charac...
#> $ error               <chr> NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA...
#> $ logical             <lgl> NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA...
#> $ numeric             <dbl> NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA...
#> $ date                <dttm> NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, N...
#> $ character           <chr> "Age", "Child", NA, "Adult", NA, "Survived...
#> $ character_formatted <list> [<# A tibble: 1 x 14,   chara… bold  ital...
#> $ formula             <chr> NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA...
#> $ is_array            <lgl> FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, ...
#> $ formula_ref         <chr> NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA...
#> $ formula_group       <int> NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA...
#> $ comment             <chr> NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA...
#> $ height              <dbl> 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15...
#> $ width               <dbl> 8.38, 8.38, 8.38, 8.38, 8.38, 8.38, 8.38, ...
#> $ style_format        <chr> "Normal", "Normal", "Normal", "Normal", "N...
#> $ local_format_id     <int> 2, 3, 3, 3, 3, 2, 3, 3, 3, 3, 2, 2, 3, 3, ...

In this structure, the cells can be found by filtering.

x[x$data_type == "character", c("address", "character")]
#> # A tibble: 22 x 2
#>    address character
#>    <chr>   <chr>    
#>  1 C1      Age      
#>  2 D1      Child    
#>  3 F1      Adult    
#>  4 C2      Survived 
#>  5 D2      No       
#>  6 E2      Yes      
#>  7 F2      No       
#>  8 G2      Yes      
#>  9 A3      Class    
#> 10 B3      Sex      
#> # ... with 12 more rows
x[x$row == 4, c("address", "character", "numeric")]
#> # A tibble: 6 x 3
#>   address character numeric
#>   <chr>   <chr>       <dbl>
#> 1 A4      1st         NA   
#> 2 B4      Male        NA   
#> 3 D4      <NA>         0   
#> 4 E4      <NA>         5.00
#> 5 F4      <NA>       118   
#> 6 G4      <NA>        57.0

Specific sheets can be requested using xlsx_cells(file, sheet), and the names of all sheets in a file are given by xlsx_sheet_names().


The original spreadsheet has formatting applied to the cells. This can also be retrieved using tidyxl, with the xlsx_formats() function.

Formatting is available by using the columns local_format_id and style_format as indexes into a separate list-of-lists structure. ‘Local’ formatting is the most common kind, applied to individual cells. ‘Style’ formatting is usually applied to blocks of cells, and defines several formats at once. Here is a screenshot of the styles buttons in Excel.

Formatting can be looked up as follows.

# Bold
formats <- xlsx_formats(titanic)
x[x$local_format_id %in% which(formats$local$font$bold),
  c("address", "character")]
#> # A tibble: 4 x 2
#>   address character
#>   <chr>   <chr>    
#> 1 C1      Age      
#> 2 C2      Survived 
#> 3 A3      Class    
#> 4 B3      Sex
# Yellow fill
#> [1] NA         NA         NA         "FFFFFF00"
x[x$local_format_id %in%
  which(formats$local$fill$patternFill$fgColor$rgb == "FFFFFF00"),
  c("address", "numeric")]
#> # A tibble: 2 x 2
#>   address numeric
#>   <chr>     <dbl>
#> 1 F11        3.00
#> 2 G11       20.0
# Styles by name
#>    Normal 
#> "Calibri"
head(x[x$style_format == "Normal", c("address", "character")])
#> # A tibble: 6 x 2
#>   address character
#>   <chr>   <chr>    
#> 1 C1      Age      
#> 2 D1      Child    
#> 3 E1      <NA>     
#> 4 F1      Adult    
#> 5 G1      <NA>     
#> 6 C2      Survived
# In-cell formatting is available in the `character_formatted` column as a data
# frame, one row per substring.
examples <- system.file("/extdata/examples.xlsx", package = "tidyxl")
#> [[1]]
#> # A tibble: 16 x 14
#>    charact… bold  italic under… stri… vert…  size colo… colo… colo… color…
#>    <chr>    <lgl> <lgl>  <chr>  <lgl> <chr> <dbl> <chr> <int> <int>  <dbl>
#>  1 in-cell  F     F      <NA>   F     <NA>      0 <NA>     NA    NA NA    
#>  2 bold     T     F      <NA>   F     <NA>      0 FF00…     2    NA NA    
#>  3 italic   F     T      <NA>   F     <NA>      0 FF00…     2    NA NA    
#>  4 underli… F     F      single F     <NA>      0 FF00…     2    NA NA    
#>  5 underli… F     F      double F     <NA>      0 FF00…     2    NA NA    
#>  6 singlea… F     F      singl… F     <NA>      0 FF00…     2    NA NA    
#>  7 doublea… F     F      doubl… F     <NA>      0 FF00…     2    NA NA    
#>  8 striket… F     F      <NA>   T     <NA>      0 FF00…     2    NA NA    
#>  9 subscri… F     F      <NA>   F     subs…     0 FF00…     2    NA NA    
#> 10 supersc… F     F      <NA>   F     supe…     0 FF00…     2    NA NA    
#> 11 red      F     F      <NA>   F     <NA>      0 FFFF…    NA    NA NA    
#> 12 theme    F     F      <NA>   F     <NA>      0 FFC0…     6    NA NA    
#> 13 tint     F     F      <NA>   F     <NA>      0 FFC0…     6    NA  0.800
#> 14 size     F     F      <NA>   F     <NA>      0 FFFF…    NA    NA NA    
#> 15 arial    F     F      <NA>   F     <NA>      0 FFFF…    NA    NA NA    
#> 16 "UTF8St… F     F      <NA>   F     <NA>      0 FFFF…    NA    NA NA    
#> # ... with 3 more variables: font <chr>, family <int>, scheme <chr>

To see all the available kinds of formats, use str(formats).


Comments are available alongside cell values.

x[!$comment), c("address", "comment")]
#> # A tibble: 1 x 2
#>   address comment                                                    
#>   <chr>   <chr>                                                      
#> 1 G11     All women in the crew worked in the victualling department.


Formulas are available, but with a few quirks.

options(width = 120)
y <- xlsx_cells(examples, "Sheet1")
  c("address", "formula", "is_array", "formula_ref", "formula_group",
    "error", "logical", "numeric", "date", "character")]
#> # A tibble: 32 x 10
#>    address formula             is_array formula_ref formula_group error   logical numeric date                character
#>    <chr>   <chr>               <lgl>    <chr>               <int> <chr>   <lgl>     <dbl> <dttm>              <chr>    
#>  1 A1      1/0                 F        <NA>                   NA #DIV/0! NA        NA    NA                  <NA>     
#>  2 A14     1=1                 F        <NA>                   NA <NA>    T         NA    NA                  <NA>     
#>  3 A15     A4+1                F        <NA>                   NA <NA>    NA      1338    NA                  <NA>     
#>  4 A16     DATE(2017,1,18)     F        <NA>                   NA <NA>    NA        NA    2017-01-18 00:00:00 <NA>     
#>  5 A17     "\"Hello, World!\"" F        <NA>                   NA <NA>    NA        NA    NA                  Hello, W…
#>  6 A19     $A$18+1             F        <NA>                   NA <NA>    NA         2.00 NA                  <NA>     
#>  7 B19     A18+2               F        <NA>                   NA <NA>    NA         3.00 NA                  <NA>     
#>  8 A20     $A$18+1             F        A20:A21                 0 <NA>    NA         2.00 NA                  <NA>     
#>  9 B20     A19+2               F        B20:B21                 1 <NA>    NA         4.00 NA                  <NA>     
#> 10 A21     $A$18+1             F        <NA>                    0 <NA>    NA         2.00 NA                  <NA>     
#> # ... with 22 more rows

The top five cells show that the results of formulas are available as usual in the columns error, logical, numeric, date, and character.

Shared formulas

Cells A20 and A21 illustrate how formulas are normalised before being written to file, using the formula_ref and formula_group columns. When there is a group of cells whose formulas only differ by cell reference (e.g. “=A1+1”, “=A2+1”, “=A3+1”, etc.), only one formula in each group is written to the file, so tidyxl infers what the formulas in the other cells in the group must be, from their relative positions.

Array formulas

There are two kinds of array formulas: ones that compute over arrays, and ones whose output is an array (of cells).

Both kinds are distinguished in spreadsheet programs by curly braces, e.g. {SUM(A19:A21*B19:B21)}. In tidyxl, the curly braces are ommitted (as they are from the file itself), and instead the is_array column has the value TRUE.

The first kind (those that compute over arrays) is illustrated by cell A22.

The second kind (those whose value is spread across an array of cells) is illustrated by cells A23 and A24. The formula is only given in the top-left cell (A23), which is also the only cell that describes the range of cells containing the result, in the formula-ref column. The results themselves are stored in all relevant cells (A23 and A24). Unlike shared formulas, there is no formula_group to associate the cells of an array formula’s result. If you need to do identify those cells, use the cellranger package and the formula_ref column.

Formulas referring to other files

Cell A25 contains a formula that refers to another file. The [1] is an index into a table of files. The roadmap for tidyxl includes de-referencing such numbers.

Tokenizing formulas

The function xlex() separates formulas into tokens of different types, and gives their depth within a nested formula. Its name is a bad pun on ‘Excel’ and ‘lexer’. Try the online demo, or install the more experimental lexl package to run demo_lexl() locally.

It is useful for detecting spreadsheet smells, which are poor practices in spreadsheet design, such as deep nests of functions, or embedding constants in formulas.

x <- xlex("MIN(3,MAX(2,A1))")
#> root            
#> ¦-- MIN         function
#> °-- (           fun_open
#>     ¦-- 3       number
#>     ¦-- ,       separator
#>     ¦-- MAX     function
#>     °-- (       fun_open
#>         ¦-- 2   number
#>         ¦-- ,   separator
#>         °-- A1  ref
#>     °-- )       fun_close
#> °-- )           fun_close

See the [vignette](file:///home/nacnudus/R/tidyxl/docs/articles/smells.html) for more examples and details.

Named ranges

Names are imported with xlex_names(). AKA ‘named formulas’ and ‘defined names’, these are usually used to name particular cells or ranges, making formulas that refer to them more readable. Ones that are ranges are identifed by the is_range column (using is_range()), making it easier to match the names to the cells returned by xlsx_cells() – e.g. by using the cellranger package.

When the scope of the name is within a particular sheet, rather than global, the sheet name is given.

#>   rId    sheet                 name                     formula    comment hidden is_range
#> 1   1   Sheet1  named_local_formula MAX(Sheet1!$A$129:$A$130)+1       <NA>  FALSE    FALSE
#> 2   4 E09904.2   sheet_beyond_chart E09904.2!$A$1,E09904.2!$C$1       <NA>  FALSE     TRUE
#> 3  NA     <NA>         intersection   Sheet1!$B:$B Sheet1!$8:$8       <NA>  FALSE     TRUE
#> 4  NA     <NA> named_global_formula             Sheet1!$A$129-1       <NA>  FALSE    FALSE
#> 5  NA     <NA>          named_range               Sheet1!$A$129 My comment  FALSE     TRUE

Data validation rules

Data validation rules are imported with xlsx_validation(). These rules control what values may be entered into a cell, and are often used to create a drop-down list in a cell. Read the [vignette](file:///home/nacnudus/R/tidyxl/docs/articles/data-validation-rules.html) for details.

#> # A tibble: 15 x 14
#>    sheet  ref            type       operator           formu… formu… allow… show_… promp… prom… show… erro… erro… erro…
#>    <chr>  <chr>          <chr>      <chr>              <chr>  <chr>  <lgl>  <lgl>  <chr>  <chr> <lgl> <chr> <chr> <chr>
#>  1 Sheet1 A106           whole      between            0      9      T      T      messa… mess… T     erro… erro… stop 
#>  2 Sheet1 A108           list       <NA>               $B$108 <NA>   T      T      <NA>   <NA>  T     <NA>  <NA>  warn…
#>  3 Sheet1 A110           date       between            2017-… 2017-… T      T      <NA>   <NA>  T     <NA>  <NA>  stop 
#>  4 Sheet1 A111           time       between            00:00… 09:00… T      T      <NA>   <NA>  T     <NA>  <NA>  stop 
#>  5 Sheet1 A112           textLength between            0      9      T      T      <NA>   <NA>  T     <NA>  <NA>  stop 
#>  6 Sheet1 A114           whole      notBetween         0      9      T      T      <NA>   <NA>  T     <NA>  <NA>  stop 
#>  7 Sheet1 A115,A121:A122 whole      equal              0      <NA>   T      T      <NA>   <NA>  T     <NA>  <NA>  stop 
#>  8 Sheet1 A116           whole      notEqual           0      <NA>   T      T      <NA>   <NA>  T     <NA>  <NA>  stop 
#>  9 Sheet1 A117           whole      greaterThan        0      <NA>   T      T      <NA>   <NA>  T     <NA>  <NA>  stop 
#> 10 Sheet1 A119           whole      greaterThanOrEqual 0      <NA>   T      T      <NA>   <NA>  T     <NA>  <NA>  stop 
#> 11 Sheet1 A120           whole      lessThanOrEqual    0      <NA>   T      T      <NA>   <NA>  T     <NA>  <NA>  stop 
#> 12 Sheet1 A118           whole      lessThan           0      <NA>   T      T      <NA>   <NA>  T     <NA>  <NA>  stop 
#> 13 Sheet1 A107           decimal    notBetween         0      9      F      F      <NA>   <NA>  F     <NA>  <NA>  stop 
#> 14 Sheet1 A113           custom     <NA>               A113<… <NA>   T      T      <NA>   <NA>  T     <NA>  <NA>  stop 
#> 15 Sheet1 A109           list       <NA>               $B$108 <NA>   T      T      <NA>   <NA>  T     <NA>  <NA>  info…


Information in in many spreadsheets cannot be easily imported into R. Why?

Most R packages that import spreadsheets have difficulty unless the layout of the spreadsheet conforms to a strict definition of a ‘table’, e.g.:

  • observations in rows
  • variables in columns
  • a single header row
  • all information represented by characters, whether textual, logical, or numeric

These rules are designed to eliminate ambiguity in the interpretation of the information. But most spreadsheeting software relaxes these rules in a trade of ambiguity for expression via other media:

  • proximity (other than headers, i.e. other than being the first value at the top of a column)
  • formatting (colours and borders)

Humans can usually resolve the ambiguities with contextual knowledge, but computers are limited by their ignorance. Programmers are hampered by:

  • their language’s expressiveness
  • loss of information in transfer from spreadsheet to programming library

Information is lost when software discards it in order to force the data into tabular form. Sometimes date formatting is retained, but mostly formatting is lost, and position has to be inferred again.

tidyxl addresses the programmer’s problems by not discarding information. It imports the content, position and formatting of cells, leaving it up to the user to associate the different forms of information, and to re-encode them in tabular form without loss. The unpivotr package has been developed to assist with that step.

Similar projects

tidyxl was originally derived from readxl and still contains some of the same code, hence it inherits the GPL-3 licence. readxl is intended for importing tabular data with a single row of column headers, whereas tidyxl is more general, and less magic.

The rsheets project of several R packages is in the early stages of importing spreadsheet information from Excel and Google Sheets into R, manipulating it, and potentially parsing and processing formulas and writing out to spreadsheet files. In particular, jailbreaker attempts to extract non-tabular data from spreadsheets into tabular structures automatically via some clever algorithms.

tidyxl differs from rsheets in scope (tidyxl will never import charts, for example), and implementation (tidyxl is implemented mainly in C++ and is quite fast, only a little slower than readxl). unpivotr is a package related to tidyxl that provides tools for unpivoting complex and non-tabular data layouts using I not AI (intelligence, not artificial intelligence). In this way it corresponds to jailbreaker, but with a different philosophy.

Mailing list

For bugs and/or issues, create a new issue on GitHub For other questions or comments, please subscribe to the tidyxl-devel mailing list. You must be a member to post messages, but anyone can read the archived discussions.



New features

  • xlsx_cells() and xlsx_formats() replace tidy_xlsx(), which has been deprecated. xlsx_cells() returns a single data frame of all the cells in scope (the whole workbook, or chosen sheets), rather than a list of separate data frames for each sheet. xlsx_formats() performs orders of magnitude faster.
  • xlsx_validation() imports validation rules from cells that restrict data input, such as cells that require a selection from a drop-down list. See the vignette vignette("data-validation-rules", package = "tidyxl").
  • xlsx_names() imports defined names (aka named ranges/formulas), which can be used to filter for particular ranges of cells by name. Use is_range() to filter for ones that are named ranges, and then read joining rules to cells for how to join cell ranges to cell addresses. This will become easier in a future release.
  • is_range() checks whether a formula is simply ranges of cells.
  • xlex() tokenises formulas. This is useful for detecting spreadsheet smells like embedded constants and deep nesting. There is a demo Shiny app, and a vignette vignette("smells", package = "tidyxl"). A vector of Excel function names excel_functions can be used to separated built-in functions from custom functions. More experimental features will be implemented in the off-CRAN package lexl before becoming part of tidyxl.
  • xlsx_cells()$character_formatted is a new column for the in-cell formatting of text (#5). This is for when different parts of text in a single cell have been formatted differently from one another.
  • is_date_format() checks whether a number format string is a date format. This is useful if a cell formula contains a number formatting string (e.g. TEXT(45678,"yyyy")), and you need to know that the constant 45678 is a date in order to recover it at full resolution (rather than parsing the character output "2025" as a year).
  • xlsx_color_theme() and it's British alias xlsx_colour_theme() returns the theme colour palette used in a file. This is useful to monitor use of a corporate standard theme.
  • xlsx_color_standard and it's British alias xlsx_colour_standard are data frames of the standard Excel palette (red, blue, etc.).
  • Shared formulas are propogated to all the cells that use the same formula definition. Relative cell references are handled, so that the formula =A1*2 in cell B1 becomes =A2*2 in cell B2 (for more details see issue #7).
  • Formatting of alignment and cell protection is returned (#20).

Breaking changes and deprecations

  • tidy_xlsx() has been deprecated in favour of xlsx_cells(), which returns a data frame of all the cells in the workbook (or in the requested sheets), and xlsx_formats(), which returns a lookup list of cell formats.
  • In tidy_xlsx() and one of it's replacments xlsx_cells()
    • the column content has been replaced by is_blank, a logical value indicating whether the cell contains data. Please replace ! with !is_blank to filter out blank cells (ones with formatting but no value).
    • the column formula_type has been replaced by is_array, a logical value indicating whether the cell's formula is an array formula or not. In Excel array formulas are represented visually by being surrounded by curly braces {}.
    • The order of columns has been changed so that the more useful columns are visible in narrow consoles.
  • in xlsx_formats() and tidy_xlsx(), theme colours are given by name rather than by number, e.g. "accent6" instead of 4.

Minor fixes and improvements

  • Certain unusual custom number formats that specify colours (e.g. "[Cyan]0%") are no longer mis-detect as dates (#21). is_date_format() tests whether a number format is a date format.
  • xlsx_formats() is now thoroughly tested, and several relatively minor bugs fixed. For example, xlsx_formats(path)$local$fill$patternFill$patternType consistently returns NA and never "none" when a pattern fill has not been set, and escape-backslashes are consistently omitted from numFmts.

New dependency

xlex(), is_range() and the handling of relative references in shared formulas requires a dependency on the piton package, which wraps the PEGTL C++ parser generator.

tidyxl 0.2.3

  • Imports dates on or before 1900-02-28 dates correctly, and only warns on the impossible date 1900-02-29, returning NA (following readxl).
  • Fixes subsecond rounding (following readxl (fixes #14))
  • Imports styles correctly from LibreOffice files (interprets 'true' and 'false' as booleans, as well as the 0 and 1 used by Microsoft Excel, and defaults to 'true' when not present, e.g. applyFill)
  • Fixes a bug that caused some LibreOffice files to crash R, when styles were declared with gaps in the sequence of xfIds.
  • Imports comments attached to blank cells (fixes #10)
  • Includes the sheet and cell address in warnings of impossible datetimes from 1900-02-29.


  • Checks the value of the date1904 attribute for "false" or "1" to support files created by the openxlsx package (#8).
  • Fixed a bug that only imported the first line of multiline comments (#9).
  • Encodes cell and comment text as UTF-8 (#12).
  • Finds worksheets more reliably in files not created by Excel (part of #13).
  • Falls back to default styles when none defined (#13).
  • Imports dates with greater precision (part of #14).
  • Fixed the order of worksheets (#15)

tidyxl 0.2.1

  • Fixed a major bug: dates were parsed incorrectly because the offsets for the 1900 and 1904 systems were the wrong way around.
  • Added a warning when dates suffer from the Excel off-by-one bug.
  • Fixed a bug that misinterpreted some number formats as dates (confused by the 'd' in '[Red]', which looks like a 'd' in 'd/m/y'.)
  • Added support for xlsx files created by Gnumeric (a single, unnamed cell formatting style).
  • Fixed the checkUserInterrupt to work every 1000th cell.
  • Added many tests.
  • Removed lots of redundant code.

tidyxl 0.2.0

  • Breaking change: Look up style formats by style name (e.g. "Normal") instead of by index integer. All the vectors under x$formats$style are named according to the style names. x$data$sheet$style_format_id has been renamed to x$data$sheet$style_format and its type changed from integer (index into style formats) to character (still an index, but looking up the named vectors by name). There are examples in the README and vignette.
  • Simplified some variable names in the C++ code.

tidyxl 0.1.1

  • Fixed many compilation errors on Travis/AppVeyor/r-hub
  • Many small non-breaking changes

tidyxl 0.1.0

  • Added a file to track changes to the package.

Reference manual

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


1.0.0 by Duncan Garmonsway, 3 months ago

Report a bug at

Browse source code at

Authors: Duncan Garmonsway [aut, cre], Hadley Wickham [ctb] (Author of included readxl fragments), RStudio [cph] (Copyright holder of included readxl fragments), Marcin Kalicinski [ctb, cph] (Author of included RapidXML code)

Documentation:   PDF Manual  

GPL-3 license

Imports Rcpp

Suggests testthat, here, knitr, rmarkdown, readxl, dplyr, tidyr, purrr, ggplot2, cellranger, rlang

Linking to Rcpp, piton

Suggested by unpivotr.

See at CRAN