Solved: R command not found Windows
After installing R Programming tool on windows you can easily use the RGui tool and try R Programming example. Sometimes its necessary to run the r program from command line.
If you are facing the issue R command not found Windows in command prompt then due to some reason r executable is not accessible from command prompt.
Actually r is executable of R programming language which can be used to run the R programs. If you type r in command prompt in windows it should display the console for running the R Program.
If your R Programming language is not set correctly then you won't be able to use the tool and instead it will throw "'r' is not recognized as an internal or external command" error.
This tutorial teaches you to set system path variable and resolve the error.
If you opens the command prompt and types:
c:\myexample\r on the console and it throws following error: c:\myexample\r>r 'r' is not recognized as an internal or external command, operable program or batch file.
Then to solve this issue you have to set the bin directory of r programming language into the system path variable.
Open the system environment variables by searching in windows 10 Start -> search box "system environment variables". After then open the system environment variable setting window as shown below:
In the above window click on the "Edit the system environment variables" icon and following window will appear:
In the above window click on "Environment Variables" button and following screen will be displayed:
In the above window find Path row in the System variables and then click on "Edit". Now following window will appear:
In the above window click "New" button and then provide the path of bin directory of your R software installation. Then click on "OK" button to close the window. Similarly close all the windows System Environments settings. After this you should be able to access the R tool from command prompt.
In this tutorial we learned how to solve the "R command not found Windows" error.
R Programming Online Training
Join our online programming training course and learn it from experts.