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

Error: The X Window system is required to run R in an external terminal. #61

Closed
groupschoof opened this issue Sep 13, 2013 · 4 comments
Closed

Comments

@groupschoof
Copy link

Dear programmers,

thank your for providing Vim-R-plugin.

I have a probably easy and quick to fulfill request:

Running vim in an ssh session from within tmux I would like to have Vim-R-plugin to open a new tmux window for me.
To achieve this, I set the following in my .vimrc:

let vimrplugin_term_cmd = "tmux new-window 'R"

I tried the latter tmux command and it works, i.e. it opens a new tmux window and starts R in there. But unfortunately I get the error "The X Window system is required to run R in an external terminal".

I assume the plugin checks for a running X window system before even trying to start R?
Could you introduce a simple switch to turn that check off, please?
Something like:
vimrplugin_check_x_win_sys = 0

I for one would be very happy, indeed.

Cheers!

@jalvesaq
Copy link

I changed the plugin's default behavior recently and now you have to manually start Tmux before starting Vim. Please see #52 and #53 for details.

What you want may be achieved with the following procedure:

  1. ssh into the remote machine
  2. Start tmux
  3. Start Vim (with the R script as the file to be edited)
  4. Do <LocalLeader>rf

Please, read about "tvim" in the plugin's documentation to know how to do 2 and 3 at once. What I have written above was already explained in detail in section "Tmux usage" of the plugin's documentation.

@jalvesaq
Copy link

I have improved the warning message. Now it is: "Start 'tmux' before Vim. The X Window system is required to run R in an external terminal."

@groupschoof
Copy link
Author

The problem was trivial:

The version to be found in the official vim-scripts Github repository:
https://github.com/vim-scripts/Vim-R-plugin
does not work as expected.

Once I checkout out this development version's master branch,
R is opened in a split tmux window.

Thanks and Cheers!

@DadongZ
Copy link

DadongZ commented Jul 27, 2016

Hi There, I am still using the previous Vim-R-Plugin version and pretty comfortable about it settings. Recently I upgraded the linux system and got message never before "Start 'tmux' before Vim. The X Window system is required to run R in an external terminal.". The issue is, if I start tmux manually, the vim background were also changed weirdly and furhter ,rc will start a R console in a split window rather than a new window. Do you have some suggestions?

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

3 participants