I am working on an application using shiny, as part of my project I need to scrape some data from a website on a daily basis.
Is it possible to schedule a job to be done every 12 hours, using cron or a similar utility?
I am using the free shiny server hosting server
相关问题
- R - Quantstart: Testing Strategy on Multiple Equit
- Using predict with svyglm
- Reshape matrix by rows
- Extract P-Values from Dunnett Test into a Table by
- split data frame into two by column value [duplica
相关文章
- How to convert summary output to a data frame?
- How to plot smoother curves in R
- Paste all possible diagonals of an n*n matrix or d
- ess-rdired: I get this error “no ESS process is as
- How to use doMC under Windows or alternative paral
- dyLimit for limited time in Dygraphs
- Saving state of Shiny app to be restored later
- How to insert pictures into each individual bar in
I really don't recommend doing this in shiny. Yes, invalidateLater is meant to schedule a reactive to be run again later , but your usecase is abusing that function. Also, a single shiny app session is not meant to be running 24/7, it will likely die between those 12 hours.
You should probably use a cronjob (the cronjob can call an R script, that's 100% legitimate)
There is a specific method within Shiny doind exactly that:
invalidateLater
See also http://shiny.rstudio.com/reference/shiny/latest/invalidateLater.html.