[R] Synatx Error on start with R --no-save < myfile.R

Uwe Ligges ligges at statistik.uni-dortmund.de
Tue Jul 13 19:04:18 CEST 2004

Philipp Heuser wrote:

> Dear all!
> I wrote my R-code with an editor and loaded it with source("my_file.R"). 
> Everything works fine as expected.
> When I try to start my code with:
> R --no-save < my_file.R 
> I do get a synatx error half way through. The version is 1.9.0 on a Linux 
> system. To start it with  R --no-save < my_file.R works on some machines but 
> on some it doesn't.

Strange, you might experience that some buffers reaching their limits. 
But we cannot know without the code in my_file.R

Anyway, please try the recommended solution instead:

   R BATCH --no-save my_file.R

Uwe Ligges

> Are there any rules I've to consider, when I want to start it that way?
> Any ideas what might cause syntax errors when starting code like that?
> Regards
> Philipp

More information about the R-help mailing list