Perform multiple actions on actioButton Shiny
<p>I am pretty new to Shiny and dealing with the following problem, upon pressing an actionButton in shiny, I want it to do multiple calculations. I use the handler of observeEvent. </p>

<p>An example:</p>

<pre><code>library(shiny)
ui &lt;- fluidPage(
  sidebarLayout(
  sidebarPanel(`

     actionButton("calc","calculate stuff")),
  mainPanel(
     textOutput("result")
 )
)
)


server &lt;- function(input,output){
  observeEvent(input$calc, {output$result &lt;- renderText({"only this is not enough"})  })
}


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

<p>Now what I would want is where the output$result is made in the server-observeEvent, I would like to perform additional tasks, say assign a variable a &lt;- 12, calculate B4 &lt;- input$ID1*inputID2 etc. </p>

<p>This can not be hard I imagine.. but I am just not getting there.</p>

<p>kind regards,</p>

<p>Pieter</p>