reuro

adding €-sign in valueBox() in RShiny


My valueBox() in the server is generated as:

valueBox(winterMean, subtitle = "Mean Winter Performance", color = "black")

What I want to have the subtitle Mean Winter Performance € / MWh, but unfortunately I don't know how to add the €-sign. The unicode for the € is € but this doesn't work here!


Solution

  • You could use unicode UTF-16 encoding:

    valueBox(100, subtitle = "Mean Winter Performance \u20ac/MWh ", color = "black")