Unfortunately this does not seem to be possible. formatStyle() is
based on JavaScript, and the Buttons extension does not execute the
JavaScript code when you download the data to Excel or PDF. After some
brief testing, I found colors were not preserved when you simply print
the web page as PDF in Chrome, so I guess we have to resort to the
"stone-age" approach, i.e. take a screenshot of the table.
Regards,
Yihui
> --
> You received this message because you are subscribed to the Google Groups
> "Shiny - Web Framework for R" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
shiny-discus...@googlegroups.com.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/shiny-discuss/3408cd87-f630-49f8-9aea-517d7ae8e9ec%40googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.