I have a Shiny Server running in Ubuntu VM in Azure.
How do I schedule every night the mysql queries inside server.R ? And how do I avoid running them every time the app is visited ?
Here's a sample of my server.R and ui.R :
server.R
library(shiny)
library(RMySQL)
library(ggplot2)
#library(ggiraph)
library(lubridate)
##Connect to Redmine db
con <- dbConnect(MySQL(),
user = '#',
password = '#',
host = '#',
dbname='#')
tickets<-dbGetQuery(con, "Select * from table")
issues_speed_unique<-unique(na.omit(dbGetQuery(con,"Select * from table2")))
dbDisconnect (con)
some aggregations....
shinyServer(
function(input,output){
ui.R
library(shiny)
library(ggplot2)
#library(ggiraph)
#library(htmltools)
library(lubridate)
shinyUI(fluidPage(