microsoft / RTVS

R Tools for Visual Studio.
MIT License
390 stars 111 forks source link

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

Open mvacha opened 7 years ago

int19h commented 7 years ago

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?

mvacha commented 7 years ago

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

int19h commented 7 years ago

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

mvacha commented 7 years ago

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.

MikhailArkhipov commented 7 years ago

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

ahy1221 commented 7 years ago

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

MikhailArkhipov commented 7 years ago

@karthiknadig has the docs

karthiknadig commented 7 years ago
  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.
jacob-long commented 6 years ago

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.