我尝试在此处的链接之后实现页面刷新按钮。但是,当我尝试部署到时shinyapp.io
,它失败并要求安装V8
我已经完成的包。该应用程序在机器上运行良好。我使用的代码是:
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"))
在server.R
:
observeEvent(input$reset_button, {js$reset()})
有没有办法做到这一点shinyjs
?