Installing the required R packages and tools

R packages can be installed in two ways: from the Terminal or from inside RStudio. Let's take a look at these.