Set working directory in R

Original by reinie, 2016 

This summary note was Posted on

# Use forwardslash / instead of backslash \ in the path
# or use double backslash \\

oldWD <-  getwd()   #Save initial directory just in case

setwd("C:/Users/usr234/Documents/R/Projects/Libor/Data")

getwd() # Check the directory was set properly