Starting R on (Mac) OS X

Problem: How to Start writing code in R?

The above question may seem silly! But when you are installing R for the first time and have no experience in coding, you may have similar questions on your mind. Don’t worry, you are not alone, my friend! Even I was confused and that’s why I am writing this post once I figured out the solution.

So, let’s start!

Step-By-Step Solution:

I posted the steps to install R from CRAN here. Also, steps to install R  using Homebrew is here . Now, after R is installed, follow the below steps to start writing code in R.

1. Press “Command + Spacebar” to open the Search Bar

2. Write “Terminal” and Press Enter

3. Once the Command Prompt is opened, type “r” or “R” and press Enter. 

4. Now, start writing your R code right here.

5.  To quit R, enter “q()” as instructed above.

Happy Coding!

0

Leave a Reply

Your email address will not be published. Required fields are marked *