I have a shiny application that takes input via selectizeInput
and enters the data into a fixed size dataframe that is displayed and updated as users enter data. As the user enters data, the dataframe is filled out. Every time the user enters new data, I use the googlesheets package to upload the altered dataframe to a google sheet. This upload process takes 2 or 3 seconds, and the shiny app will wait for it to finish before updating the UI and displaying the dataframe. The process of saving to google sheets should be a background task and occur without the shiny app waiting for it to finish. Is there a way to accomplish this?
Here's what it looks like...
observeEvent(input$timer_start,
{
tmp <- row_col(val$cell, input$team_num)
val$df[tmp$row, tmp$col] <- input$name
tmp_df <<- val$df
edit_cells(gs, ws=1, tmp_df, header=TRUE)
})