> [!TIP]
> I prefer to use R in Jupyter Notebooks by installing ir-kernel in a conda environment rather than installing R and R Studio. See [[install R for Jupyter Notebooks]] for instructions. If you prefer to work in R Studio, continue to install R.
>
Go to [https://cran.r-project.org/](https://cran.r-project.org/) and download and install R. You probably want the `base` distribution if you are installing R for the first time.
> [!Example]- R Installation Screens
> ![[R installation screens]]
Next follow this link to [download and install RStudio](https://www.rstudio.com/products/rstudio/download/#download).
> [!Example]- RStudio Installation Screens
> ![[RStudio installation screens]]
Add R to your [[PATH]] variable to use R in [[Git Bash]]. The path to add to PATH will be something like `C:\Program Files\R\R-4.x.x\bin`. Once added to PATH, you can simply type `R` in Git Bash to start an R interactive session.