blastula icon indicating copy to clipboard operation
blastula copied to clipboard

Help users avoid pitfalls about javascript-dependent content / interactivity

Open kmasiello opened this issue 2 years ago • 1 comments

A common pitfall when crafting emails is the assumption that the email contents can have the same level of interactivity and reactivity that they might have in a Shiny app or RMD. However, javascript-dependent content will generally not render when emailed -- not due to a limitation of blastula, but as result of how email clients process HTML.

Blastula documentation could be expanded to include best practices in how to email certain types of content, for example:

  • ggplot2 output can be rendered in blastula directly
  • for tables, use gt (non-interactive mode) for nicely formatting tables
  • use webshot2 to capture a rendering of widgets

Additionally, it's worth exploring whether blastula could employ helper functions to automatically transform certain content into an email-friendly version.

kmasiello avatar Jun 01 '23 18:06 kmasiello

It's more complicated than this as well. Even using gt and other options it's notoriously difficult to get things like a decent table with some basic conditional formatting in major clients like outlook.

D3SL avatar Jun 21 '23 11:06 D3SL