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.

enter image description here

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

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -