R Language Development Environment Establishment

Source: Internet
Author: User

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:



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.