[R] .R file

2010-10-25 Thread zhiji19
Hello everyone Can you please teach me how to save my homework as .R file? I write my code in RGui. When I tried to save my work, the RGui only allows me to save it as .RData. By the way, after I save my work as .RData, I cannot reopen it. when I open it, only one message comes out as

Re: [R] .R file

2010-10-25 Thread Tal Galili
There is most of what you need here: http://www.statmethods.net/interface/workspace.html Contact Details:--- Contact me: tal.gal...@gmail.com | 972-52-7275845 Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il

Re: [R] .R file

2010-10-25 Thread Dennis Murphy
Hi : It's not clear whether you want to save your code, your R object or both. Tal has already directed you to help for saving objects created in your workspace. As for saving the code, many people write their code in an editor and either copy/paste it into the workspace or, with certain editors,

Re: [R] .R file

2010-10-25 Thread Mike Marchywka
All three of these editors are external to R but have the capability of sending code from the editor to the console. All of them are good and have loyal user bases. Notepad++ is another option; but you have to copy/paste code to R - I mention it because it has syntax highlighting and is

Re: [R] .R file

2010-10-25 Thread Jakson A. Aquino
On Mon, Oct 25, 2010 at 9:11 AM, Mike Marchywka marchy...@hotmail.com wrote: You mention Notepad++, I'm still using vi under cygwin and an ancient copy of ultra edit. People who uses vi or vim may be interested in looking at the plugin to Vim that I'm developing. The plugin works in Windows,

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