Skip to content
Prev 246474 / 398498 Next

R not recognized in command line

Hi Aaditya,

I assume you are running some variant of Windows and by the "prompt in
DOS" you are using cmd.exe.

Perhaps you are already, but from your examples it looks like either
A) you are not in the same directory as R or B) are not adding the
path to R in the command.  For example, on Windows I always install R
under C:\R\ so for me inside cmd.exe:

C:\directory> C:\R\R-devel\bin\x64\R

[[[R starts here]]]

alternately you could switch directories over and then just type "R"
at the console:

C:\directory> cd C:\R\R-devel\bin\x64\
C:\R\R-devel\bin\x64> R

[[[R starts here]]]

or since you have set the environment variables:

C:\directory> %R_HOME%\bin\x64\R

[[[R starts here]]]

Alternately, edit the PATH environment variable in Windows and add the
path to R (i.e., R_HOME\bin\i386\ or whatever it is for you), and you
should be able to just enter "R" at the command prompt and have it
start.

Cheers,

Josh

On Tue, Jan 4, 2011 at 9:39 PM, Aaditya Nanduri
<aaditya.nanduri at gmail.com> wrote: