Closed N1h1l1sT closed 4 years ago
Does uninstalling and reinstalling R help?
Also see #4.
Added troubleshooting to https://github.com/MikhailArkhipov/vscode-r/blob/master/README.md. Will try to add some logging too. RTVS occasionally also had trouble finding R. Is installation per user or per computer (i.e. install for all users)?
It's installed for all users.
I also have encountered a similar problem. I have R (version 3.5.1) installed from source (tried installing both, into /usr
and /usr/local
) and the plugin fails to find this install.
When I installed a R package (version 3.2.3) via an apt-get
command the behavior changed -- R now works (mostly). I can start a console but I am getting "Unable to start R process" message however after that I can execute commands without any further problems.
Additionally, when I substitute /usr/lib/R/bin/R
with a symlink to the source compiled binary the VS Code starts the 3.5.1 version of R console giving me the same message on the start-up as mentioned above. This leaves me with the R version I want and generally works, however I don't think it is a good practice to have everything different versions of everything than the binary itself.
Is there something I am missing? Like a configuration step during R installation which causes difference between the two approaches?
Try 0.0.9.
"r.interpreterPath": "C:\\Program Files\\R\\R-3.4.3"
i.e. root folder. without bin/x64
@MikhailArkhipov
I am using Manjaro Linux. I applied:
"r.interpreterPath": "/usr/bin/radian",
"r.rpath.linux": "/usr/bin/R",
"r.rterm.linux": "/usr/bin/radian",
"r.rterm.option": [""],
I have dotnet-host
, dotnet-sdk
and dotnet-runtime
whose version is 5. I have R and radian
installed.
AFter all this, I received an error:
Unable to start Microsoft.R.Host process. Exception: R host process did not start on the machine. Exception: Unknown error 139
at Microsoft.R.Host.Client.BrokerServices.WebService.EnsureSuccessStatusCode(HttpResponseMessage response)
at Microsoft.R.Host.Client.BrokerServices.WebService.GetHttpPutResponseAsync(Uri uri, String requestBody, CancellationToken cancellationToken)
at Microsoft.R.Host.Client.BrokerServices.WebService.RepeatUntilAuthenticatedAsync[T](Func`2 action, CancellationToken cancellationToken)
at Microsoft.R.Host.Client.BrokerServices.WebService.HttpPutAsync[TRequest,TResponse](Uri uri, TRequest request, CancellationToken cancellationToken)
at Microsoft.R.Host.Client.Host.BrokerClient.CreateBrokerSessionAsync(String name, Boolean useRCommandLineArguments, Boolean isInteractive, CancellationToken cancellationToken)
`
This is closed issue about Windows, please separate one. Then have a look at https://github.com/MikhailArkhipov/vscode-r/issues/72#issuecomment-859285010 and report what happens if you run host manually. Like ./Microsoft.R.Host --help
. It is a native C++ process that may have to be build for specific Linux distro. I provide one that is built on Ubuntu 18, usually it works for most common distros.
The RTVS plugin in VS Code seems unable to locate my R installation. It is possible that a cleaning programme like ccleaner has messed up with something, but what I do know is that the registry keys for R are there and the directory they point to, exists.
See pictures below.