This is a generalize question: basically, say you are typing a long line of command in R console, and then you realize you forgot to add something in the beginning, is there a way to get to the beginning of the line without pressing the "left" key on the keyboard and waiting for the cursor to get to the beginning, or using the mouse? I'm using windows version of R. Thanks! -- View this message in context: http://r.789695.n4.nabble.com/Shortcut-key-to-get-to-beginniing-of-line-in-R-tp3206303p3206303.html Sent from the R help mailing list archive at Nabble.com.
try "home" or better yet use a text editor and cut/paste your command; let you type a lot of shorter lines that are more readable and easy to change. Sent from my iPad On Jan 9, 2011, at 16:00, casshyr <casshyr at hotmail.com> wrote:> > This is a generalize question: basically, say you are typing a long line of > command in R console, and then you realize you forgot to add something in > the beginning, is there a way to get to the beginning of the line without > pressing the "left" key on the keyboard and waiting for the cursor to get to > the beginning, or using the mouse? > > I'm using windows version of R. > > Thanks! > -- > View this message in context: http://r.789695.n4.nabble.com/Shortcut-key-to-get-to-beginniing-of-line-in-R-tp3206303p3206303.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > 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.
On Jan 9, 2011, at 4:00 PM, casshyr wrote:> > This is a generalize question: basically, say you are typing a long > line of > command in R console, and then you realize you forgot to add > something in > the beginning, is there a way to get to the beginning of the line > without > pressing the "left" key on the keyboard and waiting for the cursor > to get to > the beginning, or using the mouse? > > I'm using windows version of R.As far as I know all versions accept cntr-a for that purpose. -- David Winsemius, MD Heritage Laboratories West Hartford, CT
On 01/09/2011 04:00 PM, casshyr wrote:> This is a generalize question: basically, say you are typing a long line of > command in R console, and then you realize you forgot to add something in > the beginning, is there a way to get to the beginning of the line without > pressing the "left" key on the keyboard and waiting for the cursor to get to > the beginning, or using the mouse? > > I'm using windows version of R. > > Thanks!Try Ctrl+a or the "home" key Ctrl+e should put you at the end of the line. Jason
Seemingly Similar Threads
- Lack of independence in anova()
- CentOS 7 : keyboard shortcut for mouse gesture?
- Avoiding Delete key function as 'Quit R' in Rterm when there are no characters in cursor line
- Avoiding Delete key function as 'Quit R' in Rterm when there are no characters in cursor line
- Avoiding Delete key function as 'Quit R' in Rterm when there are no characters in cursor line