Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pycharm IntelliJ R extension cannot find R interpreter

Tags:

r

pycharm

After opening a .R file in Pycharm and trying to run the R code, the error R Console Failure: Cannot run console until path to viable R interpreter is specified appears. The R language plugin is installed, as is R for the computer, but PyCharm File -Settings -Languages and Frameworks does not show R (screenshot Screenshot of problems). RStudio runs the R code in the file without problems. PyCharm used to run it, but after closing and reopening PyCharm, the file no longer runs. I did the Edit Configurations that PyCharm asked and specified a .R configuration: the file is my open file that I want to run, the file directory is the working directory. The file in question is an existing file initially created in RStudio. It is not a PyCharm project. Ubuntu 18.04 on Dell Latitude E 7470.

like image 999
Sander Heinsalu Avatar asked Nov 23 '25 11:11

Sander Heinsalu


1 Answers

Restarting PyCharm worked for me.

I was working on a Python project. Then I decided to change to an R project, opened it, and then opened some R files in PyCharm. That's when the error appeared.

I restarted PyCharm and upon reopening it, the R files were all there and the R console was working.

like image 178
Emy Avatar answered Nov 26 '25 03:11

Emy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!