Install R and RStudio

1. Install R

RStudio requires R to be installed. Here's how to install R:

For Windows:

For macOS:

For Linux (Ubuntu):


        sudo apt update
        sudo apt install r-base r-base-dev -y
    

This will install the latest version of R.

2. Install RStudio

After installing R, you can install RStudio, an IDE that makes it easier to work with R.

3. Launch RStudio

Once both R and RStudio are installed, open RStudio. RStudio can detect your R installation and allow you to start coding in R right away.

4. Tutorial video

Tutorial Video