R-nvim / R.nvim

Neovim plugin to edit R files
GNU General Public License v3.0
155 stars 16 forks source link

:RSend command is broken #67

Closed fbearoff closed 7 months ago

fbearoff commented 7 months ago

Trying to execute an :Rsend command produces the following error

Error  03:43:24 PM msg_show.lua_error   RSend help() Error executing Lua callback: /home/frank/.local/share/nvim/lazy/R.nvim/lua/r/term.lua:25: attempt to concatenate local 'command' (a table value)
stack traceback:
    /home/frank/.local/share/nvim/lazy/R.nvim/lua/r/term.lua:25: in function 'cmd'
    /home/frank/.local/share/nvim/lazy/R.nvim/lua/r/config.lua:733: in function </home/frank/.local/share/nvim/lazy/R.nvim/lua/r/config.lua:733>
PMassicotte commented 7 months ago

Do you have a precise example? I can not reproduce. I just did

:RSend x <- 1

and it worked

jalvesaq commented 7 months ago

I can't replicate the bug. When I do :RSend help() the documentation for "help" (package "utils") is displayed. Please, look at the options clear_line and editing_mode. Maybe they are being set wrongly in your system.

fbearoff commented 7 months ago

That was it!

Setting clear_line = true results in the error

jalvesaq commented 7 months ago

Thank you for reporting!

jalvesaq commented 7 months ago

You should be able to use the option clear_line now. Please, reopen the issue if it's not fixed.