My friend is a dedicated R user but hasn’t had exposure to the awesomeness of RStudio and their many contributions to the scientific community. Since she is a new professor starting up her lab, we are starting a series of Skype calls and screen sharing to get her comfortable (and converted!). For our first call, I tried to categorize the awesomeness that would be most accessible for her needs: Intro to the IDE, R Packages, and Support.

If R were an airplane, RStudio would be the airport, providing many, many supporting services that make it easier for you, the pilot, to take off and go to awesome places. Sure, you can fly an airplane without an airport, but having those runways and supporting infrastructure is a game-changer. This is why.

1. The RStudio IDE.

Here are the main features to look at as we walk through the IDE together. (IDE stands for integrated development environment.) Check out the webinar and RStudio IDE cheatsheet for more.

  • R console: tab completion of functions, file names, variables
  • window docking for source files (and now, multiple source windows)
  • debugging capabilities
  • text editor / markdown previewer
  • panes/tabs: file paths, plots, packages, help, viewer
  • environment tab: visible work space
  • .rproj: load working directory; have multiple sessions
  • Git tab: direct connection to GitHub (can do most-used functions without the command line or the GitHub Desktop App)

And check out the blog for the most recent RStudio v0.99.878 release

2. R Packages.

RStudio has made a bunch of packages that are complete game-changers for data wrangling and analysis. Chains (%>%) make your code more readable, with fewer temporary variables, which enables humans like your future self and your collaborators to tell what is going on, and cleaner code helps reduce mistakes.

Another total game-changer:

  • shiny. Interactive web applications, all from R. Is so useful for science communication and data exploration, and the possibilities are really endless. Learn all about it shiny.rstudio.com and see examples: gallery.

3. Support!

RStudio really prioritizes communication and so resources available online are incredible. Google your questions or error messages, and you’ll find the RStudio team’s instruction, tutorials, bug fixes, etc. Along with stackoverflow.com, keep an eye out for GitHub issues from RStudio: github.com/rstudio and individuals at RStudio (read on…).

  • RStudio developers are real people! They are leaders in the open science community, and are engaged with the discussions going on. You can follow their conversations or join the discussions easily through Twitter, and GitHub. Here are some of the RStudio heroes, with github and twitter handles:
    • Joe Cheng, jcheng5, @jcheng
    • Hadley Wickham, hadley, @hadleywickham, hadley.nz
    • Yihui Xie, yihui, @xieyihui
  • webinars. Garrett Grolemund (garrettgman, @StatGarrett) leads fantastic webinars about RStudio features, packages, and best practices.
  • cheatsheets. Garrett also makes these cheatsheets that are so well-done and super-useful. Download/print them all.

Other resources

The greater RStudio and #rstats community is making some incredible resources for teaching all of this stuff.