Skip to content

Shortcut key to get to beginniing of line in R?

6 messages · casshyr, jim holtman, David Winsemius +3 more

#
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 "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:

            
#
On Jan 9, 2011, at 4:00 PM, casshyr wrote:

            
As far as I know all versions accept cntr-a for that purpose.
#
On 01/09/2011 04:00 PM, casshyr wrote:
Try Ctrl+a or the "home" key

Ctrl+e should put you at the end of the line.

Jason
#
Isn't Ctrl+a used for "select all" in R GUI (under Windows)? Ctrl+e does not
work for me. What editor are you using?

-----
-- 
http://djhurio.wordpress.com/
http://twitter.com/djhurio
http://www.linkedin.com/in/martinsliberts
http://www.csb.gov.lv/
#
djhurio wrote:
The general question seems to refer to the case of running R console
directly from your operating-system's prompt-line (e.g. C:\). 

Well, if you are using an editor then it is no longer a generalized (R)
question, but an editor-specific question. 

Apparently, using a GUI that encapsulate R, no matter how simplified it is,
overrides the "general" (or perhaps better said generic) editing functions -
and make it a GUI-specific question.  

Still, it seems that the 'home' and 'end' buttons work in most environments.

dror