Shiny is not R. It is an RStudio product, which is separate from R. So
I think you need to post on RStudio's support forum, not here.
Cheers,
Bert
Bert Gunter
"Data is not information. Information is not knowledge. And knowledge
is certainly not wisdom."
-- Clifford Stoll
On Thu, Jul 30, 2015 at 1:31 PM, Evan Kransdorf
<evan.kransdorf at gmail.com> wrote:> 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]]
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.