Re: [R] About source()

2012-01-04 Thread Uwe Ligges
On 03.01.2012 21:22, Li SUN wrote: Thanks, Rolf, Justin and Uwe! Actually I wanted to run .R file as a script, just like what people do for bash scripts or python scripts. It seems to me that adding #!/usr/bin/R -f at the first line is what I need. Is this true? Perhaps even Rscript rather

Re: [R] About source()

2012-01-04 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 04/01/12 10:39, Uwe Ligges wrote: On 03.01.2012 21:22, Li SUN wrote: Thanks, Rolf, Justin and Uwe! Actually I wanted to run .R file as a script, just like what people do for bash scripts or python scripts. It seems to me that adding

Re: [R] About source()

2012-01-04 Thread Li SUN
Thanks, guys! I am using Rscript at the moment and will definitely try littler. Li Sun 2012/1/4 Rainer M Krug r.m.k...@gmail.com: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 04/01/12 10:39, Uwe Ligges wrote: On 03.01.2012 21:22, Li SUN wrote: Thanks, Rolf, Justin and Uwe!

Re: [R] About source()

2012-01-03 Thread Uwe Ligges
On 03.01.2012 07:50, Rolf Turner wrote: On 03/01/12 17:02, Li SUN wrote: Hello, I am a beginner to the R language and find it fantastic and well-designed, quite different from other programming languages. What a refreshingly sensible attitude!!! :-) This is the first time I post on the

Re: [R] About source()

2012-01-03 Thread Li SUN
Thanks, Rolf, Justin and Uwe! Actually I wanted to run .R file as a script, just like what people do for bash scripts or python scripts. It seems to me that adding #!/usr/bin/R -f at the first line is what I need. Is this true? Li Sun 2012/1/2 Rolf Turner rolf.tur...@xtra.co.nz: On 03/01/12

[R] About source()

2012-01-02 Thread Li SUN
Hello, I am a beginner to the R language and find it fantastic and well-designed, quite different from other programming languages. This is the first time I post on the r-help mailing list. In invoking the function source(filename), it seems that the filename has to exist in the current working

Re: [R] About source()

2012-01-02 Thread Rolf Turner
On 03/01/12 17:02, Li SUN wrote: Hello, I am a beginner to the R language and find it fantastic and well-designed, quite different from other programming languages. What a refreshingly sensible attitude!!! :-) This is the first time I post on the r-help mailing list. In invoking the