It may very well have been an error in the PATH variable.

But, I simply deleted the R_HOME variable and also deleted it from the PATH
variable.
Then I made a new one with the exact same values as before (but it worked
this time).

R_HOME = C:\Program Files\R\R-2.12.1
path = ...;%R_HOME%\bin\i386;...

R is now recognized as a command.
Thank you all very much. Im sorry I could not provide a satisfactory
solution

On Thu, Jan 13, 2011 at 1:12 AM, Daniel Nordlund <djnordlund@frontier.com>wrote:

> > -----Original Message-----
> > From: r-help-bounces@r-project.org [mailto:r-help-bounces@r-project.org]
> > On Behalf Of Aaditya Nanduri
> > Sent: Wednesday, January 12, 2011 9:31 PM
> > To: gleynes+r@gmail.com <gleynes%2Br@gmail.com>
> > Cc: r-help@r-project.org; spector@stat.berkeley.edu; Uwe Ligges
> > Subject: Re: [R] R not recognized in command line
> >
> > @ Daniel Nordlund : I've also tried the dir that you recommended. R is
> > still
> > not recognized as a command in CMD.exe
> >
> > @ Uwe Ligges : There are no blanks before or after the semicolon. I added
> > them after I copied it so that it would be more legible. And for some of
> > the
> > dir's in the path, having a backslash at the end still works. However, I
> > tried it with and without the backslash for the R_HOME\bin and \bin\i386
> > folders. Nothing seems to work.
> >
> > @Gene Lynes : I have been using the GUI the whole time so it wasnt too
> > hard
> > changing the path constantly. And I've also set the R_HOME variable as
> > well.
> >
> > I'm starting to regret clearing the partition that had Ubuntu. Life
> > would've
> > been so much easier had I not erased it.
> > I will definitely let you know if I have any breakthroughs.
> >
>
> Well, (1) either the path is still not correct, (2) R is not installed
> where you think it is, or (3) your windows installation is corrupted.
>  (There are probably other options as well.  Let's make sure R is installed
> where you think it is.  The default directory for 32-bit R-2.12.1 on Windows
> (if you accepted the defaults) is
>
> C:\Program Files\R\R-2.12.1\bin\i386
>
> So open up a Windows command shell and execute Rterm by typing the full
> path and filename
>
> "C:\Program Files\R\R-2.12.1\bin\i386\Rterm.exe"
>
> Make sure you include the double quotes around the complete path (because
> of the space in the directory path, and if you changed the installation
> directory then you obviously would need to change the command).  Does R
> start up?  If it does, then you still don't have the correct path stored in
> the PATH environment variable.  If R doesn't start, then it is not installed
> where you think it is.  Let us know your results are.
>
> Dan
>
> Daniel Nordlund
> Bothell, WA USA code.
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
Aaditya Nanduri
aaditya.nanduri@gmail.com

	[[alternative HTML version deleted]]

