R Copy from Clipboard in Ubuntu Linux
问题 I want to copy from the Ubuntu Linux clipboard into R Studio. My workflow consists of moving back and forth between R Studio and LibreOffice Calc. I've found the following code for writing to a Linux X11 clipboard, but I don't know how to read from it. Write to X11 Linux clipboard: 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) } #