Getting Started with RStudio

Getting Started with RStudio: Dive into the RStudio Integrated Development Environment (IDE) for using and programming R, the popular open-source software for statistical computing and graphics. This concise book provides new and experienced users with an overview of RStudio and hands-on instructions for analyzing data, generating reports, and developing R software packages.

The open-source RStudio IDE brings many powerful coding tools together into an intuitive, easy-to-learn interface. With this guide, you’ll learn how to use its main components including the console, source code editor, and data viewer through descriptions and case studies.

Getting Started with RStudio
Getting Started with RStudio

Getting Started with RStudio serves as both a reference and an introduction to this unique IDE.

  • Use RStudio to provide enhanced support for interactive R sessions
  • Clean and format raw data quickly with several RStudio components
  • Edit R commands with RStudio’s code editor, and combine them into functions
  • Easily locate and use more than 3,000 add-on packages in R’s CRAN service
  • Develop and document your own R packages with the code editor and related components
  • Create one-click PDF reports in RStudio with a mix of text and R output

Table of contents

  1. A Note Regarding Supplemental Files
  2. Preface
    1. Conventions Used in This Book
    2. Using Code Examples
    3. Safari® Books Online
    4. How to Contact Us
    5. Content Updates
      1. March 20, 2012
  3. 1. Overview, Installation
    1. What is R?
    2. What is an IDE?
    3. Why RStudio?
    4. Using RStudio
      1. Desktop Version
      2. Server Version
      3. Which Workspace?
      4. Projects
      5. Which R?
    5. The layout of the Components
      1. Keyboard Shortcuts
      2. The Options Dialog
    6. Installing RStudio
      1. Updating RStudio
  4. 2. Case Study: Data Cleaning
    1. Using Projects
    2. Reading in a Data File
    3. Tab Completion
    4. Workspace Component
      1. Using the Right Class to Store Data
    5. Data Cleaning
    6. Using the Code Editor to Write R Scripts
    7. Using Add-On Packages
    8. Graphics
      1. Command History
    9. All Finished, for Now
  5. 3. The Console and Related Components
    1. Entering Commands
      1. Automatic Insertion of Matching Pairs
      2. R Script Files
    2. Command-Line Conveniences
      1. Tab Completion
      2. Keyboard Shortcuts
      3. Command History
        1. Searching the history stack
        2. History Browser
    3. Workspace Browser
      1. Editing and Viewing Objects
      2. Importing Data Sets
    4. The Help Page Viewer
    5. Graphics in RStudio
      1. The Plots Browser
      2. Interactivity
      3. The manipulation Package for RStudio
    6. External Programs (Desktop Version)
  6. 4. Case Study: Creating a Package
    1. Creating Functions from Script Files
    2. A Package Skeleton
    3. Documenting Functions With roxygen2
    4. The dev tools Package
    5. Package Data
    6. Package Examples
    7. Adding Tests
    8. Building and Installing the Package
  7. 5. Programming R with RStudio
    1. Source Code Editor
      1. Basics
        1. Keyboard shortcuts
      2. R Programming Features
        1. Syntax highlighting
        2. Bracket matching
        3. Automatic indenting
        4. Code completion and usage information
        5. Extract function
        6. Run or source commands
      3. Navigation
        1. Jump to function
        2. Go to file/function
      4. The File Browser
        1. File upload
      5. Debugging R Code in RStudio
    2. Package Maintenance
    3. Organizing Activities with Projects
      1. Version Control with RStudio
        1. Getting started with version control
        2. Using Git to keep a history of changes
        3. Collaborating with Git
    4. Case Study: Report Generation using Sweave
  8. Index
  9. About the Author
  10. Copyright

1 thought on “Getting Started with RStudio”

Leave a Comment