Getting-Started-with-the-Rcmdr

Getting-Started-with-the-Rcmdr - Getting Started With the R...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Getting Started With the R Commander John Fox 26 August 2006 1 Starting the R Commander Once R is running, simply loading the Rcmdr package by typing the command library(Rcmdr) into the R Console starts the R Commander graphical user interface (“GUI”). To function properly under Windows, the R Commander requires the single-document interface (SDI) to R. 1 After loading the package, R Console and R Commander windows should appear more or less as in Figures 1 and 2. These and other screen images in this document were created under Windows XP; if you use another version of Windows (or, of course, another computing platform), then the appearance of the screen may di ff er. 2 The R Commander and R Console windows fl oat freely on the desktop. You will normally use the menus and dialog boxes of the R Commander to read, manipulate, and analyze data. R commands generated by the R Commander GUI appear in the upper text window (labelled Script Window ) within the main R Commander window. You can also type R commands directly into the script window or at the > (greater-than) prompt in the R Console ; the main purpose of the R Commander, however, is to avoid having to type commands. Printed output appears by default in the second text window (labelled Output Window ). The lower, gray window (labelled Messages ) displays error messages, warnings, and some other infor- mation (“notes”), such as the start-up message in Figure 2. When you create graphs, these will appear in a separate Graphics Device window. This manual is adapted and updated from Fox (2005). Please address correspondence to [email protected] . 1 The Windows version of R is normally run from a multiple-document interface (“MDI”), which contains the R Console window, Graphical Device windows created during the session, and any other windows related to the R process. In contrast, under the single-document interface (“SDI”), the R Console and Graphical Device windows are not contained within a master window. There are several ways to run R in SDI mode – for example, by editing the Rconsole fi le in R’s etc subdirectory, or by adding --sdi to the Target fi eld in the Shortcut tab of the R desktop icon’s Properties . This limitation of the Rcmdr package is inherited from the tcltk package, on which Rcmdr depends. 2 Notice that Rcmdr requires some packages in addition to several of the “recommended” packages that are normally distributed with R, and loads these packages at startup. Rcmdr , the required packages, and many other contributed packages are available for download from the Comprehensive R Archive Network (CRAN) at < http://cran.r-project.org/ > . If these packages are not installed, the Rcmdr will o ff er to install them from the Internet or from local fi les (e.g., on a CD/ROM). If you install the Rcmdr package via the Windows “R GUI,” the packages on which the Rcmdr depends should be installed automatically. More generally, you can install the Rcmdr package and all of the packages on which it depends via the install.packages
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern