Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with clipboard #202

Open
galadude opened this issue Mar 9, 2016 · 2 comments
Open

Issue with clipboard #202

galadude opened this issue Mar 9, 2016 · 2 comments

Comments

@galadude
Copy link

galadude commented Mar 9, 2016

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")

@jalvesaq
Copy link

jalvesaq commented Mar 9, 2016

On Windows, the plugin uses the clipboard to "send" the command to R. What it really does is:

  1. Copy the contents of the clipboard into a temporary variable.
  2. Copy the command to the clipboard.
  3. Raise R window and send CTRL-V to it.
  4. Raise GVim window.
  5. Restore the clipboard contents.

@jalvesaq
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants