Vim-R-plugin
Vim-R-plugin copied to clipboard
Issue with clipboard
I'm using the clipboard, to get data that I've copied from Excel. However, when I run the following line with Vim-R-Plugin, it saves the line of code instead of what's in my clipboard.
x <- read.table(file = "clipboard", sep = "\t")
On Windows, the plugin uses the clipboard to "send" the command to R. What it really does is:
- Copy the contents of the clipboard into a temporary variable.
- Copy the command to the clipboard.
- Raise R window and send CTRL-V to it.
- Raise GVim window.
- Restore the clipboard contents.
I have found a way of sending commands to Rgui on Windows without using the clipboard, and the bug is fixed in the Nvim-R plugin.