我正在运行Ubuntu 11.10,我想要能够写入剪贴板(或主要选择)。以下给出错误
@H_502_24@> x <- 1:10 > dput(x,'clipboard') Error in file(file,"wt") : 'mode' for the clipboard must be 'r' on Unix
如何写入剪贴板/主要选择?
请注意,我已经看到了this old R-Help post,但我还不清楚我应该做什么。
Linux does not have a clipboard but an X11 session has primary and
secondary selections. ?file saysClipboard:
06001
so RTFM applied. Writing to an X11 selection needs multiple threads
and I did not think it worth the very considerable effort of
implementing (unlike for Windows).Note that window managers may have other clipboards,and for example
the RGtk2 package has interfaces to gtk clipboards.