Install R and Rstudio on Mac

Source: Internet
Author: User

First Note: R is the operating environment, Rstudio is the development tool. Rstudio is designed to facilitate the use of R language, he can facilitate the editing of code, debugging and graphics display. So you have to install R.

In addition to see the other online tutorials have said the installation path to pure English, pay attention to the next. The general installation development environment is in the English environment, so as not to cause unnecessary trouble to waste time and experience.

Download path for r: https://cran.r-project.org/

Download path for Rstudio: https://www.rstudio.com/products/rstudio/download/

We started to install R:

After downloading the r-3.1.4.pkg file, the next step is to install it.

After the installation is opened, according to the "R language Combat" in an example, this instant can see the results of things for me is still very useful.

Below we begin to install Rstudio.

We choose to download it for free.

Download down is the rstudio-1.0.153.dmg file. Just drag it into the application.

Open Rstudio, new project: File--New project--New Directory---Empty project (note that this project path does not appear in Chinese as much as possible)

New script: File--New file-R script

I wrote the code that I just wrote in R again in the Rstudio.

Select the code you want to execute, and run Selected line (s) will output the result as shown.

The result is the same as the top run. Only relatively, Rstudio is more convenient, especially for slightly larger code.

Everyone may also notice that I changed a browser, I began to use chrome, I thought must need to FQ, do not know whether there is a cache or what reason, click Download did not respond, looked for a half-day, watched a teaching video, see him on safari directly open the download, a try, resolute, not FQ. Installation is also so-easy.

Install R and Rstudio on Mac

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.