Question: rstudio how to set working directory?
Answer: Create a sub-directory named “R” in your “Documents” folder.
From RStudio, use the menu to change your working directory under Session > Set Working Directory > Choose Directory.
Choose the directory you've just created in step 1.