R language has significant advantages in Statistical Computing and plotting, so it also has a place in the big data field. This article demonstrates how to build an R language development environment.
There are two steps to build the r language development environment:
-Install R to the Operating System
-Install the R-supported ide
Procedure:
[1] installing R to the Operating System
1. for Windows, installation packages: http://ftp.ctex.org/mirrors/CRAN/bin/windows/base/R-3.1.1-win.exe
2. Install R. After installation, open the r console:
3. you can enter the simplest statement: "Pie (C (0.9, 0.2, 0.3, 0.4 ))", after the execution, you can see the generated image-from here you can understand the simplicity and strength of the r language:
[2] installing R-supported ide
Note: This article uses eclipse as the IDE
1. Download an eclipse 4.2
2. Download R's eclipse plugin statet: http://www.walware.de /? Page =/IT/downloads/RJ. mframe
3. Install eclipse Plugin:
4. Restart eclipse
5. Create an R project in eclipse
6. Create an R script
7. In R script, enter a line of code: "Pie (C (0.9, 0.2, 0.3, 0.4 ))"
8. Configure the r execution environment
-Enter run Configuration
-Select "rterm" in "launch type"
-Set R environment:
-After setting, click Run to exit.
9. Execute R script
Result -- a pie chart is also generated: