I tried to implement a page refresh button following the link here. However when I tried deploying to shinyapp.io
, it failed and asked for installing package V8
which I had already done. The app was working fine on the machine. The code I used is:
jsResetCode <- "shinyjs.reset = function() {history.go(0)}",
useShinyjs(), # Include shinyjs in the UI
extendShinyjs(text = jsResetCode), # Add the js code to the page
p(actionButton("reset_button", "Reset Tool"))
In server.R
:
observeEvent(input$reset_button, {js$reset()})
Is there any way to do this without shinyjs
?