I am looking for advice on an editor to use with R (windows) that has an autosave feature. I typically write scripts using the RGui (and tried TinnR yesterday) but I am having continuing problems with BSODs (non R related) and have in the past have had issues with R crashes and would really like a system that does not require me to remember to hit the save button on my script every 10 minutes so that I can avoid redoing everything. W. Michael Conklin Chief Methodologist Google Voice: (612) 56STATS MarketTools, Inc. | www.markettools.com 6465 Wayzata Blvd | Suite 170 |? St. Louis Park, MN 55426. ?PHONE: 952.417.4719 | CELL: 612.201.8978 ?? This email and attachment(s) may contain confidential and/or proprietary information and is intended only for the intended addressee(s) or its authorized agent(s). Any disclosure, printing, copying or use of such information is strictly prohibited. If this email and/or attachment(s) were received in error, please immediately notify the sender and delete all copies
Hi, Take a look at Emacs + ESS (http://ess.r-project.org/). In Emacs you can setup autosaves and control the time interval between them, and it has a number of other wondeful features as a text editor. For example: http://www.emacswiki.org/emacs/AutoSave Cheers, Josh On Wed, Dec 29, 2010 at 8:32 AM, Michael Conklin <michael.conklin at markettools.com> wrote:> I am looking for advice on an editor to use with R (windows) that has an autosave feature. ?I typically write scripts using the RGui (and tried TinnR yesterday) but I am having continuing problems with BSODs (non R related) and have in the past have had issues with R crashes and would really like a system that does not require me to remember to hit the save button on my script every 10 minutes so that I can avoid redoing everything. > > W. Michael Conklin > Chief Methodologist > Google Voice: (612) 56STATS > > MarketTools, Inc. | www.markettools.com > 6465 Wayzata Blvd | Suite 170 |? St. Louis Park, MN 55426. ?PHONE: 952.417.4719 | CELL: 612.201.8978 > This email and attachment(s) may contain confidential and/or proprietary information and is intended only for the intended addressee(s) or its authorized agent(s). Any disclosure, printing, copying or use of such information is strictly prohibited. If this email and/or attachment(s) were received in error, please immediately notify the sender and delete all copies > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >-- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com/
On Wed, Dec 29, 2010 at 11:32 AM, Michael Conklin <michael.conklin at markettools.com> wrote:> I am looking for advice on an editor to use with R (windows) that has an autosave feature. ?I typically write scripts using the RGui (and tried TinnR yesterday) but I am having continuing problems with BSODs (non R related) and have in the past have had issues with R crashes and would really like a system that does not require me to remember to hit the save button on my script every 10 minutes so that I can avoid redoing everything. >I would imagine that most of the popular editors support something along those lines. I use vim and the way it does this is slightly different than what you describe but IMHO better. The problem with auto save is that if you make some mistakes and then discover them you have already saved the mistakes. The way vim works is that rather than auto save the file it auto saves **changes** to a swap file. You can easily get back to the last manual save by just quitting without saving and starting vim again or you can recover to the last auto-saved point after a crash by using the recovery flag: vim -r myfile.txt vim also has the :DiffOrig command which will show you what has changed since the last manual save. Its also possible to implement a vim script that does true auto save and you can find such scripts on the net so you don't have to write it yourself but I suspect the people who wrote them did not really understand that vim already has a superior approach to this. The functionality of vim is so vast, including not only vim itself but also 3000+ use contributed scripts, that its quite easy to overlook a feature. -- Statistics & Software Consulting GKX Group, GKX Associates Inc. tel: 1-877-GKX-GROUP email: ggrothendieck at gmail.com
I can also suggest the following: Notepad++ has an AutoSave plugin, a slew of other useful features, and a Scintilla editor. If you use other languages, it is also extensible and has almost no learning curve. NppToR is a background application that allows you to pass lines or files straight from your editor to an R console. Notepad++: notepad-plus-plus.org NppToR: sourceforge.net/projects/npptor/ I can also suggest Geany, another Scintilla-powered editor. In the plugins list, Save Actions has a autosave feature. While Geany doesn't have a native R interface in Windows (I wrote one for myself in AutoHotKey in about 2 mins), it has a ton of other options and is cross-platform. Geany: www.geany.org -------------------------------------- Jonathan P. Daily Technician - USGS Leetown Science Center 11649 Leetown Road Kearneysville WV, 25430 (304) 724-4480 "Is the room still a room when its empty? Does the room, the thing itself have purpose? Or do we, what's the word... imbue it." - Jubal Early, Firefly r-help-bounces at r-project.org wrote on 12/29/2010 11:32:40 AM:> [image removed] > > [R] Windows editor suggestions - autosave > > Michael Conklin > > to: > > R-help > > 12/29/2010 11:35 AM > > Sent by: > > r-help-bounces at r-project.org > > I am looking for advice on an editor to use with R (windows) that > has an autosave feature. I typically write scripts using the RGui > (and tried TinnR yesterday) but I am having continuing problems with > BSODs (non R related) and have in the past have had issues with R > crashes and would really like a system that does not require me to > remember to hit the save button on my script every 10 minutes so > that I can avoid redoing everything. > > W. Michael Conklin > Chief Methodologist > Google Voice: (612) 56STATS > > MarketTools, Inc. | www.markettools.com > 6465 Wayzata Blvd | Suite 170 | St. Louis Park, MN 55426. PHONE: > 952.417.4719 | CELL: 612.201.8978 > This email and attachment(s) may contain confidential and/or > proprietary information and is intended only for the intended > addressee(s) or its authorized agent(s). Any disclosure, printing, > copying or use of such information is strictly prohibited. If this > email and/or attachment(s) were received in error, please > immediately notify the sender and delete all copies > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guidehttp://www.R-project.org/posting-guide.html> and provide commented, minimal, self-contained, reproducible code.