RTVS icon indicating copy to clipboard operation
RTVS copied to clipboard

Consider support for R inside WSL (aka Bash on Ubuntu on Windows)

Open mvacha opened this issue 8 years ago • 9 comments
trafficstars

mvacha avatar Mar 19 '17 14:03 mvacha

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?

int19h avatar Mar 19 '17 21:03 int19h

Mostly package development - I'd like to use the VS toolchain for developing/building R packages for both linux and windows.

mvacha avatar Mar 20 '17 12:03 mvacha

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).

int19h avatar Mar 20 '17 16:03 int19h

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.

mvacha avatar Mar 20 '17 21:03 mvacha

1.2+ supports connectivity to Linux including WSL and Docker. Does it match this request?

MikhailArkhipov avatar Oct 20 '17 19:10 MikhailArkhipov

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

ahy1221 avatar Oct 23 '17 11:10 ahy1221

@karthiknadig has the docs

MikhailArkhipov avatar Oct 23 '17 17:10 MikhailArkhipov

  1. Start bash on Windows and download rtvs-daemon: wget -O rtvs-daemon.tar.gz https://aka.ms/r-remote-services-linux-binary-current tar -xvzf rtvs-daemon.tar.gz
  2. Run the install script: sudo ./rtvs-install . For automated installs sudo ./rtvs-install -s here -s accepts adding a trusted apt repository key to install dotnet core.
  3. Start rtvs daemon, execute the following command: rtvsd
  4. Connect to rtvs-daemon from RTVS using https://localhost:5444 as the path.

karthiknadig avatar Oct 23 '17 17:10 karthiknadig

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.

jacob-long avatar Sep 18 '18 14:09 jacob-long