You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am getting a Cannot find R client bug whenever I attempt to pass code to an R session in WSL. I am using WSL2 (Ubuntu 20.04). I'd like to setthe Rpath / Rterm to the WSL versions of R/radian not the Windows versions of R/radian. Currently nothing I have tried works correctly.
To Reproduce
Steps to reproduce the behavior:
Everything is stock freshly installed. Pathing to WSL /usr/bin/R doesn't have any effect with or without prepending the wsl path in either the Linux or Windows Rterm/Rpath settings. When I had R installed on windows .vsc.attach() worked as expected, but I've since removed it.
Do you want to fix by self? (We hope your help!)
Yes?
(If yes,) what kind of help do you want? (e.g. Which file should I fix, Survey (related documents)
I need direction on how to set up the extension with WSL2 properly
(If related)setting.json
// R.exe path for windows"r.rterm.windows": "C:/windows/system32/wsl.exe /usr/bin/R",
This works fine to open an R session from powershell.
// R path for Linux"r.rterm.linux": "/usr/bin/R",
// R command line options (i.e: --vanilla)"r.rterm.option": [],
// An optional encoding to pass to R when executing the file, i.e. 'source(FILE, encoding=ENCODING)'"r.source.encoding": "UTF-8",
// Keeping focus when running"r.source.focus": "editor",
// Use active terminal for all commands, rather than creating a new R terminal"r.alwaysUseActiveTerminal": false,
// Use bracketed paste mode"r.bracketedPaste": true,
// Enable R session watcher"r.sessionWatcher": true,
// Delay in milliseconds before sending each line to rterm (only applies if r.bracketedPaste is false)"r.rtermSendDelay": 8,
Expected behavior
I should be able to open an R session in WSL2 through the extension by pointing to the WSL2 R/radian versions
Environment (please complete the following information):