Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No R interpreter defined: Many R related features like combination, code checking and help won't be available

I am newbie to pycharm , I have installed this and everytime I got an error when I created a new project , K am not able to find the solution plz help me out .

[ No R interpreter defined. Many R related features like completion, code checking and help won't be available.You can set an interpreter under Preference->Languages->R ]

I tried to fix this as mentioned but I am not able to find where is "preference" .

like image 830
akriti Avatar asked Jul 01 '18 07:07

akriti


People also ask

What is the R interpreter?

R is an interpreted language. When you enter expressions into the R console (or run an R script in batch mode), a program within the R system, called the interpreter, executes the actual code that you wrote. Unlike C, C++, and Java, there is no need to compile your programs into an object language.


3 Answers

For someone who looking solution for this, this is because when you install pycharm, you select to install R plugin but you don't have R interpreter in your machine. Solution is:

  1. Install R interpreter as explained by @sagarsys
  2. In Idea 2018 (Ubuntu), go to: File -> Setting. Looking for "plugin" in the vertical tab, and then uncheck "R language Support". Or if you don't need R, just uninstall it.
like image 173
xsalefter Avatar answered Nov 11 '22 16:11

xsalefter


If you are working in Python and you are getting such error, Then this may be due to adding of the plugin R Language Support during installation of JetBrains Pycharm.

So, to remove this error you need to go to settings->plugins->Installed

There you can select The R Language Support plugin and uninstall that plugin

like image 22
Madhusudan chowdary Avatar answered Nov 11 '22 17:11

Madhusudan chowdary


You need to install the R-Project files from Berkley.

Go to: https://cran.cnr.berkeley.edu

Download and install the package which corresponds to your OS. You are going to want the base distro.

Go back to your new project in PyCharm and open File->Settings

Select "Languages & Frameworks" then "R-Language"

You will add the location of the Rgui.exe file now installed on your PC. (On Windows, this is typically "C:\Program Files\R\R-3.4.3\bin\x64\Rgui.exe"). You will want to select either x32 or x64 depending on your OS.

The program will proceed to update "Skeletons" and you should be good to go.

like image 43
sagarsys Avatar answered Nov 11 '22 16:11

sagarsys