Currently have 3 files on my server: ui.R, server.R, and data_pull.R. For some reason, these files don't work when uploaded to shinyapps.io.
data_pull.R currently from an online database (RedCap), manipulates the dataframe, and ends with
save(file = "data.Rda")
server.R starts with
server <- function(input, output){
source("data_pull.R") # runs data_pull
load("data.Rda")
}
For some reason, the app stops running after a few seconds, and I have to reconnect. My guess is (a) data.Rda isn't being saved to the correct location; or (b) I'm using the source()
function incorrectly. But I don't see how.
Any help on this topic would be greatly appreciated!