The keyboard shortcuts to up-arrow (ctrl-p) and down-arrow (ctrl-n) save me enormous amounts of time instead of looking around for the arrow keys themselves (and moving my hand over there). Arrow keys vary between keyboards and do not lend themselves to touch-typing.
Sadly, RStudio has chosen to break this pretty much system-wide standard for cursor movement with some little-used special commands. I have tried both system-level and using the software BetterTouchTool to make ctrl-p and ctrl-n do what they should in RStudio, but nothing so far tried works, even after restarting RStudio.
Any answers? Otherwise, back to Textmate and regular R, which is awkward bc RStudio is multiplatform and workable for teaching, whereas Textmate isn't.
I had no trouble using BetterTouchTool to override the Ctrl + P and Ctrl + N shortcuts to send ⬆︎ and ⬇︎, respectively. As you know, it is commercial software.
Open BetterTouchTool, and click the + button in the lower left. "Select an app from running apps" and then choose RStudio.
Make sure RStudio is selected. Then click + in the Groups & Top Level Triggers pane.
On the right hand side, click into the "Click here to record a shortcut" and press Ctrl + P.
Click the + in the "Actions Assigned to Selected Trigger".
Expand "Send Keyboard Shortcut" and click to record ⬆︎.
Repeat the process for Ctrl + N