title: Can't access to my variable r
body: <p>I am actually on a shiny app. Here is my code.</p>
  
  <p><strong>global.R</strong></p>
  
  <pre><code>json &lt;- fromJSON("./init.json")
  param &lt;- json$cube %&gt;% setDT()
  global &lt;- list()
  </code></pre>
  
  <p><strong>server.R</strong></p>
  
  <pre><code>shinyServer(function(input, output, session) {
    observeEvent(input$chargerCube,{
      startLoading()
      global &lt;- creationCube(input)
      endLoading()
    })
  
    observeEvent(input$butAddCol,{
      global &lt;- ajoutColonne(global, input)
    })  
  })
  </code></pre>
  
  <p>My problem is that in my second observeEvent, i have the error that my "global" variable doesn't exist ... I don't understand why :/</p>