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",ThisworksfinetoopenanRsessionfrompowershell.// 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):
OS: Windows_NT x64 10.0.19041
VSCode Version: 1.63.0
R Version: 4.1.2
vscode-R version: v2.3.4
The text was updated successfully, but these errors were encountered:
Whelp. Leave it to me to post an issue then immediately figure out a solution. If you open VSCode on windows in WSL2 via code . to scope things to your current location, the VSCode window that opens now thinks its in a Linux environment, so providing a rterm/rpath in the Linux settings actually works as intended.
This should probably be added to installation documentation somewhere, because in hindsight its rather obvious, but potentially confusing to a new user.
Describe the bug
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
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):
The text was updated successfully, but these errors were encountered: