Skip to content

Open R console in a new tmux pane #152

Description

@MiboraMinima

I am trying to configure the plugin to launch R in a new tmux pane within the same terminal. I've attempted the following configuration:

external_term = "tmux split-window 'R'"

This config successfully opens a new tmux pane when I start R.nvim and I can write R code in it. However, I am unable to send code from Neovim to the new pane. Additionally, the plugin doesn't function correctly, displaying the message "R is not ready yet" in Neovim when I attempt to run any command linked to R.nvim.

When I start R in the new pane, I see the following output:

ARGUMENT 'new-session' __ignored__

ARGUMENT 'Rnvim-551' __ignored__

ARGUMENT 'RNVIM_TMPDIR=/dev/shm/R.nvim-user' __ignored__

ARGUMENT 'RNVIM_COMPLDIR=/home/user/.cache/R.nvim' __ignored__

ARGUMENT 'RNVIM_ID=2930209553' __ignored__

ARGUMENT 'RNVIM_SECRET=2372621146' __ignored__

ARGUMENT 'RNVIM_PORT=10101' __ignored__

ARGUMENT 'R_DEFAULT_PACKAGES=datasets,utils,grDevices,graphics,stats,methods,nvimcom' __ignored__

ARGUMENT 'R' __ignored__

When I set config_tmux = true, the pane opens and closes immediately. If I set config_tmux = false, the pane stays open but nothing works as expected. The same messages are displayed in both cases.

Additional Information:

  • I use Kitty as my terminal emulator.
  • When I run the tmux split-window 'R' command directly from a terminal (not from within Neovim), it works perfectly.

Is it possible to open an R console in a new tmux pane, as the plugin seems to have been designed to open it in a new terminal ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions