-
Notifications
You must be signed in to change notification settings - Fork 21
Switch OpenXlsxRenderer to openxlsx2
#76
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
Conversation
|
Hello @JanMarvin |
|
Thanks! There was one thing I wasn’t sure about, the column width and row height appear not to be set by default. Maybe I missed something, if not, it should be possible to set it with a conversion factor from the html width to spreadsheet size |
|
FYI: In the discussion in the linked issue, there is a more general helper for conversion of |
|
Thanks @JanMarvin - in principle I would prefer to use the current version of your package, i.e. openxlsx2. So I've merged this PR though I do have a couple of questions: Q1. Styles Q2. Column Width |
|
Hi @cbailiss , thanks for reaching out. It is a bit late where I live, but I can go into detail later. Q1: Honestly, no idea what
Q2: Sure, we can set the column width. This is possible irrespective of the now slimmer column width in |
Hello @cbailiss ,
thanks for creating the package! I stumbled upon it some time ago and while I reference it in the
openxlsx2book, I haven't had a chance to look into the code a lot. Sincepivottablerusesopenxlsx— which I maintain, but only to keep it alive for its many dependencies on CRAN—and this package is somehow out of date, I created this PR to switch the backend toopenxlsx2.A major difference between
openxlsxandopenxlsx2is the removal of the styles object. Inopenxlsx2all styles live in the styles manager and there are different underlying functions to do style related things, e.g.wb_add_font(),wb_add_fill(). To keep the changes minimal, I added a function to apply all styles inPivotOpenXlsxStyle.This way it should be possible to simply provide functions for both backends,
openxlsxandopenxlsx2if you want this. I understand that switching dependencies as suggested in this PR is a major change and if you have any concerns, please let me know, or simply close the PR.I did some testing with the styling vignette and writing styles seems to work even with the most complicated one: http://www.pivottabler.org.uk/articles/v07-styling.html
[edit] tried to fix the wording.