RenderPrint not updating on observeEvent
<p>When clicking on action button, I can see the google sheet downloading and date printed in console but the filetime in renderPrint is not updating?</p>

<pre><code>library(httr)
set_config( config( ssl_verifypeer = 0L ) )
library(googlesheets)
suppressMessages(library(dplyr))
library(shiny)
library(shinydashboard)
library(shinyjs)

ui &lt;- dashboardPage(
  dashboardHeader(title = "Basic dashboard"),
  dashboardSidebar(),
  dashboardBody(
    fluidRow(
      #One action button to download data from google spreadsheet
      actionButton("refreshbutton", label = "Refresh"),
      #two textoutput to show date of downloaded file
      textOutput("refreshdate")

      )
    )
  )
)

server &lt;- function(input, output) {

observeEvent(input$refreshbutton, {
  #On click download data from google spreadsheet
  pulldata &lt;- gs_key("19bPhlp7MjDZFNJcDUmHGJDxkh2h2U5j05S0c18HfBgE") %&gt;% 
    gs_read_csv(ws="vs working", col_names=TRUE)
  #Write data in csv
  write.csv(pulldata, file = "attrition.csv")
  data &lt;- read.csv(file="attrition.csv", header = TRUE)
  #capture modified time from csv
  filetime &lt;- file.mtime("attrition.csv")
  print(filetime)
  #inform on completion after refresh
})

#print filetime in refreshdate1
output$refreshdate &lt;- renderPrint({ 
  filetime # &lt;- This is not updating???
})
}


shinyApp(ui, server)
</code></pre>

<p>Along with the above code, when Google spreadsheet is downloading, I assume the site should go to grey mode indicating refresh - this also is not happening? I mean it should show somehow that new data is in process till complete?</p>