title: Getting access to input value that are dynamicallu created in a shiny module
body: <p>I've created a Shiny app that works just fine but my next step is to create a module that allows other people who work with me to create apps that do the same without having to rewrite completely the code.</p>
  <p>The main change would be on the numbers of numeric parameters that are asked as an input.
  My goal was to create a module that has, as an input, a list of the parameters' name and the list of their label to create automatically numeric inputs with these names and labels.
  The difficulty is that there is a numeric input that generate automatically multiple inputs for each parameter.
  I've succeeded to create the UI part but I fail to get access to these inputs in the module to use them for the next part of my module.</p>
  <p>My best try so far is :</p>
  <pre><code>library(shiny)
  #example of list of names and labels that will be written by my colleagues
  names_list &lt;- c (&quot;alpha&quot;,&quot;beta&quot;,&quot;gamma&quot;,&quot;delta&quot;)
  labels_list &lt;- c (&quot;\\(\\alpha\\)&quot;,&quot;\\(\\beta\\)&quot;,&quot;\\(\\gamma\\)&quot;,&quot;\\(\\delta\\)&quot;)
  
  parametresUI &lt;-function(id){
    ns &lt;-NS(id)
    tagList(fluidRow(numericInput(ns(&quot;nb&quot;),label=&quot;number of steps&quot;,value=2,min=0)),
            fluidRow(uiOutput(ns(&quot;parametres&quot;))),
            fluidRow(verbatimTextOutput(ns(&quot;value&quot;))))
  }
  
  parametresServer &lt;- function(id,names_list,labels_list){
    moduleServer(id, function(input, output, session) {
      ns &lt;- session$ns
      output$parametres &lt;-renderUI({
        number_list&lt;-as.list(1:input$nb)
        div(class = &quot;dynamicSI&quot;,
            lapply(1:length(names_list),function(j){
              lapply(number_list, function(i) {
                fluidRow(column(3,
                                withMathJax(numericInput(inputId=paste0(names_list[j], i), label = paste0(labels_list[j], i),value=0,min=0)
                                )),
                         column(3,
                                withMathJax(numericInput(inputId=paste0(&quot;varia&quot;,names_list[j], i), label = paste0(&quot;\\(\\sigma\\)(&quot;,labels_list[j], i,&quot;)&quot;),value=0,min=0)
                                )),
                )
              })
            })
        )
      })
      #test to see if I can access value of one numeric input : doesn't work
      output$value&lt;-renderText({
        value &lt;- input$alpha1
        #or
        #value &lt;- input[[paste0(names_list[1],1)]]
        value
      })
    })
  }
  
  ui &lt;- fluidPage(
    parametresUI(&quot;test&quot;),
  )
  
  server &lt;- function(input, output, session) {
    parametresServer(&quot;test&quot;,names_list = names_list ,labels_list = labels_list)
  }
  shinyApp(ui, server)
  </code></pre>
  <p>The module is supposed to use the inputs to create simulations but I've just shown an exemple that fails to display one value</p>