Closed alapo closed 3 years ago
Have you tried
taskscheduler_create(taskname = "myfancyscript_sunsat",
rscript = myscript,
schedule = "WEEKLY",
startdate = format(Sys.Date(), "%Y/%m/%d"),
starttime = "09:10",
days = c('SUN', 'SAT')
)
That's perfect! Is this something that changes on a system to system basis?
Yes, it depends on how you setup Windows in particular your locale settings of Windows.
Hello,
I apologize ahead of time if this issue is silly. I am trying to run a WEEKLY tasks. For reproducibility I am using the code in the vignette shown below
Running this code leads to the following error
What I have done to troubleshoot the issue
I have looked throughout the repo for similar issues, I have attempted them and they fail to fix my problem. Below is a recap
Looked up this question on StackOverflow
Issue 15 which recommended checking the number of character is less than 260
Tried the code from Issue 11 but this gives me an
"ERROR: Invalid Start Date (Date should be in \"yyyy/mm/dd\" format).\r"
errorIssue 84
If anyone has any advice on this error it would be greatly appreciated. I can create a task using other timelines.
Testing a task ONCE
For example running it once as shown below does work
Testing Task DAILY
Gives me the
Invalid Start Date
error I changed thestarttime
argumentso I changed the format of
startdate
But this still gave me an error