[R] Very basic R workflow question for Windows users

Duncan Murdoch murdoch at stats.uwo.ca
Mon Dec 7 20:13:41 CET 2009

On 07/12/2009 1:31 PM, Mark Na wrote:
> Hi all,
> If you use the R Editor (not another text editor), please read on...
> So, my usual R workflow involves having two windows open (R Console, R
> Editor), writing a line of code in the R Editor and then typing Ctrl-R to
> run that line. Then, quite frequently, I want to run a new command to check
> my output (e.g., dim(dataframe) or str(dataframe) or head(dataframe)) but I
> *do not want* to write that command in the R Editor, rather I want to edit
> it directly in the R Console.
> My (basic) question is: how do you use the keyboard (not mouse) to move the
> cursor from the Editor to the Console. The only (cumbersome) way I know is
> to type Alt-Tab and then Tab-Tab-Tab to get to the Console.
> Is there a better way?

If you use the MDI layout, Ctrl-Tab will get you there without such a 
long list of windows to choose from.  But I usually use the mouse.

Duncan Murdoch

More information about the R-help mailing list