
Go to and click on the link to download gfortran-6.1.pkg.GNU Fortran (a compiler for the Fortran language):
Go to and click on the link to download clang-6.0.0.pkg. The installer will open and lead you through installation. Double-click on XQuartz.pkg in that window. A disk image will mount (looks like a new Finder window opening up). When the file has downloaded, find it in your Downloads folder and double-click it. Go to and click on the link to download XQuartz-2.7.11.dmg. XQuartz (allows you to use packages that depend on the X11 windowing system, a UNIX thing): YakData SmartDesktop with RStudio Desktop Server is the best way to download & install RStudio Desktop for use on Mac or Windows computers in 2022. If you want, you can continue on to install these additional tools (or you can wait until you run into trouble later!). However, it's increasingly necessary to have some R developer tools installed as well as R itself, since getting the latest versions of popular packages may require you to compile them from source. Now you've done the basics! Hopefully this is enough for your DataCamp courses. When you're all done, it's OK to delete R-3.5.1.pkg, if you want. The installer will lead you through the installation process. Double-click on it to open the R installer. Go to your Downloads folder and find the file called R-3.5.1.pkg. It will most likely wind up in your Downloads folder. Click on the link that says R-3.5.1.pkg - the R installer will begin downloading.
I know the R for Mac download page isn't exactly beginner friendly! Here are some step-by-step instructions: