Skip to content

Rank Amateur Question

5 messages · Mark Russell, Pascal Oettli, Berend Hasselman +2 more

#
Hi,

I do not use R for Windows. But I would say that you have to run 
'Rscript.exe' in a "CMD" prompt, if I am not mistaken. Not in 'Rgui'.
In 'Rgui', use 'source'.

Hope this helps,
Pascal
On 05/29/2013 03:07 AM, Mark Russell wrote:
#
On 28-05-2013, at 20:07, "Mark Russell" <gibsonsdad at cox.net> wrote:

            
R CMD ? and Rscript are not run from within R itself.
You probably got this from section B1 of the An Introduction to R manual.
You run these commands in a Windows console window.

In an interactive R session you use source(??.). 

?source

There is no need to put your scripts in the same directory where R is installed.
Put them somewhere in your user space.
Read the introductory manual starting from the first page:-)

Berend
#
You probably want from windows GUI:

source("test.R")
To read help to learn about this command type:
?source
at the command prompt. (Similar pattern get help on other commands too - 
its an important R skill/habit).

If your are going to do a lot of script development, I would highly 
recommend you take a look at RStudio, 
http://www.rstudio.com/ide/download/ which is a front end for R that 
greatly streamlines script development and use.

Rob
On 5/28/2013 1:07 PM, Mark Russell wrote:

  
    
#
Second the RStudio but also suggest Tinn-R for a beginner as the more extenseve code highlighting can be very useful.

John Kane
Kingston ON Canada
____________________________________________________________
GET FREE SMILEYS FOR YOUR IM & EMAIL - Learn more at http://www.inbox.com/smileys
Works with AIM?, MSN? Messenger, Yahoo!? Messenger, ICQ?, Google Talk? and most webmails