-
Notifications
You must be signed in to change notification settings - Fork 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
conditionalFormatting
replaces the other applied styles - need a parameter stack = TRUE
like with addStyle
#387
Comments
Hi @olivier7121 , thanks for the report. I assume that you did not want the hyperlink color and font to be modified? Most likely that's because the dxfs xml string is created with to many arguments. "<dxf>
<font>
<color rgb=\"FF000000\"/>
<name val=\"Calibri\"/>
<sz val=\"11\"/>
</font>
<fill>
<patternFill patternType=\"solid\">
<bgColor rgb=\"FFBFBFBF\"/>
</patternFill>
</fill>
</dxf>" instead of <dxf>
<font/>
<fill>
<patternFill patternType=\"solid\">
<bgColor rgb=\"FFBFBFBF\"/>
</patternFill>
</fill>
</dxf> |
Thanks for the quick reply, @JanMarvin. Your assumption is right: I didn't want the font color to be modified. I wanted exactly the same behaviour as the one we get when doing this with Excel (i.e. 'superimpose' mode and not 'replace' mode). As I wrote in my first message, it is very similar (if not the same) to the |
I have raised an issue with |
This issue is stale because it has been open 365 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
This issue was closed because it has been stalled for 7 days with no activity. |
The function
conditionalFormatting
replaces the other applied styles (which is not the behaviour expected and observed in Excel). Unlike functionaddStyle
, there is currently no parameterstack = TRUE
to prevent that.Reproducible example (also available on this page of stackoverflow - reprex #2):
R version 4.2.1
openxlsx
version 4.2.5The text was updated successfully, but these errors were encountered: