[R] how to use a script file for all the codes?

2004-07-04 Thread Jiacheng Yuan
Hi there, I am using the windows version R1.9.0. I used to be a Splus user. When I used Splus to try some computation, I like to put all my codes in a script file and check them line by line. This way I can keep track of all my thinking and it's very easy to make correction at some earlier

Re: [R] how to use a script file for all the codes?

2004-07-04 Thread Prof Brian Ripley
On Sun, 4 Jul 2004, Jiacheng Yuan wrote: I am using the windows version R1.9.0. I used to be a Splus user. When I used Splus to try some computation, I like to put all my codes in a script file and check them line by line. This way I can keep track of all my thinking and it's very easy to

Re: [R] how to use a script file for all the codes?

2004-07-04 Thread Gabor Grothendieck
You can do this: f - function(x)x fix(f) # you are now put into an editor and can change the function # when you save the file you will be taken back to R with the new version of f Alternately, you can ease the use of the source style of operating by hitting up-arrow a few times in the R