I input the following text:
AT4G31950
AT5G24110
AT1G26380
AT1G05675
AT1G69920
I can output the inputted text to the screen. output$value <- renderText({ input$text })
However, it seems that input$text is a character vector of only 1. Sort of like:
"AT4G31950
AT5G24110
AT1G26380
AT1G05675
AT1G69920"
I want to use this inputted text a line or two late in R code. What I need is a character vector with multiple values:
"AT4G31950" "AT5G24110" "AT1G26380" "AT1G05675" "AT1G69920"
How can I process input$text to change it as needed ?
I kept the output$value unchanged: output$value <- renderText({ input$text })
However, in my renderPlot I added some code: output$plot1 <- renderPlot({**myenter <- as.vector(str_split(input$text, "\n", simplify = TRUE))** ; common <- list(); percnt <- list(); comatgs <- list(); ... })
So, instead of feeding in input$text to my code in the renderPlot, I made a variable, myenter, of the input$text as formatted above, and then used myenter later in the code in renderPlot.