Hello everyone, may I ask you for help.
Indeed, I have a markdown program for a flexdashboard which works perfectly well in Rstudio.
This contains valueBoxes which are reactive to value, according to classes (red <25, yellow 25 <> 75 and green> 75).
Responsiveness is ok in Rstudio. But when I go through Render, the html file loses the valueBox.
Example:
Row
EMSS - Questions {.value-box}
renderValueBox({
if (SMT < 25)
{
valueBox(paste(SMT,"%"),caption = "EMSS - Tx de retour", color = 'red',icon = "glyphicon-thumbs-down")
}
else if (SMT > 75)
{
valueBox(paste(SMT,"%"),caption = "EMSS - Tx de retour",color = 'green',icon = "glyphicon-thumbs-up")
}
else {
valueBox(paste(SMT,"%"),caption = "EMSS - Tx de retour",color = 'orange',icon = "glyphicon-hand-right")
}
})
Do you have a solution?
thxx
Az