Hi,

I'm a regular R user, but very new to using a Mac computer.

On my windows system, I used to work in the R editor and highlight a chunk
of code that I wanted to run, press Ctrl-r to run, then I could use the up
arrow in the console to run individual lines

For example I could write this into an editor window
x <- 2+2
y <- 6
z <- 67

Then I would highlight these lines and run using Ctrl-r, giving this output
> x <- 2+2
> y <- 6
> z <- 67

I could then press the up arrow twice to select y <- 6, and edit that
specific line

In a mac, I have tried to do the same thing, but using Command-enter to run
the code from the editor window.  However, when I press the up-arrow key,
it wants to re-run all three lines. e.g. I would see this as the bottom
line on the console after pressing the up key once

> x <- 2+2
y <- 6
z <- 67

Is there a way I can turn off this option?  I just want the up and down
arrow keys in the console to select the history line by line rather than by
the chunks that I ran from the editor.  e.g. pressing the up-arrow twice in
the console to give me > y <- 6

Alternatively, is there another way/shortcut to achieve the same outcome on
a mac?

I apologise for asking such a simple question - I have searched the
r-sig-mac archive and come up with similar posts but none that answer my
query, although probably from searching using the wrong terminology.  I
have looked through preferences and checking clean history doesn't seem to
work, but I'm sure I'm missing something simple as part of my mac learning
curve.

I am running R 3.0.2 GUI 1.62 Snow Leopard build (6558) on OS Mavericks

Many thanks in advance
Best wishes
Helen

        [[alternative HTML version deleted]]

_______________________________________________
R-SIG-Mac mailing list
R-SIG-Mac@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-mac

Reply via email to