Open McCartneyAC opened 3 years ago
I will add that in the use case I'm trying to do, it doesn't work even if I include it just once, where I am calling for a character string derived from the server as:
article1_headline<-renderText(
newstable %>%
dplyr::filter(row_number()==1) %>%
dplyr::select(headline) %>%
as.character()
)
h1(textOutput("article1_headline"))
has never worked.
The problem is that you give the same id ("textsample") to two outputs which makes none of them appear. You need to give two different ids.
Regarding your second comment, you should use output$article1_headline
instead of article1_headline
I'm not sure if this is something broken within shinydashboardPlus, ShinyDashboard, Shiny, or just me, but I've been struggling with it for a while.
In the following two reprexes, one version of
h1(textOutput(""))
loads if-and-only-if it is not called a second time on the back. Without the secondh1(textoutput())
call, it works on the front of the flipbox.this version works
This version does not display any text
Please tell me I'm making a simple mistake somewhere.