Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Unable to find R intepreter. #4352

Open
eduardszoecs opened this issue Jan 6, 2019 · 1 comment
Open

Unable to find R intepreter. #4352

eduardszoecs opened this issue Jan 6, 2019 · 1 comment

Comments

@eduardszoecs
Copy link

eduardszoecs commented Jan 6, 2019

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
Copy link

disadone commented Apr 7, 2020

So…… how to solve this problem?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants