microsoft / RTVS

R Tools for Visual Studio.
MIT License
388 stars 118 forks source link

Unable to find R intepreter. #4352

Open eduardszoecs opened 5 years ago

eduardszoecs commented 5 years ago

On arch-linux I get

Unable to find R intepreter. Please install R from https://cran.r-project.org

R is installed & rRTVS just can't find it.

$> which R
/usr/bin/R

It looks like a problem how RTVS identifies R.

In https://github.com/Microsoft/RTVS/blob/46a8f4579e4fd56219af3bb2cf3fd15b84464874/src/Unix/R/Platform/Impl/OS/Linux/InstalledPackageInfo.cs

it looks in /var/lib/dpkg/info/ and if it finds "r-base-core" (or mro) it's happy. However, /var/lib/dpkg/info/ is not robust and not on all Linux available.

A quick fix would be to allow to select the interpreter via a path variable (similar to what vscode-python does).

disadone commented 4 years ago

So…… how to solve this problem?