My question is when or in what instances gets the shiny app refreshed once a SQL RODBC connection is established (or alternatively also other types of connection like RJDBC etc.)?
I connected shiny app to a database using RODBC package:
library(RODBC)
connection <- odbcConnect(dsn, uid = "", pwd = "")
Subsequently I create an object inside R to manipulate further the data:
object<-sqlQuery(connection, "SELECT ALL * FROM <the table>;")
I keep the app running online so others can see the data visualisation. Is the shiny app refreshed from the SQL source every time someone opens the app in the browser or refreshes the browser page? Or is it a bit more complex and I need to build in an observer in the data input pathway when reading data in from SQL server?
(Note: the SQL source is updated weekly, therefore, I cannot test this at the moment.)