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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.