Every day I have to change a date "YYMMDD" manually then run a code. I would like to find a way to make this change automatically. So I can just run the code without having to manually enter today's date.
In the example below I try to read in the file on june 12th, 2017.
task<- read.csv("\pattern~file_170612.txt", sep = "", header=F, stringsAsFactors = F)