Table of contents
1. Simple installation
As a beginner, consider R installed on win.
1.1. Click the download link to enter the download page, click Download to download the .exe file. As shown below
1.2. Create the R folder in the d drive ( here I am the c drive, in order to avoid insufficient space in the c drive, it is best to put it in the d drive ), place the downloaded .exe file in the R folder, and then double-click the . exe file, the installation interface appears. As shown in the figure below
1.3. Choose according to the following options
- Language: Simplified Chinese by default, just confirm
- Information: display the relevant terms and go directly to the next step
- Installation location: If you are afraid of configuration errors, just go to the default location (C:\Program Files\R\R-version); if you are familiar with it, it is recommended to put it in the directory where the .exe was downloaded above. then click next
- Select components: the default is user installation, the default is all selected, the default is fine, click Next
- Startup options: default, click Next
- Select the start menu folder: Create or not create, the default is fine, click Next
- Select additional tasks: default, click Next
After completing the installation wizard according to the above steps, the installation is complete, as shown in the figure below, click Finish
2. Test
2.1. Click on the program list in the windows icon in the lower left corner, find the installed R, click to open, as shown in the figure below, the
R interface after opening is as follows
2.2. Enter the assignment statement in the R Console x = 1
, and then print x
, and output normally 1
, as shown in the figure below