-
My issue is actually a double one. I am trying writing a table which contains text and quantitative data columns with some missing values. The table is formatted with banded rows, which I find useful for the text. I then apply over it conditional formatting to the quantitative data, but since NAs are not in the scale, they retain the banded background. To correct for this, before applying the conditional formatting I have tried to apply a white background on the whole quantitative data range. This is where the issues occur:
I can try to provide a reprex, but looking at my data all looks correct: this happens even if I write only the quantitative columns, a subset of 10 rows, all NaNs replaced with NA...
Surprisingly, using argument "coor" - which as far as I could find out is not documented anywhere - does not cause an error. Instead, I get more or less the expected outcome... except that the background of my #N/A cells is... yellow, not white! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hi @Arthfael , thanks for the question. There might be an issue with Regarding wb_add_fill(gradient_fill = ...) # snake_case argument
wb_add_fill(gradientFill = ...) # camelCase argument Our conversion code converts This has two side effects. The first is, that there is no additional check, that the argument matches specific arguments for a function. Therefore in your case I get that this is probably not as nice as the user expects, but it was a compromise to not create a lot of duplicated code (for snake case and camel case) and to avoid many internal checks (what arguments does the function accept?). At some point in the future, we might drop |
Beta Was this translation helpful? Give feedback.
-
Dear Jan,
Thanks for the clarification on arguments, this makes perfect sense - and also made me aware of the snake vs camel debate, which I had remained oblivious to until now - using inconsistently whichever method I fancied best at the time for my internal code. Kind regards, Armel |
Beta Was this translation helpful? Give feedback.
-
Woohooops... well that did the trick, thank you very much ^^ And thank you once again for a great package! |
Beta Was this translation helpful? Give feedback.
Just realized that there might be another issue in your code. Colors require use of
wb_color()
. Could you please try the following: