Hello, I would like to get rid of counting lines in fix() when i made a mistake in coding? Is there an easy way to an line numbers to editor? Thanks. Levent TERLEMEZ.
Levent TERLEMEZ wrote:> Hello, > > I would like to get rid of counting lines in fix() when i made a > mistake in coding? Is there an easy way to an line numbers to editor?I think the feature you are requesting is not available. Beside, it is a good idea to use some appropriate editor and source() your function rather than using the fix() function. Uwe Ligges> Thanks. > > Levent TERLEMEZ. > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
[Levent TERLEMEZ]>I would like to get rid of counting lines in fix() when i made >a mistake in coding? Is there an easy way to an line numbers to editor?You may configure R to use the editor you want, the way you want. For example, if you want fix() to start Vim in graphical mode, highlighting file contents using R syntax, and numbering source lines, you might use the following R command: options(editor = "gvim -c \"set nu\" -c \"set ft=r\"") Of course, how to do this much depends on each editor. Some simpler editors may not have options for displaying the line number on each line. Yet, most keep the line counter for the cursor position updated in some mode or status bar, so if nothing better, you can learn to position the cursor while keeping an eye on that. :-) Once you find the proper incantation for your editor, and if you always want it activated, save the R command within your ~/.Rprofile file. P.S. - By the way, much congratulations and thanks to the R Core team for the recent publication of R 2.3.0. -- Fran?ois Pinard http://pinard.progiciels-bpi.ca
Hello Levent, there has recently been a thread on the ESS list by using setnu in EMACS: https://stat.ethz.ch/pipermail/ess-help/2006-April/003450.html Bernhard -----Urspr?ngliche Nachricht----- Von: r-help-bounces at stat.math.ethz.ch [mailto:r-help-bounces at stat.math.ethz.ch] Im Auftrag von Uwe Ligges Gesendet: Mittwoch, 26. April 2006 13:38 An: Levent TERLEMEZ Cc: r-help at stat.math.ethz.ch Betreff: Re: [R] Is there a way.... Levent TERLEMEZ wrote:> Hello, > > I would like to get rid of counting lines in fix() when i made a > mistake in coding? Is there an easy way to an line numbers to editor?I think the feature you are requesting is not available. Beside, it is a good idea to use some appropriate editor and source() your function rather than using the fix() function. Uwe Ligges> Thanks. > > Levent TERLEMEZ. > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html______________________________________________ R-help at stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html ***************************************************************** Confidentiality Note: The information contained in this mess...{{dropped}}