Re: [R] Open a file to APPEND

2011-09-11 Thread Noah Silverman
Ahhh, Makes sense. I was too busy scouring the help file command. Didn't think to look at cat(). Thanks! -- Noah Silverman UCLA Department of Statistics 8117 Math Sciences Building #8208 Los Angeles, CA 90095 On Sep 11, 2011, at 11:10 PM, Steve Lianoglou wrote: > Hi, > > On Mon, Sep 12, 201

Re: [R] Open a file to APPEND

2011-09-11 Thread Steve Lianoglou
Hi, On Mon, Sep 12, 2011 at 1:51 AM, Noah Silverman wrote: > Hi, > > I want to store the output of my program to a file.  However, With subsequent > runs of  my code, I'd like to append to the same log file. > > Currently, I'm using: > > outfile <- file("log.txt", open="w") > cat(results, file=o

[R] Open a file to APPEND

2011-09-11 Thread Noah Silverman
Hi, I want to store the output of my program to a file. However, With subsequent runs of my code, I'd like to append to the same log file. Currently, I'm using: outfile <- file("log.txt", open="w") cat(results, file=outfile) This works, but will overwrite the log file each time. Is there