R Programming for Data Science by Roger D. Peng [free download Choose "You pay $0" or higher amount if you wish to donate.]
Writing code and setting your working directory on the Mac [YouTube, 7:41 minutes]
Writing code and setting your working directory on Windows [YouTube, 7:19 minutes]