fread
doesn't seem to have this feature, but for limited use, you can easily write your own wrapper for it. Something along the lines of the following might help you get started:
freadClip <- function(...) {
X <- tempfile()
writeLines(readLines("clipboard"), X)
fread(X, ...)
}
Usage would just be copying the cells from your Excel sheet, switching back to R, and typing freadClip()
.
Note: I'm assuming that this is more of a convenience function than anything--mostly for quickly getting a small dataset from Excel into R. I don't know if I would personally use "clipboard"
for a file in the range of 65k rows as you describe in your question.