[R] Passing aruments with source

2010-09-08 Thread Joel
Hi. Im writing a small test program just to see how passing arguments work with R. From the command line everything works as expected but from inside R using source(test.R) i dont know where and how to send in the arguments did try source(test.R --test) but it just says that it cant find or open

Re: [R] Passing aruments with source

2010-09-08 Thread Barry Rowlingson
On Wed, Sep 8, 2010 at 10:11 AM, Joel joda2...@student.uu.se wrote: Hi. Im writing a small test program just to see how passing arguments work with R. From the command line everything works as expected but from inside R using source(test.R) i dont know where and how to send in the arguments

Re: [R] Passing aruments with source

2010-09-08 Thread Joel
That is true but then I (or anyone else using the script) most know exactly what the name in the script is to be able to set it correctly and so on. Therefor it would be much better to be able to just send in the value and let the script handle the variable setting. But thx for the answer

Re: [R] Passing aruments with source

2010-09-08 Thread Barry Rowlingson
On Wed, Sep 8, 2010 at 11:29 AM, Joel joda2...@student.uu.se wrote: That is true but then I (or anyone else using the script) most know exactly what the name in the script is to be able to set it correctly and so on. Therefor it would be much better to be able to just send in the value and

Re: [R] Passing aruments with source

2010-09-08 Thread Joel
Thats an idea will try it out and see how it works Thanks a lot for your help. Joel -- View this message in context: http://r.789695.n4.nabble.com/Passing-aruments-with-source-tp2531012p2531138.html Sent from the R help mailing list archive at Nabble.com.