r - Copy/paste table into gmail -
this easy answer, can't find online it. there easy way copy/paste table r console email message?
i suggest using markdown here extension, available chrome , firefox (the last time checked). used in conjunction kable "knitr" (already recommended) can nicely formatted table in seconds.
after installation, able find "markdown toggle" option in right-click context menu when composing email.
here's gif show steps.

do often? save copying step @ least creating helper function write clipboard (this windows only, can expand on function if wanted compatibility other oses).
gmailtable <- function(indf) writeclipboard(capture.output(knitr::kable(indf))) then, in r, gmailtable(mtcars), switch on gmail, paste contents of clipboard message area, , markdown toggle before :-)
by way, "markdown here" lets use shortcut convert whatever in message area html. default, believe ctrl + shift + m.
Comments
Post a Comment