I build an application with shinydashboard and try to produce a box with (reactive) text. My code in dashboardBody is
box("Species was found in ", textOutput("Count1"), "of", Count2, "Sites")
Count1 is reactive and based on User Input in the UI. Count2 is defined in global.R.
The Output is:
Species was found in
1
of 134 Sites
So, how do I remove the line breaks? paste() isn't working since it only shows the html code of the textoutput Element.
Based on the comments it did work, so here my solution as an answer:
box("Species was found in ", textOutput("Count1", inline = TRUE), "of", Count2, "Sites")
Without inline = TRUE it puts the textOuput()in a div, so that creates the line breaks.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With