rstudio change working directo to open files code example Example: r set working directory setwd("/Users/SampleUser/Desktop/R")