Download R and Tinn-R
The following applies to Windows machines only. If you have a Mac, you'll have to either: (1) live with the basic installation of R without an external text editor (but the Mac version of R comes with a pretty nice text editor built-in, so all is not lost) or (2) search the net and find your own external text editor that will connect to R (such as Emacs).
As of 27 February 2010, the most recent versions (for Windows) are here (R 2.10.1) and here (Tinn-R 126.96.36.199). HOWEVER: I much prefer an earlier version of Tinn-R. So, if you want my recommendation, download the latest version of R and an older version of Tinn-R available here (Tinn-R 188.8.131.52). Download the respective executables to someplace you will remember (I downloaded to my desktop).
- I installed R first.
- Double-click on R-2.10.1-win32.exe to run the executable.
- I used the default settings, which installed the latest version
of R for Windows on my machine here: C:\Program Files\R\R-2.10.1.
- I installed everything but the "Test files".
- I chose MDI initially (we can change this later).
- What you choose at this point for each of the options is pretty inconsequential.
- I installed Tinn-r second.
- Double-click on Tinn-R_184.108.40.206_setup.exe to run the executable.
- I used the default settings, which installed the latest version of Tinn-R for Windows on my machine here: C:\Tinn-R.
- The only default option I unchecked was the one to create a quick launch icon. I hate quick launch icons.
- Before opening R, I launched Tinn-R from my Start menu.
- From Tinn-R, select from the menu
R -> Start preferred Rguito launch R from within Tinn-R.
- If you want to use the same customizations that I find most useful, do the following.
Options -> Shortcuts customization (Tinn-R)to open up the dialog that allows you to control keystroke shortcuts.
- These are simply the shortcut keys that I like best (in part because I use them in other programs, so I don't have to remember too many keystrokes). If you want to use something else, be my guest.
- First, I choose
Categoriesmenu on the left of the
Edit key bindingswindow that has launched.
- I scroll down to
Line numbersin the
Commandsmenu on the right o the
Edit key bindingswindow.
- Click the
Editbutton along the bottom of the window, and select the checkbox next to
CTRL, then use the drop-down menu at the far right to choose
1. So now
CTRL+1causes line numbers to show or not in the Tinn-R editor.
- Next, I choose
Categoriespane, and select
Clear consolein the
- Using the same steps as above, I set the keybinding for
clearing the R console to
- Finally, I choose
Categoriespane, and select
- Usin the same steps as above, I set the keybinding for sending
selected lines to R to be
OKfinishes the job.
- Now, R and Tinn-R are synched-up the way I like them.