9.4 RStudio Helpful Setting

You might check out the RStudio interface for features that could help you. One such setting that may be beneficial is the ability to have a default starting working directory when RStudio starts. You find this setting: Tools > Global Options > General tab in the menu bar in RStudio.

You can also adjust this working directory under the Session tab in RStudio and clicking on the Set Working Directory and browse to the directory you want to set. You can verify the location with the getwd() to verify your selection.

Of course, you can always set your working directory with the setwd(name your directory) function if you want it to be set to something else as also discussed in Section 2.1.

setwd("where you want to set the working directory")
getwd()  # to check where the working directory is set