readClipboard removed from utils package?

2019-04-02 02:13发布

I'm using R 3.1.0 and can't seem to find the readClipboard function that should be in the utils package. Is there a way to enable the use that function from an older package?

Thanks.

3条回答
叼着烟拽天下
2楼-- · 2019-04-02 02:30

I think you may be after:

readLines("clipboard")

However, for an OS independent approach see this GitHub package, overflow's, readClip function.

查看更多
太酷不给撩
3楼-- · 2019-04-02 02:37

You can also read from the clipboard with read.table and read.csv

read.table("clipboard", ...)
## or
read.csv("clipboard", ...)

This link has proven useful for me over time.

查看更多
我命由我不由天
4楼-- · 2019-04-02 02:40

read.DIF("clipboard") will do the same job. try that. I think it is possible however to integrate old utils packages. You can download and install them from here

查看更多
登录 后发表回答