官术网_书友最值得收藏!

Installing the environment

In the examples, we'll use Rattle and Qlik Sense Desktop, but, as we've explained, Rattle is an R package and we need to install R too. We will follow these steps:

  1. Download and install R.
  2. Download and install Rattle.
  3. Download and install Qlik Sense Desktop.

Downloading and installing R

These steps must be followed for installing R:

  1. Go to the homepage of R Project for Statistical Computing at www.r-project.org.
  2. In the navigation bar, click on Comprehensive R Archive Network (CRAN) and you will be redirected to a list of CRAN mirrors. Choose a download mirror that is the closest to your geographic location, as shown here:
  3. You will reach a different page; choose Download R for Windows, and in the following page click on install R for the first time.
  4. Finally, you will reach the download page. As of writing this book, the latest version for Windows was 3.1.2. Click on Download R 3.1.2 for Windows to download the installation program, as shown in this screenshot:
  5. Run the installation program, R-3.1.2-win.exe, to start the process. Depending on the level of security of your system, it will ask you for permission to execute the program and to make modifications on your system. You have to allow this to start the process.
  6. In the next step, you have to choose a language; choose English. For the rest of the installation process, leave the default options.
  7. When the installation process finishes, you will have two new icons on your desktop—R i386 3.1.2 and R x64 3.1.2; use the first one if you are using a 32-bit computer and the second one if you are using a 64-bit computer:

Starting the R Console to test your R installation

The R Console is a window used to interact with R language; you can type commands and functions here, and you will see the results in the same window. We will not focus on R, so we'll only learn the commands needed to work with Rattle.

The following steps are needed to start and close R Console:

  1. Double-click the R icon to start the R Console.
  2. To exit the R Console, type q() and press Enter, as shown here:
主站蜘蛛池模板: 卓尼县| 六安市| 开江县| 和平区| 堆龙德庆县| 青冈县| 盘山县| 馆陶县| 疏附县| 泸定县| 辽阳市| 广平县| 佛山市| 沭阳县| 且末县| 莆田市| 南华县| 尉氏县| 阳东县| 乌兰察布市| 咸阳市| 鄂州市| 通渭县| 黑山县| 泰安市| 夏津县| 盐亭县| 吴桥县| 桐梓县| 红河县| 疏勒县| 科技| 黑山县| 綦江县| 汉中市| 汉阴县| 庄浪县| 西和县| 丰顺县| 平湖市| 华池县|