I am attempting to use R to create folders sequentially and dynamically based on a given date. Starting with date_1 if there is no folder with the current date available. So for example, if a new folder was created today the initial result would look like:
/2020-05-15_1
Then subsequent folders would look like:
/2020-05-15_2
/2020-05-15_3
Etc. The idea is to dynamically generate them sequentially each time the script is run.
I have been using a combination of sapply, list.dirs, sapply, and dir.create but can't anything to work and am a bit stuck. Any help would be much appreciated. Thanks!