R is a programming language for statistical computing and graphics. It’s free, and to get started, download R at cran.r-project.org. If you are using Windows, Start R by double-clicking the program icon. When R launches, a window opens, within the window will be the “R Console”. Go to File and select “New Script”, then the “R Editor” will open. Type and save your code in the Editor, use Ctrl-R as a shortcut to send text from the Editor to run in the Console. When you close R, say “No” to “Save workspace image”; if you select “Yes” you will save the what you have run in the Console during the session, which is unnessary when your worked is saved in the editor. If you are using Mac, Start R by double-clicking the program. When R launches, the Console window will open. Go to File, and select “New Document”, which will open the “R Editor”. Similarly, type code in the Editor, use Command-Enter to send text from the Editor to the Console.

https://swirlstats.com/students.html

© The R Foundation