Looking to run R script once a month at the first of every month.I've figured out how to run it via task scheduler with the taskscheduleR library. Here is the current cadence I have set on it:
taskscheduler_create(taskname = "Rebate Automation2", rscript = myscript,
schedule = "MONTHLY", starttime = "12:30")
I am unsure how to set it for the first of every month.
From the package documentation:
Therefore
taskscheduler_create(taskname = "Rebate Automation2", rscript = myscript, schedule = "MONTHLY", days=1, starttime = "12:30")
Should do the job.