Export dataframe to excel with some words color coded?

Hello,

Any idea whether there is a package which allows to export a dataframe to Excel (xlsx) and highlight specific words within cells (not the entire cell) with a color.

I've been using reactable in markdown and highlighted keywords with html-tags. However, currently only export to csv is possible.

I also came across the openxlsx package. It provides for color coding, however, styles are applied to the entire cell; not specific words.

Any idea? Many thanks.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.