Comments (8)
@stla I think we have talked about using more standard namespace prefixes - I don't have any objections against it - it just means R library authors can't write XML parsing code correctly :)
from xlsx.
They can, since the current released version of readxl
can read the file.
Yes, we already talked about the vt
namespace, but actually it was an issue with the Javascript library js-xlsx
.
from xlsx.
I assure you we R package authors understand XML parsing and namespacing.
In readxl, we wrap an external library, RapidXML, for it speed. Unfortunately, it does not genuinely support XML namespaces and we will have to patch it or workaround that some other way for xlsx that uses nonstandard namespace prefixes. Which seems to consist substantially of xlsx files written by this Haskell library. However this is not the only source and, of course, I want readxl to read everything it should. It's just a matter of prioritization.
So we are working under constraints and making compromises, not incompetent.
Unless there's a specific advantage to using nonstandard namespace prefixes, it would seem to make sense to use the same prefixes as Excel itself, since most xlsx readers will be optimized for that.
from xlsx.
@stla could you check out 0ebcc90 ?
It fixes only 1 prefix in only 1 file - I guess that could be enough at least for your case.
If it is then I could release this quickfix as 4.3 alongside with sheet protection which is in the master already and with upcoming fix for #77
from xlsx.
Hi @qrilka
I've just tried.
-
readxl
: I didn't manage to install the development version, so I can't say (permission denied to copy a dll - the laptop of my job company has a bunch of such funny features). I'll try later, maybe I need to delete the previous version. -
tidyxl
: no change, reading the file still crashes the R session -
openxlsx
: it still cannot read the file, but the error message is different:
> openxlsx::read.xlsx("db0a04c.xlsx")
Error in read.xlsx.default("db0a04c.xlsx") : expecting a single value
from xlsx.
I finally managed to install readxl
(perhaps I didn't need to delete the previous one, actually I had another opened session of RStudio).
And yes, it works !!
I will send the file to @nacnudus for tidyxl
.
from xlsx.
@qrilka
To conclude, your update is nice. The failure of openxlsx
is not highly unfortunate, since we rather use this package for writing (readxl
is better for reading).
from xlsx.
Closing this as resolved, if there is still something missing - pleas raise your voice
from xlsx.
Related Issues (20)
- Depend on microlens instead of lens? HOT 3
- NonEmpty list of worksheets HOT 3
- How to insert a row HOT 4
- Add writing support for large excell files (streaming?) HOT 10
- Writing default stylesheet to file results in excel complaining it's invalid HOT 9
- microlens flag still builds lens as a dependency
- Hyperlink Support HOT 7
- Leaking merge information across worksheets HOT 1
- Handling dates before 1900-03-01 HOT 3
- Add newtype for column and row indexes
- Add integration test that checks correctness with xlsx validator
- Support lens v5.1 HOT 5
- Hackage docs are broken HOT 9
- We shouldn't be able to make sheetnames bigger then 31 characters. HOT 1
- Cell Range dataValidation problem HOT 5
- Still applying code formatting? HOT 4
- Proper support for cross-sheet references, was "Errors creating pivot tables in separate sheets" HOT 4
- Test files missing in sdist HOT 4
- Request: Minimal working example for styles HOT 3
- Cut a release with GHC 9.6 support HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xlsx.