Well, the solution is to first make your button running a function. This is possible with the shinyjs package.
first load the package in both Ui.R and Server.R
library(shinyjs)
Initialize shinyjs:
shinyUI(fluidPage(
shinyjs::useShinyjs(),
then add in the Ui.R a new button
uiOutput("processInt"),
Change the initializing code for Server.R to (add the session command)
shinyServer(function(input, output, session) {
In the Server.R you then have defined the button
output$processInt <- renderUI({
actionButton("process","Start")
})
Then add the java script functionality to start a function from the button
onclick("process", {
Results()
})
Now you can call your function that does the change for the table as you want it.