Skip to content
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

Help users avoid pitfalls about javascript-dependent content / interactivity #306

Open
kmasiello opened this issue Jun 1, 2023 · 1 comment

Comments

@kmasiello
Copy link

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.

@D3SL
Copy link

D3SL commented Jun 21, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants