RTVS
RTVS copied to clipboard
Consider support for R inside WSL (aka Bash on Ubuntu on Windows)
Could you describe some of the scenarios that you would find this useful for? Is it about Linux-only R packages mainly, or having a Unix shell, or something else?
Mostly package development - I'd like to use the VS toolchain for developing/building R packages for both linux and windows.
Do you have C++ in mind here? Because that would be considerably more tricky, since C++ editing in VS is also not WSL-aware (when it comes to things like Intellisense, which needs to know where to pick up header files, for example).
C++ works, not fine, but works. I'm just not sure there is a (long-term) future supporting win-R with cygwin shanigans when now you can have the best of both worlds with WSL natively.
1.2+ supports connectivity to Linux including WSL and Docker. Does it match this request?
Hi I am also very interested in this feature. As an data analysis guy, it will be very useful if I can use R interpreter inside the WSL since serval packages (especially in the bioconductor project ) are built assuming in the linux-like platform.
@MikhailArkhipov I wonder if you give a tutorial of how to do that in the 1.2+ RTVS version
Thank you
@karthiknadig has the docs
- Start bash on Windows and download rtvs-daemon:
wget -O rtvs-daemon.tar.gz https://aka.ms/r-remote-services-linux-binary-currenttar -xvzf rtvs-daemon.tar.gz - Run the install script:
sudo ./rtvs-install. For automated installssudo ./rtvs-install -shere-saccepts adding a trusted apt repository key to install dotnet core. - Start rtvs daemon, execute the following command:
rtvsd - Connect to rtvs-daemon from RTVS using
https://localhost:5444as the path.
This may be a separate issue, but I cannot install rtvs-daemon in WSL (Ubuntu Bionic).
Here's what appears to be the main problem:
dpkg: dependency problems prevent configuration of rtvs-daemon:
rtvs-daemon depends on dotnet-dev-1.0.4 (>= 1.0.4-1); however:
Package dotnet-dev-1.0.4 is not installed.
I've been installing dotnet stuff all morning to no avail.