[R] Running R from windows command prompt

Orvalho Augusto orvaquim at gmail.com
Wed Jun 29 09:51:54 CEST 2011


If you want to have R available under command prompt you need to add
the R executable to the PATH environmental variable doing this (On
Windows XP and it is similar on Vista or 7):
start> right click on My Computer > Choose properties > Advanced >
Envonment variables > Under system variables choose Path and click
EDIT > on variable value at the end of it add ;C:\Program
Files\R\R-2.13.0\bin

Click OK. And you are done.

The C:\Program Files\R\R-2.13.0\bin is the place you have the R
executables which you can find from explorer.

After that your can call R from command prompt like
R CMD BATCH e.g

Good luck
Caveman


On 6/29/11, Michael Sumner <mdsumner at gmail.com> wrote:
> On Wed, Jun 29, 2011 at 1:51 AM, Robert Baer <rbaer at atsu.edu> wrote:
>> Subject: Re: [R] Running R from windows command prompt
>>
> <snip>
>> -------------------
>> Actually, you can 'cut and paste' from at Windows Cmd prompt.  It is done
>> by
>> clicking the
>> C: icon in the upper left of the command window, choosing edit, and 'copy'
>> or 'paste'
>> as desired.
>>
>
> Or shortcut to the Edit menu by right-click in the window.
>
> It is copying out that is weirdest, and worth knowing I think:
> Edit/Mark, then select the text and press Enter to copy it to the
> clipboard.
>
> Cheers, Mike.
>
>> Rob
>>
>> HTH
>> _____________________________________________________
>>
>> Arun Kumar Saha, FRM
>> QUANTITATIVE RISK AND HEDGE CONSULTING SPECIALIST
>> Visit me at: http://in.linkedin.com/in/ArunFRM
>>
>> ______________________________________________
>> R-help at 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.
>>
>> ______________________________________________
>> R-help at 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.
>>
>
>
>
> --
> Michael Sumner
> Institute for Marine and Antarctic Studies, University of Tasmania
> Hobart, Australia
> e-mail: mdsumner at gmail.com
>
> ______________________________________________
> R-help at 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.
>



More information about the R-help mailing list