Hi , I am programming on a windows system and have problems using notepad which is my main editor.Each time I try to open the editor from the R IDE, R crashes. So I always have to copy my codes from notepad and paste in R to run them. CAn someone tell me if I am doing anything wrong or is there a better editor(freeware) which I could get. thanks cilver ========================Sylvie B. Forkusam Eppelheimer Str.52/A2-5-2 69115 Heidelberg, Germany Tel: (0049)-06221/346913 Mobile: 0179-6816276
On Thu, 2 Oct 2003, forkusam wrote:> > I am programming on a windows system and have problems > using notepad which is my main editor.Each time I try > to open the editor from the R IDE, R crashes.Not sure what you meant by R IDE, do you mean Rgui?> CAn someone tell me if I am doing anything wrong or is > there a better editor(freeware) which I could get.If you are really "programming" in R, you really should get Emacs/ESS.... -- Cheers, Kevin ------------------------------------------------------------------------------ "On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question." -- Charles Babbage (1791-1871) ---- From Computer Stupidities: http://rinkworks.com/stupid/ -- Ko-Kang Kevin Wang Master of Science (MSc) Student SLC Tutor and Lab Demonstrator Department of Statistics University of Auckland New Zealand Homepage: http://www.stat.auckland.ac.nz/~kwan022 Ph: 373-7599 x88475 (City) x88480 (Tamaki)
Hi, I can recommend two editors: - Emacs/XEmacs in conjunction with the ESS-package (ESS= Emacs Speaks Statistics). It is free software. However, it takes a while until it is working nicely - especially if you have no experience with Emacs/XEmacs. One of the nice features is that you can run R from within XEmacs (I guess also within Emacs, but I am using XEmacs). Some URLs: http://www.gnu.org/directory/text/editors/emacs.html http://www.xemacs.org http://stat.ethz.ch/ESS/ - WinEdt is not freeware but I think it is a nice working environment if you include Uwe Ligges' plug-in which can be accessed from: http://cran.r-project.org/contrib/extra/winedt/ Best thing is probably to download the shareware version of WinEdt (from www.winedt.com), include the R-WinEdt-plug-in and try out if this setting suits you. Best, Roland> -----Original Message----- > From: forkusam [SMTP:forkusam at yahoo.com] > Sent: Thursday, October 02, 2003 11:56 AM > To: r-help at stat.math.ethz.ch > Subject: [R] r editors > > Hi , > I am programming on a windows system and have problems > using notepad which is my main editor.Each time I try > to open the editor from the R IDE, R crashes. > So I always have to copy my codes from notepad and > paste in R to run them. > CAn someone tell me if I am doing anything wrong or is > there a better editor(freeware) which I could get. > thanks > cilver > > ====> ====================> Sylvie B. Forkusam > Eppelheimer Str.52/A2-5-2 > 69115 Heidelberg, Germany > Tel: (0049)-06221/346913 > Mobile: 0179-6816276 > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help+++++ This mail has been sent through the MPI for Demographic Research. Should you receive a mail that is apparently from a MPI user without this text displayed, then the address has most likely been faked. If you are uncertain about the validity of this message, please check the mail header or ask your system administrator for assistance.
forkusam wrote:> Hi , > I am programming on a windows system and have problems > using notepad which is my main editor.Each time I try > to open the editor from the R IDE, R crashes.I guess it looks like R freezes (and R does *not* crash), because R waits until the editor is closed again. That's happens for every editor. Why don't you start your favorite editor in another way? Uwe Ligges> So I always have to copy my codes from notepad and > paste in R to run them. > CAn someone tell me if I am doing anything wrong or is > there a better editor(freeware) which I could get. > thanks > cilver > > ====> ====================> Sylvie B. Forkusam > Eppelheimer Str.52/A2-5-2 > 69115 Heidelberg, Germany > Tel: (0049)-06221/346913 > Mobile: 0179-6816276 > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help
On Thu, 2 Oct 2003 02:56:11 -0700 (PDT), you wrote:>Hi , >I am programming on a windows system and have problems >using notepad which is my main editor.Each time I try >to open the editor from the R IDE, R crashes.It shouldn't crash; can you give more details of how you're opening the editor, and what the symptoms of the crash are? One thing that might be happening: if you use edit(myfunction) then Notepad will start, and R will wait for it to finish before doing anything else. It hasn't crashed, but it looks like it has until you shut down Notepad. Duncan Murdoch
In addition to WinEdt and (X)Emacs of course, See also, http://www.crimsoneditor.com/ (freeware) http://www.jedit.org/ (freeware) http://www.editpadpro.com/ (non-freeware) I know that there exist Syntax Highlighting files for R, but I don't know where you can find them. best, vito ----- Original Message ----- From: forkusam <forkusam at yahoo.com> To: <r-help at stat.math.ethz.ch> Sent: Thursday, October 02, 2003 11:56 AM Subject: [R] r editors> Hi , > I am programming on a windows system and have problems > using notepad which is my main editor.Each time I try > to open the editor from the R IDE, R crashes. > So I always have to copy my codes from notepad and > paste in R to run them. > CAn someone tell me if I am doing anything wrong or is > there a better editor(freeware) which I could get. > thanks > cilver > > ====> ====================> Sylvie B. Forkusam > Eppelheimer Str.52/A2-5-2 > 69115 Heidelberg, Germany > Tel: (0049)-06221/346913 > Mobile: 0179-6816276 > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help
I can also recommend another editor (for the Windows platform) that is freeware and comes with syntax highlighting for R and a variety of other languages. It called SourceEdit. It is a wonderful editor by Joacim Anderson and I highly recommend it. You can download it from: http://www.brixoft.com/ "Rau, Roland" <Rau at demogr.mpg.de> Sent by: r-help-bounces at stat.math.ethz.ch 10/02/2003 06:17 AM To: "'forkusam at yahoo.com'" <forkusam at yahoo.com>, r-help at stat.math.ethz.ch cc: Subject: RE: [R] r editors Hi, I can recommend two editors: - Emacs/XEmacs in conjunction with the ESS-package (ESS= Emacs Speaks Statistics). It is free software. However, it takes a while until it is working nicely - especially if you have no experience with Emacs/XEmacs. One of the nice features is that you can run R from within XEmacs (I guess also within Emacs, but I am using XEmacs). Some URLs: http://www.gnu.org/directory/text/editors/emacs.html http://www.xemacs.org http://stat.ethz.ch/ESS/ - WinEdt is not freeware but I think it is a nice working environment if you include Uwe Ligges' plug-in which can be accessed from: http://cran.r-project.org/contrib/extra/winedt/ Best thing is probably to download the shareware version of WinEdt (from www.winedt.com), include the R-WinEdt-plug-in and try out if this setting suits you. Best, Roland> -----Original Message----- > From: forkusam [SMTP:forkusam at yahoo.com] > Sent: Thursday, October 02, 2003 11:56 AM > To: r-help at stat.math.ethz.ch > Subject: [R] r editors > > Hi , > I am programming on a windows system and have problems > using notepad which is my main editor.Each time I try > to open the editor from the R IDE, R crashes. > So I always have to copy my codes from notepad and > paste in R to run them. > CAn someone tell me if I am doing anything wrong or is > there a better editor(freeware) which I could get. > thanks > cilver > > ====> ====================> Sylvie B. Forkusam > Eppelheimer Str.52/A2-5-2 > 69115 Heidelberg, Germany > Tel: (0049)-06221/346913 > Mobile: 0179-6816276 > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help+++++ This mail has been sent through the MPI for Demographic Research. Should you receive a mail that is apparently from a MPI user without this text displayed, then the address has most likely been faked. If you are uncertain about the validity of this message, please check the mail header or ask your system administrator for assistance. ______________________________________________ R-help at stat.math.ethz.ch mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
What you want to do is startup up a second window/process separately from R so you have R open in one window and your editor open in another window. When you make a change to the source, just write it out without closing the editor, move to the R window and then source it from R: source("/abc.r") You can grab this line from the command history using up arrow so you don't actually have to type it except the first time. That way you can easily go back and forth between R and your editor. This should work with notepad or with any other editor. While we are on the topic of editors, the free gvim editor available at: http://www.vim.org has R syntax highlighting. It is vi enhanced with a GUI, more powerful command set, and cross platform availability including Windows (which is where I used it). There is also an alternate user interface for it, which I have not used, called cream, available at: http://cream.sourceforge.net --- From: forkusam <forkusam at yahoo.com> Hi , I am programming on a windows system and have problems using notepad which is my main editor.Each time I try to open the editor from the R IDE, R crashes. So I always have to copy my codes from notepad and paste in R to run them. CAn someone tell me if I am doing anything wrong or is there a better editor(freeware) which I could get. thanks cilver _______________________________________________ No banners. No pop-ups. No kidding. Introducing My Way - http://www.myway.com
I may be a bit late in replying, but there is another editor which is shareware and has highlighting for R (and a lot of other languages as well). The TextPad: http://www.texpad.com http://www.textpad.com/add-ons/files/syntax/r.zip I use in many ways possible. I also combine it with the source statement in R, as was suggested by Gabor. I have nothing but the best to tell about the TextPad. Andrej _________ Andrej Kveder, M.A. researcher Institute of Medical Sciences SRS SASA; Novi trg 2, SI-1000 Ljubljana, Slovenia phone: +386 1 47 06 440 fax: +386 1 42 61 493 -----Original Message----- From: r-help-bounces at stat.math.ethz.ch [mailto:r-help-bounces at stat.math.ethz.ch]On Behalf Of forkusam Sent: Thursday, October 02, 2003 11:56 AM To: r-help at stat.math.ethz.ch Subject: [R] r editors Hi , I am programming on a windows system and have problems using notepad which is my main editor.Each time I try to open the editor from the R IDE, R crashes. So I always have to copy my codes from notepad and paste in R to run them. CAn someone tell me if I am doing anything wrong or is there a better editor(freeware) which I could get. thanks cilver ========================Sylvie B. Forkusam Eppelheimer Str.52/A2-5-2 69115 Heidelberg, Germany Tel: (0049)-06221/346913 Mobile: 0179-6816276 ______________________________________________ R-help at stat.math.ethz.ch mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help