Produces the error message Error in writeClipboard(str, format) :Īrgument must be a character vector or a raw vector
For example the code > x writeClipboard(x)Ĭopies the string “hello world” to the clipboard as expected. However, the argument to writeClipboard may need to be cast to a character type. R has a function writeClipboard that does what the name implies. These notes explain how to move data between R and Excel and other Windows applications via the clipboard.