160 likes | 299 Views
Module 1 Installing & Setting Up R. Do. Learn. See & Hear. Read. PowerPoint must be in View Show Mode to See videos and hyperlinks. Module 1 Setting Up R What We’ll Cover. Installing R Working Directory Set R Shortcut to point to Working Directory Using R Working with R Console
E N D
Module 1Installing & Setting Up R Do Learn See & Hear Read PowerPoint must be in View Show Mode to See videos and hyperlinks Install & Setup
Module 1 Setting Up RWhat We’ll Cover • Installing R • Working Directory • Set R Shortcut to point to Working Directory • Using R • Working with R Console • Running Simple R Script • Getting Help • R packages Install & Setup
Installing R • Latest version of R available at CRAN website:http://www.r-project.org/ Install & Setup
Installing R Click video box to see video on downloading & installing R Install & Setup
Installing R • Latest version of R available at CRAN website:http://www.r-project.org/ • Video Demonstration - Downloading & Installing R • Your Turn • Go to CRAN Site (http://www.r-project.org) • Select Mirror Site • Download Base • When R is installed continue slides Install & Setup
Working Directory & Shortcut Video Click video box to see video on Working Directory & R Shortcut Install & Setup
Working Directory • RGUI.exe is installed in C:\Program Files\R\R-2.8.1\bin • R Uses C:\Program Files\R\R-2.8.1\bin as default directory for all R script files • Create Your Own Working Directory to save your R scripts • Go to Windows Explorer • Create a new folder • Pick a name you will remember • Let’s use (C:\Learn_R) • Once you have your new work folder, copy path from address window) Install & Setup
R Shortcut on Desktop • R Shortcut loads RGUI.exe program and uses Start in directory for location of all R scripts • To Configure Desktop R Shortcut to use your Working Directory for Start in: Right click Shortcut, select Properties • Specify Start in path so that R looks in Working Directory you previously created (previous slide) for R Script Files • Paste you’re C:\Learn_R • Now, when you use R shortcut to start R, your C:\Learn_R ory will be where you want it Install & Setup
R Windows R’s Working Windows • R Console • Script Editor • Graphic Window – shows graphic results • User Work is done in Editor • R Console Communicates with R • R Console & Graphics window show results Video on next slide shows an R session Install & Setup
Using R Click video box to see video on Using R Install & Setup
Your Turn to Work With R • It’s Time for you to try R • Your Assignment • Run R (Go to Desktop, double click your R shortcut) • R Console • Try basic arithmetic in R Console • Try the Up arrow to recall previous commands • Clear R Console (right click in window, select Clear) • Run R Script • Open Script (Scr_1_1_Simple_Chart_script.R) • Run script (Control-A; Control-R) • Try to change color to “blue” Install & Setup
Getting Help • R Console • help() • ? • On Line Help: R Seek website (http://rseek.org) • R Documentation & Tutorials • CRAN documentation (http://www.r-project.org/ select manuals) Video on next slide shows how to get help in R and on-line Install & Setup
Getting Help Click video box to see video on R Help Resources Install & Setup
R Packages • What are R Packages • Installing R Packages on Your System • Getting Information on R Packages Video on next slide shows how to install & find out about packages Install & Setup
R packages Click video box to see video on R Packages Install & Setup
Module 1 Wrap up • Congratulations – you are well on your way to Learning R • So far you have: • Installed R • Set up your working directory • Configured your R shortcut to Start in your working directory • Learned about the R Console window • Learned about the R Script Editor Window • Learned about the R Graphics Window • Ran an R script • Learned about R help • Learned about R packages • When you are ready, go to Module 2: Moving Between Excel and R Worlds Remember: you can replay the videos at any time Install & Setup