Installing R in Mac
Ashu Guru
Author
03/13/2019
Added
273
Plays
Description
Installing R in Mac
Searchable Transcript
Toggle between list and paragraph view.
- [00:00:00.120]Hi in this short tutorial we will take a look at how do we install R on our
- [00:00:06.453]desktop.
- [00:00:07.360]In addition, I will also talk about how do we install
- [00:00:11.171]a software called as R Studio, which is an integrated development
- [00:00:15.829]environment which provides an improved interface to interact with R I'm working
- [00:00:21.475]on a Mac machine, so this tutorial is for a OS10 platform.
- [00:00:25.840]So in order to download R, we will go to a website www.rminusproject.
- [00:00:31.337]org and on the left side you will see there's a link called CRAN.
- [00:00:36.800]Under download.
- [00:00:39.800]I'll select the UCLA link and then I am on OS 10 and I will download the latest
- [00:00:51.388]version of the package.
- [00:00:56.040]So now that the software has been downloaded, I am going to install it.
- [00:01:02.320]Here is the package.
- [00:01:04.000]I'm going to double click and it says install, continue, continue, continue 3,
- [00:01:16.478]install for all users, continue install and it asks me for the
- [00:01:26.430]admin password.
- [00:01:29.960]And once I fill that in, so R has been installed,
- [00:01:37.960]now I can actually remove this one.
- [00:01:44.400]And if I look into the Finder within my applications,
- [00:01:50.463]I should be able to see an R.
- [00:01:54.200]So if I click on that, it opens the default R console.
- [00:02:02.440]And this is the console that we will generally interact with if we did not
- [00:02:09.124]have an R Studio.
- [00:02:10.680]So just for testing whether R is working, we'll I'll type in 2 + 3 and hit enter.
- [00:02:17.000]It gives us 5 and essentially this means that our R software has been installed.
- [00:02:23.920]Now let's go ahead and install the R Studio which is a IDE.
- [00:02:31.520]And in order to do that before I install that, I'm going to close this.
- [00:02:37.200]I am not going to save any session.
- [00:02:40.280]I'll go back to my browser and I'm going to go to a website www.rstudio.
- [00:02:47.401]com and there I will see there is an Rstudio IDE.
- [00:02:53.440]Then I will click Download Rstudio for Mac and I need the desktop version so
- [00:02:59.803]I'll click on Download Rstudio Desktop and since the website was able to detect
- [00:03:06.414]what kind of a machine this request came from,
- [00:03:10.299]it is already recommending that I download the Mac OSN 64 bit version and
- [00:03:16.414]I'm going to save this as so the download is complete.
- [00:03:21.240]I'm now going to install the R Studio and the package download was here.
- [00:03:30.400]If I double click, all I need to do is drag this into my
- [00:03:36.393]applications folder and if I close this window now I don't need this on my
- [00:03:44.278]desktop.
- [00:03:46.200]I go back to the Finder window and within my applications there should be R Studio.
- [00:03:51.240]So if I click on R Studio now and it warns me that it is a application
- [00:03:56.835]downloaded from the Internet, Are you sure you want to open it?
- [00:04:01.880]I will say yes, open.
- [00:04:04.360]So here is the default window and this is the same console that we saw when we
- [00:04:12.399]launched R and we have additional to windows.
- [00:04:17.080]But now in order for me to start a new script,
- [00:04:21.362]I will click on Add new R script and there is a new text window that opens and
- [00:04:28.561]I will say 2 + 3 and then I click run and it actually copies my code,
- [00:04:34.939]my instruction into the console and runs it.
- [00:04:40.960]So that is it for now.
- [00:04:42.280]And basically in this short tutorial, we actually went through the process of
- [00:04:47.764]installing R and then we added a another software which is called as R Studio.
- [00:04:54.040]R Studio helps us use R in a more user friendly way.
The screen size you are trying to search captions on is too small!
You can always jump over to MediaHub and check it out there.
Log in to post comments
Embed
Copy the following code into your page
HTML
<div style="padding-top: 56.25%; overflow: hidden; position:relative; -webkit-box-flex: 1; flex-grow: 1;"> <iframe style="bottom: 0; left: 0; position: absolute; right: 0; top: 0; border: 0; height: 100%; width: 100%;" src="https://mediahub.unl.edu/media/10785?format=iframe&autoplay=0" title="Video Player: Installing R in Mac" allowfullscreen ></iframe> </div>
Comments
0 Comments