> The standard advice for reading the clipboard on OSX is to use the > pipe("pbpaste") connection, but I'm finding it misses the last line. How about using tcltk? if (require("tcltk")) strsplit(tclvalue(tcl("clipboard","get")),"\n")[[1]]