Tinn-R

Once you run a line of code in R, it cannot be un-done. So very commonly, you have to re-run lines of code.

For this reason, it is better if you write your code in a text editor program, and then running it R. You can save the text file, and next time, simply copy and paste.

You can save your R code in any word processor. Notepad from Windows is just fine. You can also use Microsoft Word, but be mindful that that software commonly capitalizes the first letter in each new line. R is case sensitive, so Word is not worth the trouble.

I personally use Tinn-R. It allows you to save your codes in a single file, gives you hints into your code, etc.

Please install Tinn-R from here.

R is case sensitive. “A” is different from “a” in R! This simple rule is at the core of most bugs in R!

To create a file in Tinn-R, click on the Tinn-R icon (see arrow in image below). Once there, click on “File”, then on “New”. This will create a clean sheet for you to start writing your codes. You will use this type of sheets to save your codes, as you move along.

Installing Tinn-R

Figure 2.7: Installing Tinn-R