Join GitHub today
Cannot read minimalistic XLSX file #506
The error message is
library(readxl) x <- read_excel("styles-sharedStrings-absent.xlsx") #> Error in read_fun(path = enc2native(normalizePath(path)), sheet_i = sheet, : #> Evaluation error: Couldn't find '' in 'D:\Src\readxl\tests\testthat\sheets\styles-sharedStrings-absent.xlsx'.
pushed a commit
Sep 13, 2018
referenced this issue
Sep 13, 2018
For posterity. My reading of ECMA-376 5th edition Part 1 confirms that the Styles Part is not an absolute requirement.
12.2 Package Structure
A SpreadsheetML package shall contain a package-relationship item and a content-type item. The package- relationship item shall have implicit relationships with targets of the following type:
The package-relationship item is permitted to have implicit relationships with targets of the following type:
The required and optional relationships between parts are defined in §12.3 and its subordinate clauses.
and eventually ...
12.3.20 Styles Part
An instance of this part type contains all the characteristics for all the cells in the workbook. Such information includes numeric and text formatting, alignment, font, color, and border.
A package shall contain no more than one Styles part, and that part shall be the target of an implicit relationship from the Workbook (§12.3.23) part.