title: How do I print an input from the R shiny UI to the console?
body: <p><strong>Situation</strong>: I want to print an input variable from the R shiny UI to the console. Here is my code:</p>
  
  <pre><code>library(shiny)
  
  ui=fluidPage(
    selectInput('selecter', "Choose ONE Item", choices = c("small","big"))
  )
  
  server=function(input,output,session){
    print("You have chosen:")
    print(input$selecter)
   }
  
  shinyApp(ui, server)
  </code></pre>
  
  <p>Unfortunately I get this error message:</p>
  
  <pre><code>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>
  
  <p><strong>Question</strong>: What do I need to change my code to, in order to make it work?</p>