Display multiple tables extracted from a list output
<p>I use a function returned a list of n data frame : n is variable depending of the numbers of levels of a variable.</p>

<p>I want to display these n tables using a loop for in server.R</p>

<p>Here is my code:</p>

<pre><code> outlist2 &lt;- reactive(label="toto", ({

     if(is.null(input$datafile)){return()}
     if(is.null(input$varinteret)
        || is.null(input$vartemps)
        #           ||is.null(input$apparie)
                   ||is.null(input$tempsrefouinon)
                   ||is.null(input$prodrefouinon)
        #           ||is.null(input$checkprod)
        #           ||is.null(input$checkprodref)
     )
     {return()}
     else
     {
       data&lt;-filedata()
       res.comparer&lt;-compareT0parproduit(data=data,y=input$varinteret,group=input$varprod,TemoinNametemps=input$checktempsref, group2 = input$vartemps)
     }  
 })) 
   # 

 nblevels&lt;-reactiveValues(filedata()[,input$varprod])
 for (i in 1:nblevels){
    output$uicomparetempsT0(i) &lt;- shiny::renderTable({ 
      outlist2()$res.comparer[[i]]
</code></pre>

<p>and in ui.R</p>

<pre><code>shiny::tableOutput("uicomparetempsT0")
</code></pre>

<p>And my error message</p>

<pre><code>Warning: Error in .getReactiveEnvironment()$currentContext: Operation not allowed without an active reactive context. (You tried to do something that can only be done from inside a reactive expression or observer.)
Stack trace (innermost first):
    44: .getReactiveEnvironment()$currentContext
    43: .dependents$register
    42: filedata
    41: reactiveValues
    40: server [C:\Users\itm\Desktop\Documents\appli Clarins test/server.R#454]
     1: shiny::runApp
Error in .getReactiveEnvironment()$currentContext() : 
  Operation not allowed without an active reactive context. (You tried to do something that can only be done from inside a reactive expression or observer.)
</code></pre>