SendCode icon indicating copy to clipboard operation
SendCode copied to clipboard

Tmux integration not work maybe due to error "Rscript binary cannot be found automatically"...

Open maxfarrell opened this issue 4 years ago • 0 comments

I got a new laptop and after setting it up I have been using SendCode with the linux terminal. This works, but I've grown frustrated with the ctrl+enter creating a new line if I don't release the ctrl button and press it again (there is an open issue about this).

I'm okay sending code to tmux instead, but for some reason this isn't sending R code. The same thing happens with python so likely a problem with tmux and not this Rscript binary...

I am getting this error "Rscript binary cannot be found automatically. The path to Rscript can be specified in the R-box settings. I assume this might be related to my issue, so following the R-box instructions, I set this as my r-box user settings:

{
    // enable auto completions
    "auto_completions": true,

    // show popup hints
    "show_popup_hints": true,

    // path to Rscript, for example
    // (mac, linux): "/usr/local/bin/Rscript"
    // (windows):    "C:\\Program Files\\R\\R-x.y.z\\bin\\Rscript.exe"
    "rscript_binary": "/usr/local/bin/Rscript",

    // additional paths to PATH variable
    "additional_paths": []
}

This didn't work. I ran which Rscript and it turns out my Rscript binary is actually at "/usr/bin/Rscript", so I tried this, but still doesn't work....

Any tips would be great! Either fixing the new line issue or getting tmux to work with R :)

maxfarrell avatar Sep 21 '21 17:09 maxfarrell