Skip to content
Prev 19773 / 63424 Next

Clipboard connections (PR#8668)

This is not a bug, but user error.  You are failing to close the 
connection.  R has no idea you do not subsequently want to use the 
connection via getConnection.  As the help page ?file and its reference, 
and also the R-news article on connections.

The correct usage is either

source("clipboard")

or

zz <- file("clipboard")
source(zz)
close(zz)

BTW, there are no `clipboard connections': there are file connections to 
the clipboard on Windows only.
On Wed, 8 Mar 2006, graywh at gmail.com wrote: