Skip to content

Instantly share code, notes, and snippets.

@sillasgonzaga
Created August 8, 2016 03:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sillasgonzaga/a426b8dafafa5494351718ec339ce170 to your computer and use it in GitHub Desktop.
Save sillasgonzaga/a426b8dafafa5494351718ec339ce170 to your computer and use it in GitHub Desktop.
# source: http://stackoverflow.com/a/21030800/4577128
clipboard <- function(x, sep="\t", row.names=FALSE, col.names=TRUE){
con <- pipe("xclip -selection clipboard -i", open="w")
write.table(x, con, sep=sep, row.names=row.names, col.names=col.names)
close(con)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment