Whenever you start an active R session, it will always has a working directory that is associated with it. Of course, the working directory could change if you previously specified another file-path when saving or importing data files. Use the following function if you want to check the location of the working directory
#use the following function to obtain information about the working directory of a current R session.
R> getwd()
[1] "C:/Users/Guest/Documents"
In the above example, using the getwd() function revealed that we are currently in “C:/Users/Guest/Documents”. Filepaths are always enclosed in double quotation marks and also note that R uses forward slashes, not back slashes when specifying folders therefore, don’t worry too much about the format.
So what if you decided that you don’t want to use this working directory and rather change the path to somewhere else. In that case, you would have to use the following function.
#Use the following function to set the working directory to point to somewhere else.
R> setwd("/folder1/folder2/folder3/")
No matter what, it is important to note that R is case-sensitive therefore you need to pay attention to your large/small caps.

The only productivity tool you’ll ever need!
Don’t you wish you could IMPROVE PRODUCTIVITY and INCREASE COLLABORATION among your staff while doing away with all the hassle? After trying out so many productivity and office tools, I discovered that Google Workspace is the BEST TOOL for both remote and on-site working!

Apart from using the Google Workspace, I want to provide you with even more EXCITING VALUE for your company’s GROWTH and EXPANSION. Today, I am giving out two promotional codes that you could apply and start SAVING MORE MONEY!
| Plans | Promotional Codes |
|---|---|
| Google Workspace Business Starter Plan | EAAY74Q979XD49K |
| Google Workspace Business Standard Plan | YATVPVG39EFFFGW |
Click here to start GROWING NOW!