Re: [R] R File I/O Capability - Writing output to specific lines of existing file

2009-04-09 Thread jim holtman
...@gmail.com wrote: From: jim holtman jholt...@gmail.com Subject: Re: [R] R File I/O Capability - Writing output to specific lines of  existing file To: jasonkrup...@yahoo.com Cc: R-help@r-project.org Date: Wednesday, April 8, 2009, 8:02 PM You can always read in the initialization file, make

[R] R File I/O Capability - Writing output to specific lines of existing file

2009-04-08 Thread Jason Rupert
Currently I am using the R write command to output results to a *.txt file and then copying those results into an initialization file. In an attempt to continue to automate the process I would like to have R write to the location in the existing initialization file, instead of me copying the

Re: [R] R File I/O Capability - Writing output to specific lines of existing file

2009-04-08 Thread jim holtman
You can always read in the initialization file, make the updates to it and then write it back out. If it is a text file, it would be very hard to write into the middle of it since there is no structure to the file. You can read it in as a table (read.table) or just as lines (readLines) and the