Wraps HTML table output in a <div> with overflow CSS so large
tables scroll horizontally, vertically, or both in Gmail.
Examples
if (FALSE) { # \dontrun{
df <- data.frame(x = 1:50, y = rnorm(50))
# Vertical scroll
mc_scroll(knitr::kable(df, format = "html"), direction = "long")
# Horizontal scroll
mc_scroll(knitr::kable(wide_df, format = "html"), direction = "wide")
# Use with mc_compose
body <- mc_compose(
"<p>Here's the data:</p>",
mc_scroll(knitr::kable(df, format = "html"))
)
} # }
