Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement write methods for XLSX and ODS #96

Closed
1 of 2 tasks
leeper opened this issue May 20, 2016 · 12 comments
Closed
1 of 2 tasks

Implement write methods for XLSX and ODS #96

leeper opened this issue May 20, 2016 · 12 comments
Milestone

Comments

@leeper
Copy link
Contributor

leeper commented May 20, 2016

And submit it them to the readxl and readODS packages, respectively.

  • write xlsx method
  • write ods method
@leeper leeper added this to the v0.5 milestone May 20, 2016
@jennybc
Copy link

jennybc commented May 20, 2016

Lurker here. Writing xlsx is a really big job. I'm up to my eyeballs in xlsx at this very moment. You might want to do a first pass with one of the packages that already does this. Or is it only offered by the ones that also have undesirable dependencies, e.g., Java? I can't remember. Do you want to write xlsx de novo or mutate an existing workbook?

@chainsawriot
Copy link
Collaborator

This one might be useful, because of its simplicity we can translate it into R.

https://github.com/mmulqueen/odswriter

@jsonbecker
Copy link
Collaborator

Any reason for a goal to remove openxlsx? In my experience, it's had the best speed and most options for working with Excel files.

@jennybc
Copy link

jennybc commented Jun 2, 2016

What degree of xlsx writing are you considering? "Data only" would be totally different (easier) than ... formatting, formulas, etc.

@leeper leeper removed this from the v0.5 milestone Jun 7, 2016
@leeper
Copy link
Contributor Author

leeper commented Jun 7, 2016

@jsonbecker I have a severe case of dependency aversion. It is sometimes too aggressive.

@jennybc Yes, I was thinking of basically being able to push a straightforward data rectangle into some kind of single-sheet template.

@jsonbecker
Copy link
Collaborator

jsonbecker commented Jun 7, 2016

@leeper a suggestion, if this is purely about reducing dependencies:

Maybe with the S3 stuff up and running, it would make more sense to break out read/write methods that are not available in base R into a rio_extras package that imports those packages. It just strikes me that an Excel reader/writer is non-trivial and seems out of scope of the intent of rio as a standalone package to me.

Edit:
D'oh. I misread. It seems like the decision is to use readxl and submit the writer upstream. Carry on.

@leeper
Copy link
Contributor Author

leeper commented Jul 5, 2016

xml2 now supports creating XML documents

@iembry-USGS
Copy link

Is write_ods available yet? I attempted to export to .ods with the CRAN version of rio, but it didn't work. Thank you.

@leeper
Copy link
Contributor Author

leeper commented Feb 14, 2017

@iembry-USGS Support is not yet on CRAN. I'm pushing an update momentarily that will make that available here on GitHub.

@leeper
Copy link
Contributor Author

leeper commented Mar 8, 2017

Sounds like xlsx is being taken care of. #145 (comment)

@leeper leeper modified the milestone: v0.6 Apr 28, 2017
@leeper
Copy link
Contributor Author

leeper commented Aug 30, 2017

Jeroen has given us writexl, also on CRAN.

@leeper leeper closed this as completed Jul 30, 2018
@sda030
Copy link

sda030 commented Jul 11, 2022

If you allow me to reopen this issue, I want to question why your last message, before closing this thread, mentioned Jenny's writexl-package.
If you are dependency-averse I would move from openxlsx to writexl as the latter has no dependencies (unless you count cpp11). openxlsx has 5 (though some are core packages)
writexl is twice as fast as openxlsx.
Github issues (currently 16) for writexl seem mostly centered around whether or not Clippy should be kept or removed from the help pages.. openxlsx has more open issues (due to larger scope).

On the other side, writexl has way fewer downloads compared with openxlsx and xlsx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants