[R] Shiny help with verbatimTextOutput

Evan Kransdorf evan.kransdorf at gmail.com
Thu Jul 30 22:31:45 CEST 2015


Hello,

I am working with Shiny and want to use it to show user-entered input from
a check box.  However, when using verbatimTextOutput with no options
selected in the check box I get "character(0)" as the output. Is there any
way to make this so it displays nothing instead?
Thanks

#Begin R code
#ui.R

checkboxGroupInput("string", label = h5("test"), choices = list("opt1" = 1,
"opt2" = 2)),

h5("User input goes here"),verbatimTextOutput("o"),

#server.R

output$o <- renderPrint({ paste(string) })

	[[alternative HTML version deleted]]



More information about the R-help mailing list