Step by step to getting R installed on your computer

Similar documents
Instruction: Download and Install R and RStudio

How to Download and Install R The R software can be downloaded from: Click on download R link.

RELAIS. Installation Guide in Windows Environment

The Python Mini-Degree Development Environment Guide

Required software. Mac OS X In this section, you ll find instructions for downloading and configuring the Arduino IDE in Mac OS X.

R Website R Installation and Folder R Packages R Documentation R Search R Workspace Interface R Common and Important Basic Commands

Installing Eclipse (C++/Java)

Application Notes for Deploying a VoiceXML Application Using Avaya Interactive Response and Audium Studio - Issue 1.0

PART I (Must be done first) Download and Install R

Code::Blocks Student Manual

Start the Ubuntu Linux VM in VirtualBox. In the VM X Window session, logon as the default user osboxes.

CSE 101 Introduction to Computers Development / Tutorial / Lab Environment Setup

Using Ruby and irb in CSE 341 Winter 2015

Step-by-step guide for the libradtran virtual machine. A) Installation

Installing VS Code. Instructions for the Window OS.

USB-MIDI Driver installation and settings...1 Windows XP users... 1

Manual Eclipse CDT Mac OS Snow Leopard

5.4.8 Optional Lab: Managing System Files with Built-in Utilities in Windows Vista

TxEIS System Requirements

Page 7A TRENDS Installation (for Excel 2007 or Excel 2010) Excel 2007 Excel 2010

Secure Browser Installation Manual For Technology Coordinators

menu of icons which you can select which item you want to use to startup the computer.

Configuring Ubuntu to Code for the OmniFlash or OmniEP

Installation and Upgrade Guide Zend Studio 9.x

Ubuntu 7.10 VMware Fusion Virtual Machine Setup Install HOWTO

Installation and Upgrade Guide Zend Studio 9.x

Ensuring your computer has Java

Installation of the DigitalSystemsVM virtual machine

Interlink Express Desktop Printing Service Installation Guide

Code::Blocks Student Manual

Android Studio Setup Procedure

Slide 1 CS 170 Java Programming 1 Duration: 00:00:49 Advance mode: Auto

Installing and Running the Google App Engine On a Macintosh System

Workshop on Genomics 2018

LiveNX Upgrade Guide from v5.2.0 to v5.2.1

MySQL for Windows. Tak Auyeung. September 7, 2003

Introduction to R. base -> R win32.exe (this will change depending on the latest version)

Introduction to R. 1 Introduction 2. 2 What You Need 2

Install and Configure Ubuntu on a VirtualBox Virtual Machine

COLD WALLET + MASTERNODE SETUP ON LINUX

Discovering Computers & Microsoft Office Office 2010 and Windows 7: Essential Concepts and Skills

Clearspan Communicator Desktop R20.2.2

Install and Configure wxwidgets on Ubuntu

Optimal Browser Settings Disable File Caching:

Copyright 2018 MakeUseOf. All Rights Reserved.

Windows 2000 Safe Mode

URL for staff interface (bookmark this address on staff computers):

Dixicoin (DXC) Masternode Guide for VPS

A system for statistical analysis. Instructions for installing software. R, R-studio and the R-commander

Clearspan Hosted Thin Call Center R Release Notes JANUARY 2019 RELEASE NOTES


UPGRADE INSTALLATION PROCEDURES

SAM4S Receipt Printer JPOS Driver. Mac OS X Installation Manual

R Mac Setup. Chong Xing 1,2 & Paul Johnson 1,3

CSCI 201 Lab 1 Environment Setup

RTMS - Software Setup

Operating Systems Linux 1-2 Measurements Background material

UNIT 9 Introduction to Linux and Ubuntu

Secure Browser Installation Manual For Technology Coordinators

Kaviza VDI-in-a-box User Access Device Configuration Guide

Installing Eclipse CDT and MinGW

Installation Instructions

WA2393 Data Science for Solution Architects. Classroom Setup Guide. Web Age Solutions Inc. Copyright Web Age Solutions Inc. 1

UNIT 10 Ubuntu Security

Installing and Using Dev-C++

GP-N100 Utility Software Manual

Relarium (RLM) Masternode Guide for VPS

Skytap Remote Access/Connectivity Checker Troubleshooting Guide

Training Bulletin TITLE: CHIP-CARD BROWSER RECOMMENDATIONS AUDIENCE: GENERAL MANAGERS, FRONT DESK STAFF DATE: DECEMBER 12. Intro

Setting up the K70 with KDS

WA2572 Introduction to Responsive Web Development for Mac. Classroom Setup Guide. Web Age Solutions Inc.

Read Naturally SE Update Windows Network Installation Instructions

Installation and Upgrade Guide Zend Studio 7.0

Installation Instructions

Using X-Particles with Team Render

TREX Set-Up Guide: Creating a TREX Executable File for Windows

How to Use the BLESS Plug-in to OSATE

VIRTUAL GPU LICENSE SERVER VERSION AND 5.1.0

WA2592 Applied Data Science and Big Data Analytics. Classroom Setup Guide. Web Age Solutions Inc. Copyright Web Age Solutions Inc.

Online Backup Client User Manual

Immotec Systems, Inc. SQL Server 2008 Installation Document

Upgrade Tool Guide. July

COP 3014: Spring 2018 A Guide to Using CLion

Database Concepts. Online Appendix I Getting Started with Web Servers, PHP, and the NetBeans IDE. 7th Edition. David M. Kroenke David J.

IMPLEMENTING SCL PROGRAMS. Using Codeblocks

MOZILLA FIREFOX (Version 52) EXTENDED SUPPORT RELEASE (ESR) Guidance for Windows PC Patient Portal End Users

IN-CLASS EXERCISE: INTRODUCTION TO R

Virtual Desktop Infrastructure Setup for MacOS

BitcoinMonster Masternode Linux VPS Tutorial - Vultr VPS Created By : Samshak Donet Mon: MKX8PFz1uvBkwNDTXtUuj6KinudhsKZh1K

9.4 Authentication Server

Virtual Desktop Infrastructure Setup for MacOS

You might think of Windows XP as a set of cool accessories, such as

Virtual CD TS 1 Introduction... 3

JEE2600 INTRODUCTION TO DIGITAL LOGIC AND COMPUTER DESIGN. ModelSim Tutorial. Prepared by: Phil Beck 9/8/2008. Voter Function

Building an Application to Dynamically Execute Partner Process Flows

Secure Browser Installation Manual For Technology Coordinators

Querying with Transact-SQL

GNU/Linux: An Essential Guide for Students Undertaking BLOSSOM

Once the VM is started, the VirtualBox OS Manager window can be closed. But our Ubuntu VM is still running.

Contents. Anaplan Connector for MuleSoft

Transcription:

Step by step to getting R installed on your computer 1. Go to the R-Project webpage (www.r-project.org) 2. Select the CRAN option under Download on the left hand side of the page: 3. On the CRAN Mirrors page, select https://cloud.r-project.org or scroll down and pick a site near you. 1

4. Select Download R... for your operating system: For Windows, page 3 For (Mac) OS X, page 7 For Linux, page 10 2

5. Select base or install R for the first time : For Windows 6. Select R-3.2.2 (most current version): 7. Save the file and then install (probably from the Downloads folder). You can do this by rightclicking on the file and selecting Run. Depending on how your Windows system is set up, ou 3

may need to run as administrator in order to install R. Accept all the default options and install the package. 8. Start R by clicking on the icon:. You will have a choice between the Rx 64 and R i38 versions of R. Assuming you have a relatively recent computer running Windows 10, choose Rx 64. You can delete the other icon from your desktop if you want. 9. (Optional Step). On Windows computers R installs in MDI (multiple document interface) mode. In this mode all of the R windows (R Console, R Editor, R Graphics, etc) are placed inside a larger window that contains the drop down menu for whichever window is currently selected. In SDI (single document interface mode) each R window is on the desktop with its own menu bar. To change to SDI, use the menu tab to select Edit GUI Preferences and in the window that opens, click SDI (MDI will be checked) at the top of the dialog box. Then click on Save (at the bottom) and Save again on the next window. Finally, click OK and OK at the warning message. 4

This will save an Rconsole file in your startup directory (probably My Documents ) so that R will use SDI when it starts. Now you have to use the menu bar to select File Exit (and then say No to saving the workspace. 10. Restart R. Notice that now the R Console opens on the desktop rather than inside the R GUI window: 5

11. When you install a package for the first time, you may get a warning that R cannot put the package in the default directory. It will ask if you want to create a personal library to store the package instead. Click yes to that dialog and the next one that asks permission to create the folder in your My Documents directory. 12. You can type commands directly into the R console, but I recommend that you open a script window (File New script) to type you commands into an R Editor window that you can save. Initially you will make many mistakes and this will make it easier to correct the command and resubmit it (Edit Run line or selection). Also you can save this file for future use with a.r extension which makes it easier to re-run a set of commands or see exactly what you did last time. 13. By default R will start in your home directory (the command getwd() will display the current directory). The command dir.create("learnr") will create a new directory and setwd("learnr") will move you to that directory. Always start R by moving into this directory so that any files you save will be saved there. When you save your script files, make sure they are saved in the correct directory. 14. When you are done working with R, the command: q() will quit R (or the Menu option File Exit). R will ask if you want to save your workspace. You should click No. If you save your workspace all of the objects you have created will be saved in a file and reloaded when you start R again. You do not want this to happen. Save objects that you create explicitly using the save() function. 15. There are several graphical user interfaces (GUI) such as R Commander and Deducer and integrated development environments (IDE) such as R Studio that are available for R. You may want to consider them as you become more proficient. 6

For Mac OS X 5. Install XQuartz first and then download the current package file. 6. Download XQuartz at https://www.xquartz.org/ and double-click on the XQuartz.pkg icon to install it: 7

7. Then download and install R. 8. Start R (from the taskbar if it shows up or using Finder). 8

9. Use File New Document to open a editing window to type your R commands. R will start in your home directory (the command getwd() will display the current directory). The command dir.create("learnr") will create a new directory and setwd("learnr") will move you to that directory. Always start R by moving into this directory so that any files you save will be saved there. When you save your script files, make sure they are saved in the correct directory. 10. When you are done working with R, the command: q() will quit R (or the Menu option File Exit). R will ask if you want to save your workspace. You should click No. If you save your workspace all of the objects you have created will be saved in a file and reloaded when you start R again. You do not want this to happen. Save objects that you create explicitly using the save() function. 11. There are several graphical user interfaces (GUI) such as R Commander and Deducer and integrated development environments (IDE) such as R Studio that are available for R. You may want to consider them as you become more proficient. 9

For Linux/Ubuntu 5. Select your Linux distribution and read the instructions. If you are using Ubuntu, follow the instructions here instead of using the package manager that comes with Ubuntu. 6. In Ubuntu you can add an entry to the sources.list file using System Settings Software & Updates. The CRAN Mirror goes in URI. Note the slash (/) after the Distribution. 10

7. Next you need to add a key so that Ubuntu knows it can trust the downloads. Open a Terminal and type: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9 Assuming there are no error messages, now type into the Terminal: sudo apt-get update sudo apt-get install r-base sudo apt-get install r-base-dev 8. There will be an R icon that you can click on to start the program or open a Terminal window and run the command R. Both will run R in the Terminal window since R does not have a separate window for commands. 9. You can use a text editor such as gedit (the Edit icon) to type commands and then copy and paste them to R. This is not as convenient as in Windows or Mac OS X, but you can add a plugin to gedit that will let you add the ability to send commands directly to the terminal window. 10. By default R will start in your home directory (the command getwd() will display the current directory). The command dir.create("learnr") will create a new directory and setwd("learnr") will move you to that directory. Always start R by moving into this directory so that any files you save will be saved there. When you save your script files, make sure they are saved in the correct directory. 11. There are several graphical user interfaces (GUI) such as R Commander and Deducer and integrated development environments (IDE) such as R Studio that are available for R. Since the Linux version of R runs directly in the terminal, it may be simpler to download and install the free version of R Studio: https://www.rstudio.com/products/rstudio/download/ 11

12. Open a new script file and type your commands. Click Run on the script window to send the current command or selected commands to the console. 13. When you are done working with R, the command: q() will quit R (or the Menu option File Exit). R will ask if you want to save your workspace. You should click No. If you save your workspace all of the objects you have created will be saved in a file and reloaded when you start R again. You do not want this to happen. Save objects that you create explicitly using the save() function. 12