how to check file is in working directory R code example Example: r set working directory setwd("/Users/SampleUser/Desktop/R")