Manage your R working environment

Finally, let’s see what your main working directory looks like. Use the getwd() function to find out what your current working directory is in R.

To view working directory

getwd()

To set working directory

setwd("/path/to/your/project_folder")

If you work with windows, you could also use

setwd("C:\\path\\to\\your\\project_folder")

Or use the RStudio menu options