I am trying to automate my script. Essentially a web scraping script (with Selenium) that loads a csv at the beginning and overwrite it at the end. This should happen every hour. To do this I use the taskscheduleR library.
Below I report the automation code, it is a test set to 5 minutes.
library(taskscheduleR)
x = "C:/Users/STEFANO MARIA/Desktop/Beatiful Data.R"
taskscheduler_create(taskname = "MyBeatifulScript", rscript = x,
schedule = "MINUTE", starttime ="16:30" , modifier = 5 )
taskscheduler_delete(taskname = "MyEspriScript")
The problem is that after turning correctly the first time it freezes. Specifically in Windows Task Manger I have located two processes (Java (TM) Platform SE Binary and Open JDK Platform Binary) that if canceled the automation process resumes correctly.
Since I don't know what these two processes are for and since this is my script that I am trying to automate, I humbly ask for your help.