Skip to content

Instantly share code, notes, and snippets.

@justmytwospence
Last active August 19, 2019 09:15
Show Gist options
  • Save justmytwospence/6331582 to your computer and use it in GitHub Desktop.
Save justmytwospence/6331582 to your computer and use it in GitHub Desktop.
R: Copy R output to the Mac OSX clipboard
snip <- function(input) {
pb <- pipe("pbcopy", "w")
write(input, file=pb)
close(pb)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment