Hi, List When I was writing R code, I notice that there is no number indicating how many lines of codes you are writing. Is there a way to go to a line with defined number? say I want to go to the 20th line. Thanks, Jack [[alternative HTML version deleted]]
This depends on the editor you use for writing R code rather than on R. Uwe Ligges Jack Luo wrote:> Hi, List > > When I was writing R code, I notice that there is no number indicating how > many lines of codes you are writing. Is there a way to go to a line with > defined number? say I want to go to the 20th line. > > Thanks, > > Jack > > [[alternative HTML version deleted]] > > ______________________________________________ > 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.
Jack Luo wrote:> Hi, List > > When I was writing R code, I notice that there is no number indicating how > many lines of codes you are writing. Is there a way to go to a line with > defined number? say I want to go to the 20th line.If you are using the Rgui script editor in Windows, then there is no way to do that. (Most people use an external editor for serious editing). The editor in the Mac GUI has this option in the Edit menu. Duncan Murdoch
RWinEdt has line indication. You might want to try that. Uwe Ligges-3 wrote:> > This depends on the editor you use for writing R code rather than on R. > > Uwe Ligges > > Jack Luo wrote: >> Hi, List >> >> When I was writing R code, I notice that there is no number indicating >> how >> many lines of codes you are writing. Is there a way to go to a line with >> defined number? say I want to go to the 20th line. >> >> Thanks, >> >> Jack >> >> [[alternative HTML version deleted]] >> >> ______________________________________________ >> 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. > > ______________________________________________ > 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. > >-- View this message in context: http://www.nabble.com/how-to-go-to-a-line-in-R-tp14826472p14838958.html Sent from the R help mailing list archive at Nabble.com.
Tinn-R also has this option. I suspect most editors will also do. Julian -Halcyon- wrote:> RWinEdt has line indication. You might want to try that. > > > Uwe Ligges-3 wrote: >> This depends on the editor you use for writing R code rather than on R. >> >> Uwe Ligges >> >> Jack Luo wrote: >>> Hi, List >>> >>> When I was writing R code, I notice that there is no number indicating >>> how >>> many lines of codes you are writing. Is there a way to go to a line with >>> defined number? say I want to go to the 20th line. >>> >>> Thanks, >>> >>> Jack >>> >>> [[alternative HTML version deleted]] >>> >>> ______________________________________________ >>> 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. >> ______________________________________________ >> 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. >> >> >