R Tools client: couldn't create connection to server. Launching server using command dotnet failed. Error: spawn dotnet ENOENT
Asked Answered
D

2

11

When trying to use the plot function in an R notebook on visual studio, nothing is shown and I obtain the following error:

[Error - 6:53:47 PM] R Tools client: couldn't create connection to server.
Launching server using command dotnet failed. Error: spawn dotnet ENOENT 

These are the loaded libraries: library(ggplot2) library(TOSTER) library(effectsize) library(lme4) library(e1071) library(lmerTest) library(moments) library(influence.ME) library(Rmisc) library(emmeans) library(tidyr) library(reshape2) library(plotly) library(data.table) library(dplyr) library(psych) # corr.test

Do you know where the problem could come from?

Thank you very much in advance,

Elena

Duro answered 27/1, 2023 at 18:7 Comment(0)
O
4

I think that the problem is caused by the instalation of Rtools, that overwrites the configuration of R.

To fix this go to your settings,

Ctrl-Shift-P >>> Preferences: Open keyboard shortcuts, and remove this configration r.executeInTerminal that's the one of Rtools.

Then it should work.

You can read more from this answer Similar problem

Outlandish answered 10/3, 2023 at 14:59 Comment(2)
how to remove it? when i right-click the option to remove is inactiveToponym
Thanks. I just removed R Tools from the vscode Extensions menu where I also installed it fromBaillie
E
0

R and R Tools are both R extensions for VS Code, it has keyboard shortcuts confliction, so the solution should be just pick one and delete another. Or, you'd better change keyboard shortcuts resulting errors, like r.runSelection and r.executeinTerminal which use 'enter + shift' both. You can easily replace one with something different.

Esperance answered 26/8 at 1:37 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.