title: How can I read selectInput value as a vector or character in shiny app?
body: <p>I'm working on a shiny app and I wonder if there is a method to recuperate the selected data by the user through selectinput as a vector or character?
  In fact, I typed the following code</p>
  <pre><code>color&lt;-read.xlsx(&quot;colors.xlsx&quot;,startRow = 1,sheet = 1,colNames = TRUE)
  myList&lt;-color$name
  ui &lt;- fluidPage(
    sidebarLayout(
                  sidebarPanel(helpText(
                    fileInput(&quot;myData&quot;, &quot;Upload your data &quot;)
                    sidebarPanel(
                    ),
                  ),
       mainPanel(      
   # selectInput(inputId = &quot;couleurs&quot;,label = &quot;Select colors:&quot;,choices = myList,selected = &quot;Dark turquoise&quot;, multiple = TRUE))
   # colourInput(&quot;col&quot;, &quot;Select colour&quot;, &quot;purple&quot;)
    ))
  server &lt;- function(input, output) {}
  shinyApp(ui = ui, server = server)
  </code></pre>
  <p>the colors Database consists of 2 columns: the color name like Dark turquoise and code of color like &quot;#00CED1&quot; as follows</p>
  <pre><code>Name    Code
  Absolute Zero   #0048BA
  Acajou  #4C2F27
  Acid green  #B0BF1A
  Aero    #7CB9E8
  Aero blue   #C9FFE5
  African violet  #B284BE
  Air Force blue (RAF)    #5D8AA8
  Air Force blue (USAF)   #00308F
  Air superiority blue    #72A0C1
  Alabama crimson #AF002A
  Alabaster   #F2F0E6
  Alice blue  #F0F8FF
  Alizarin crimson    #E32636
  Alloy orange    #C46210
  Almond  #EFDECD
  </code></pre>
  <p>here I suggested whether to use the selectinput method and take the passed value which is the selected colors of use the color picker method to generate the character that regroups the selection as : '&quot;#5D8AA8&quot;,&quot;#72A0C1&quot;' for example the problem is I couldn't make the selection in the method 1  using the command &quot;filter&quot; and for the second method if I try to save the color code on color picker and paste it to the new code of color the first text changes !</p>
  <p>Even with the solution that some of you has proposed to work with color codes as names to colors I still get errors</p>