Updated R script to include folder path for Mac user