copydat
lets you copy a data.frame
to the clipboard using the ...
... RStudio GUI. Just highlight (in your source console) the name of the data.frame
you want to copy. (Examples: iris
; mtcars
). Click Addins > Copy data
, and you're done.
... R console. Like this: mtcars %>% Copy(dat2tsv) # or dat2rtf
. Paste away!
Supported formats:
It's a work in progress. TODO:
clipboard()
. Easy! :-Dcomment()
--> table caption?)Thanks to @Rstudio and @kevinushey for RStudio Addins and the great examples. And thanks to @schaffman5 for the rtf package!
if (!requireNamespace("devtools", quietly = TRUE))
install.packages("devtools")
devtools::install_github("BAAQMD/copydat")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.