[R] Rank Amateur Question
Pascal Oettli
kridox at ymail.com
Wed May 29 08:46:25 CEST 2013
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:
> Greetings,
>
>
>
> I have just downloaded R onto a 64bit PC running Microsoft 7 Home Edition
> via Rgui. I have quite a bit of programming experience, though not as a
> professional programmer. I am a Measurement and Assessment professional
> (standardized testing). I would like to be able to write R scripts, and call
> them from the command line in Rgui. After two attempts, I receive the
> following error messages
>
>
>
>> R CMD BATCH test.R
>
> Error: unexpected symbol in "R CMD"
>
>
>
>> Rscript test.R
>
> Error: unexpected symbol in "Rscript test.R"
>
>
>
> These commands were taken directly from the R documents found on the
> R-project website.
>
>
>
> Clearly, I am doing something wrong. The script test.R resides in the R
> directory, and includes
>
>
>
> 24 + 6
>
>
>
> and nothing more. The path to test.R is C:\Program Files\R\test.R
>
>
>
> Any assistance would be appreciated.
>
>
>
> Mark Russell, MEd MESA
>
>
>
> Quidquid Latine dictum sit altum videtur.
>
>
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> 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