Download and install R, RStudio!

         Nowadays, R language is a widely used tool in the field of statistics. It is a free, free and open source software belonging to the GNU system. It is an excellent tool for statistical computing and statistical drawing. RStudio is an integrated development environment for R, and it is easier and more convenient to use it to learn and practice R programming. The following will teach you how to download and install R and RStudio, which is relatively simple. R is maintained by an international team of developers. The official download page for the R software is called The Comprehensive R Archive Network, or CRAN.

 

1. Download the R installation package from the official website

     The download address is : https://cran.r-project.org    to enter the link. As shown in the figure below, three download links are provided at the top of the page, corresponding to three operating systems: Windows, Mac and Linux. Please select the link corresponding to your operating system. Next, I will show you the installation process using windows as an example.

Next, click [ Download R for Windows ] -> [ base ] - > [ Download R 3.3.1 for Windows ] to download the corresponding installation package.

Click base to enter the following page:

 

2. Install R

 

After downloading the R installation package (the sub-package name I downloaded is: "R-3.3.1-win.exe"), then double-click to start the installation, just like general software installation, make relevant installation settings as needed and keep clicking Just one step.


step1, select the installation location

Can be changed to your own installation path.


step2, install components

Note: Select according to the number of bits of your own computer operating system, but 64-bit systems can be selected, because 64-bit is backward compatible with 32-bit systems. (To know the difference between 32-bit and 64-bit R language, please check the blog: http://blog.csdn.net/to_baidu/article/details/52904681 )

 

step3, startup options

 

step4, is installing

 

step5, the installation is complete, and a desktop shortcut is generated

 

The following are desktop shortcuts, divided into 32-bit and 64-bit: i386 is 32-bit, x64 is 64-bit.

 

step6, open R

Double-click either of the two shortcuts to open R's native IDE, as shown below:

 


3. Download the RStudio installation package from the official website

 

Download address: http://www.rstudio.com/ide    After entering the download page, you can find that there are two versions of Desktop and Server, we choose Desktop.

Click the blue circular icon to jump to the Desktop version download window. The Desktop version is divided into two versions: Open Source Edition (free) and Commercial License (paid).

If you are a beginner, you can choose the former and click【DOWNLOAD RSRUDIO DESKTOP】.


Click【DOWNLOAD RSRUDIO DESKTOP】and enter the download page, choose the downloaded version according to the operating system of your computer, because my operating system is win7, so I choose【RStudio 0.99.903-Windows Vista/7/8/10 】, Click and download to get [ RStudio-0.99.903.exe ].


Fourth, install RStudio

 

step1, double-click [ RStudio-0.99.903.exe ] to install

step2, select the installation location

You can change the installation path by yourself.


 

step3, is installing


 

step4, the installation is complete



step5, IDE function introduction


 

After opening RStudio, the window shown above appears with three separate panels. The largest panel is the console window, which is where you run your R code and view the output. That is, the console window you see when running native R. Other panels are exclusive to RStudio. Hidden in these panels include a text editor, a drawing interface, a code debugging window, a file management window, and more.

 

Note: Some people may ask, do I still need to download R with RStudio?

Even with RStudio, you still need to have R installed on your computer in advance. RStudio is just a tool to assist you in editing with R, it does not come with an R program.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324400274&siteId=291194637