Exporting .csv from R & Batch file
问题 I run a report in R every morning and I'm trying to automate this task. I have a Windows machine and I've created a task within Task Scheduler. I can get the file to run at a certain time, but I can't get it to export the csv. My initial thoughts is that there is a disconnect between forward- & back-slashes, but I'm not sure where the break is. Anyone have any thoughts? R_script.R setwd('C:/Users/Me/Desktop') x <- runif(5) y <- runif(5) xy <- data.frame(X = x, Y = y) write.csv(xy, 'C:/Users