Chapter 3. Managing Your Workspace

If the behavior of R objects is compared to game rules, then the workspace can be compared to the playground. To play the game well, you need to familiarize yourself not only with the rules, but also with the playground. In this chapter, I will introduce to you some basic but important skills to manage your workspace. These skills include:

  • Using the working directory
  • Inspecting the working environment
  • Modifying global options
  • Managing the library of packages

R's working directory

An R session always starts in a directory, no matter whether it is launched as an R terminal or in RStudio. The directory in which R is running is called the working directory of the R session. When you access other files on your hard drive, ...

Get Learning R Programming now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.