Setting up your working directory
You first need to create a director (or folder). In the example below I created a folder named rdir on my e drive.
setwd("e:/rdir") #this will save your work in the
rdir folder on your e drive
getwd() #this checks to see what directory you are working out of