Now that we've got a handle on what a data scientist is, how to find answers, and then spend some time going over data science example, it's time to get you set up to start exploring on your own. The first step of that is installing R. First, let's remind ourselves exactly what R is and why we might want to use it. R is both a programming language in an environment focused mainly on statistical analysis and graphics. It will be one of the main tools you use in this and following courses. R is downloaded from the Comprehensive R Archive Network or CRAN. While this might be your first brush with it, we will be returning to CRAN time and time again when we install packages, so keep an eye out. Outside of this course, you may be asking yourself, "Why should I use R?" One reason to want to use R it's popularity. R is quickly becoming the standard language for statistical analysis. This makes R a great language to learn as the more popular software is, the quicker new functionality is developed, the more powerful it becomes and the better this support there is. Additionally, as you can see in this graph, knowing R is one of the top five languages asked for in data scientist's job postings. Another benefit to R it's cost. Free. This one is pretty self-explanatory. Every aspect of R is free to use, unlike some other stats packages you may have heard of EG, SAS or SPSS. So there is no cost barrier to using R. Yet another benefit is R's extensive functionality. R is a very versatile language. We've talked about its use in stats and in graphing. But it's used can be expanded in many different functions from making websites, making maps, using GIS data, analyzing language and even making these lectures and videos. Here we are showing a dot density map made in R of the population of Europe. Each dot is worth 50 people in Europe. For whatever task you have in mind, there is often a package available for download that does exactly that. The reason that the functionality of R is so extensive is the community that has been built around R. Individuals have come together to make packages that add to the functionality of R, and more are being developed every day. Particularly, for people just getting started out with R, it's community is a huge benefit due to its popularity. There are multiple forums that have pages and pages dedicated to solving R problems. We talked about this in the getting help lesson. These forums are great both were finding other people who have had the same problem as you and posting your own new problems. Now that we've spent some time looking at the benefits of R, it is time to install it. We'll go over installation for both Windows and Mac below, but know that these are general guidelines, and small details are likely to change subsequent to the making of this lecture. Use this as a scaffold. For both Windows and Mac machines, we start at the CRAN homepage. If you're on a Windows compute, follow the link Download R for Windows and follow the directions there. If this is your first time installing R, go to the base distribution and click on the link at the top of the page that should say something like Download R version number for Windows. This will download an executable file for installation. Open the executable, and if prompted by a security warning, allow it to run. Select the language you prefer during installation and agree to the licensing information. You will next be prompted for a destination location. This will likely be defaulted to program files in a subfolder called R, followed by another sub-directory for the version number. Unless you have any issues with this, the default location is perfect. You will then be prompted to select which components should be installed. Unless you are running short on memory, installing all of the components is desirable. Next, you'll be asked about startup options and, again, the defaults are fine for this. You will then be asked where setup should place shortcuts. That is completely up to you. You can allow it to add the program to the start menu, or you can click the box at the bottom that says, "Do not create a start menu link." Finally, you will be asked whether you want a desktop or quick launch icon. Up to you. I do not recommend changing the defaults for the registry entries though. After this window, the installation should begin. Test that the installation worked by opening R for the first time. If you are on a Mac computer, follow the link Download R for Mac OS X. There you can find the various R versions for download. Note, if your Mac is older than OS X 10.6 Snow Leopard, you will need to follow the directions on this page for downloading older versions of R that are compatible with those operating systems. Click on the link to the most recent version of R, which will download a PKG file. Open the PKG file and follow the prompts as provided by the installer. First, click "Continue "on the welcome page and again on the important information window page. Next, you will be presented with the software license agreement. Again, continue. Next you may be asked to select a destination for R, either available to all users or to a specific disk. Select whichever you feel is best suited to your setup. Finally, you will be at the standard install page. R selects a default directory, and if you are happy with that location, go ahead and click Install. At this point, you may be prompted to type in the admin password, do so and the install will begin. Once the installation is finished, go to your applications and find R. Test that the installation worked by opening R for the first time. In this lesson, we first looked at what R is and why we might want to use it. We then focused on the installation process for R on both Windows and Mac computers. Before moving on to the next lecture, be sure that you have R installed properly.